JWT Decoder
Read JWT claims and optionally verify HMAC signatures.
Use the JWT Decoder tool
What this jwt decoder does
JWT Decoder splits a JSON Web Token into its three Base64URL segments and shows the header and payload as formatted JSON. It also converts timestamp claims such as exp, iat and nbf into readable dates and warns when a token is expired.
Decoding is not verification. A JWT is just signed data; anyone can create one. If you paste an HMAC secret, this tool verifies HS256, HS384 or HS512 signatures using Web Crypto in your browser. RS256 and ES256 signatures need the issuer's public key and are not verified here.
Why use it
- Check which scopes, roles and tenant a token carries before debugging authorization.
- Spot an expired token in seconds instead of guessing why requests return 401.
- Confirm that a signature matches a shared secret during local development.
How to use it
- 1Paste the JWT, including both dots.
- 2Read the decoded header, payload and human-readable timestamps.
- 3Optionally enter the HMAC secret and press Verify signature.
- 4Never paste production tokens into untrusted online tools — this page keeps them local.
Worked examples
Typical payload
Input
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI0MiIsInJvbGUiOiJhZG1pbiIsImV4cCI6MTgwMDAwMDAwMH0.signature
Output
{
"alg": "HS256",
"typ": "JWT"
}
{
"sub": "42",
"role": "admin",
"exp": "2027-01-15T08:00:00.000Z"
}Common mistakes
- Trusting a decoded token as authentic without checking the signature.
- Accepting alg: none or trusting the alg header from the token instead of pinning an algorithm server-side.
- Treating exp as a guarantee — clock skew and missing revocation still matter.
Frequently asked questions
Does decoding a JWT verify it?
Why can't I verify my RS256 token here?
Are tokens sent to a server?
Is it safe to store a JWT in localStorage?
Related tools
All toolsBase64 Decoder
Decode standard or URL-safe Base64 back to readable text.
Hash Generator
MD5 and SHA digests for text or files, computed locally.
JSON Formatter
Beautify or minify JSON, with precise error positions.
UUID Generator
Bulk random UUID v4 generation with format options.