About the JWT Encoder
Create JWTs for local development, integration tests and API debugging. Edit the header and payload as JSON, pick an algorithm and sign with a shared secret or private key. One click adds iat, exp or a random jti, and the tool can generate a matching key pair so you can configure the verifying side straight away.
Features
- HS256/384/512, RS256/384/512, PS256/384/512, ES256/384/512
- Generate secrets and RSA/EC key pairs
- PKCS#8, PKCS#1 PEM or JWK private keys
- Add iat / exp / jti with one click
- Warns about weak HMAC secrets
- Live colour-coded output
How to use it
- Choose the signing algorithm.
- Enter a secret or private key — or click Generate key.
- Edit header and payload JSON; the token updates live.
- Copy the token or open it in the decoder.
Frequently asked questions
Which algorithm should I choose?
Use RS256 or ES256 when tokens are verified by parties that must not be able to create tokens (public-key verification). Use HS256 only when the issuer and verifier are the same trusted service.
How long should an HS256 secret be?
At least 32 random bytes (256 bits). The Generate key button creates one in Base64.