Encoders & Decoders tool
✦ Browser-firstJWT Generator
Create and sign HS256, HS384 and HS512 JSON Web Tokens.
Signing happens in your browser. Use throwaway secrets for testing and never paste production secrets into any website.
About this tool
Build a JSON Web Token from a header, payload and secret, with one-click iat and exp claims. Signing happens locally in your browser. Intended for testing, not for production secrets.
How to use the JWT Generator
- Edit the header and payload JSON.
- Enter a secret and use the buttons to add iat or exp claims.
- Copy the signed token.
Common uses
- Creating test tokens
- Reproducing auth bugs
- Learning how JWTs are built
JWT Generator questions
Which algorithms are supported?
HS256, HS384 and HS512, which use a shared secret.
Is it safe to paste my real secret?
Signing is local, but you should still use throwaway secrets for testing on any website.
How do I read a token back?
Use the JWT Decoder tool to inspect the header and claims.