JWT generator
Build and sign a JSON Web Token with HMAC, right in your browser.
JWT generator
Paste a JSON payload and this tool builds a complete JSON Web Token: it assembles the header from your chosen algorithm, encodes the header and payload as Base64URL, and signs the result with HMAC. Use it to mint test tokens for an API, debug an auth flow, or see exactly what a given set of claims looks like once encoded.
Choose HS256, HS384 or HS512 and enter the secret key the token should be signed with — the same key your server will use to verify it. Quick-fill toggles add the common time claims without typing them by hand: "iat" stamps the token with the current time, "expires in" sets "exp" to now plus a chosen duration (from 15 minutes to 30 days, or none at all), and "nbf" marks the token as not valid until now. Separate fields set "sub" and "iss" when you need a subject or issuer claim. A quick-fill claim always overrides a same-named claim already in your JSON, so you can start from a template payload and let the toggles fill in the rest.
The payload can be pretty-printed or compact — pretty-printing only changes how the JSON is embedded, not what it decodes to. After signing, the tool decodes the token it just built and independently re-checks the signature with the Web Crypto API, so the tally line confirms the token actually verifies rather than just assuming it. Very large payloads are handled up to a 10 MB output cap, and the same secret and payload always produce the same token — nothing here depends on randomness.
Everything runs locally in your browser: the payload, the secret key and the signing itself never leave your device or touch a server. Copy the token, download it as a .txt file, or send it straight to the JWT decoder to inspect what you just built.