The JWT-Format Token Generator builds tokens in the exact three-part shape of a JSON Web Token — header.payload.signature, each segment base64url-encoded and joined by dots. It is meant for testing how your application parses, displays, and reacts to tokens, not for issuing real credentials.
How it works
A JWT has three segments. This tool builds them like this:
- Header — a small JSON object such as
{"alg":"HS256","typ":"JWT"}, encoded with URL-safe base64 (the+and/characters become-and_, and trailing=padding is stripped). - Payload — a claims object with
sub,name,iat,nbf,exp,jti,iss, andaud. Theexpclaim is set to the current time plus your chosen minutes. - Signature — random bytes sized to match the algorithm (32 for HS256, 48 for HS384, 64 for HS512), then base64url-encoded.
Because the signature is random rather than computed from a secret, the token is structurally valid but cryptographically invalid.
Tips and notes
- The decoded header and payload are shown below the token so you can confirm exactly what your parser will see.
- Use the generated token as a
Bearervalue to test that your client stores, decodes, and renders claims correctly. - To exercise expiry handling, generate with a short window and verify your code rejects the token once
exppasses. - This is never a substitute for a real signed token in production — anything checking the signature will and should reject it.