JWT-Format Token Generator

Base64url-encoded JWT-format tokens for testing

Ad placeholder (leaderboard)

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:

  1. 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).
  2. Payload — a claims object with sub, name, iat, nbf, exp, jti, iss, and aud. The exp claim is set to the current time plus your chosen minutes.
  3. 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 Bearer value 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 exp passes.
  • This is never a substitute for a real signed token in production — anything checking the signature will and should reject it.
Ad placeholder (rectangle)