JWT Encoder — Free Online JWT Token Generator

Create and sign JSON Web Tokens with HS256, RS256, ES256 and more — 100% in-browser.

100% Client-Side — Your data never leaves your browser

Frequently Asked Questions

Creating Signed JWT Tokens

Signing a JWT involves three steps: (1) Base64URL-encode the header JSON specifying the algorithm, (2) Base64URL-encode the payload JSON containing your claims, (3) compute a cryptographic signature over header.payload using the secret or private key.

HMAC algorithms (HS256, HS384, HS512) use a shared secret key. Both the token issuer and verifier must know the same secret. This is common for single-server authentication.

RSA and EC algorithms (RS256, RS384, RS512, ES256, ES384, ES512) use asymmetric keys. The issuer signs with a private key; verifiers use only the public key. This is required for multi-service architectures, OIDC, and any scenario where token issuance and verification are separated.

Related Tools