About the JWT Generator
Testing an API locally often needs a valid token. Paste a JSON payload, enter the shared secret your server uses, and this tool creates a signed JWT. Issued-at (iat) and an optional expiry (exp) are added for you.
The secret stays on your device — the HMAC signature is computed with the Web Crypto API. Use test secrets, not production keys.
How to use the JWT Generator
- Paste the JSON payload (claims).
- Enter the secret, algorithm and expiry.
- Copy the token and test it.
Features
- Continue with…: send the result straight into a related tool, no copy and paste
- HS256, HS384, HS512
- Automatic iat and optional exp
- Base64-URL encoding
- Decode it with the JWT Decoder
Supported formats
- Plain text
Frequently asked questions
Does it support RS256?
Not yet. RS256 needs a private key; this tool focuses on shared-secret HMAC tokens.
Is my text sent anywhere?
No. Everything runs in your browser, so nothing you paste is uploaded or stored.
Added · Last reviewed · Maintained by Sohail Khax · How we test tools