Instructions
JWT decoder
How to use
- Paste the whole token.
- A leading "Bearer" is fine.
- To check the signature, enter the secret for HS tokens or the public key (PEM or JWK) for RS, PS and ES tokens.
Supported input
- Two or three Base64URL parts separated by dots.
- Signatures are checked for HS256/384/512, RS256/384/512, PS256/384/512 and ES256/384/512 with the browser's own cryptography (WebCrypto).
- Neither the token nor the key leaves this device, and the key is not saved or put in the address.
Input example
eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjMifQ.x
Result example
{ "alg": "HS256" } · { "sub": "123" }Troubleshooting
- Nothing is produced for empty input.
- Split very long text into parts.
Limitations
- Without a key the signature is not verified: a readable payload does not prove the token is genuine.
- An HS secret is used exactly as typed; a Base64-encoded secret is not decoded.
- Certificates (BEGIN CERTIFICATE) are not read.
- A token with the "none" algorithm or an empty signature gets a warning.
- Encrypted JWE tokens cannot be read.
How it works
- Decodes the header and payload of a JWT to JSON and reads its issue, expiry and not-before times, issuer and audience.
- With a secret or public key it also checks the signature on this device.