跳到主要内容

JWT Encoder

Create and sign JSON Web Tokens (JWT) with this online tool. Generate secure tokens with custom payloads.

Signing Algorithm

Enter Payload (JSON)

Secret Key

JWT Encoder Overview

A JWT (JSON Web Token) is an open standard (RFC 7519) consisting of Header, Payload, and Signature, each Base64URL-encoded and joined with dots.

This tool creates JWTs: pick an HMAC algorithm (HS256/HS384/HS512), edit payload claims (sub, exp, iat, etc.), enter a secret, and generate a token. Encoding runs locally—your secret and payload are never uploaded.

Pair it with the JWT Decoder: generate here, then paste there to inspect structure and verify the signature.

Supported Algorithms

  • HS256 / HS384 / HS512: symmetric HMAC with a shared secret

Asymmetric algorithms (RS256, ES256) require a private key on the server; this encoder does not sign them. Use the decoder to read RS/ES tokens.

Typical Uses

  • Build test tokens when debugging OAuth or login APIs
  • Check how your backend handles exp, iss, and other claims
  • Learn JWT structure and HMAC signing