JWT Encoder & Decoder
Decode and verify JSON Web Tokens, or sign a JSON payload into a new token.
Encoded Token
About the JWT Encoder & Decoder
Paste a JWT to see its header and payload as formatted JSON, with issued-at and expiry times shown as readable dates, or swap direction to sign a JSON payload into a new token. Decoding and signing happen locally, so tokens and keys stay private.
How to use it
- Paste a JSON Web Token to decode it (a leading "Bearer " is ignored), or press Swap and paste a JSON payload to create one.
- Read the decoded payload and header with every claim explained, or open Sign to choose the algorithm, secret or private key, expiry and key ID.
- Use Verify with the secret or public key to check a signature; after signing, Swap carries the token and key across so it shows as verified.
Frequently asked questions
Can it verify the signature?
Yes. Open Verify and enter the shared secret (HS256, HS384, HS512) or a PEM or JWK public key (RS, PS and ES algorithms). The check runs in your browser with the Web Crypto API.
Is it safe to paste a real token?
The token is decoded in your browser and never sent anywhere. Still, treat production tokens like passwords and avoid sharing them.
How do I create a signed JWT?
Press Swap, paste the claims as a JSON object, then open Sign. HS algorithms use a shared secret; RS, PS and ES algorithms use a private key in PEM (PKCS#8) or JWK form, or a key pair generated on the spot. Options add iat, an expiry and a kid header. Keys are never stored or sent anywhere.