JWT Decoder
JWT Decoder reads the header and payload claims, checks exp expiration status and shows the signing algorithm, all locally with zero uploads.
About this tool
A JSON Web Token contains three dot-separated Base64URL parts: Header, Payload, and Signature. This tool Base64URL-decodes the UTF-8 header and payload, parses JSON locally, and compares numeric exp against Date.now() / 1000. Verify claims, scopes, and token TTLs during API development.
How to use the JWT decoder
- Paste a three-part token, which looks like header.payload.signature, into the box.
- Read the header, which names the algorithm, and the payload, which holds the claims.
- Check the expiry (exp) and issued-at (iat) times shown in readable form.
- Copy the payload to inspect it in your own tools, or use Clear to decode another token.
What is inside a JSON Web Token
A JSON Web Token is a compact string used to pass claims between a client and a server, for example after a login. It has three parts separated by full stops. The header and payload are Base64URL-encoded JSON, so anyone can read them. The signature proves that the header and payload were issued by a holder of the signing key.
Common claims include sub (the subject), iss (the issuer), aud (the audience), exp (expiry) and iat (issued at). These are plain values, and reading them does not prove that the token is genuine.
A worked example
The default token decodes to a header that names the HS256 algorithm and a payload with a subject, a name and a role. The decoder shows the claims in readable form and marks the expiry time. The signature part is shown but not checked, because checking it needs the secret key that signed the token.
- Check whether a token has expired before you debug a failed API call.
- Confirm the role or audience claim a service expects is present in the payload.
Who uses a JWT decoder
- Developers debugging authentication flows and API permissions.
- Support engineers checking why a user sees the wrong access level.
- Security reviewers inspecting what data a token carries.
- Students learning how modern login systems pass identity between services.
- Anyone who wants to read the claims in a token they have been given.
Security notes and common mistakes
- Decoding is not verification. A decoded payload can be forged, so never trust a value only because it decodes.
- Do not paste live production tokens into any online tool you do not control. Use test tokens where you can.
- Expiry times are shown in your local time zone. The exp claim itself is a Unix timestamp in seconds.
- A token with alg set to none has no signature at all, and a server must reject it.
- This decoder runs in your browser and sends the token nowhere, but good practice still applies to every token you handle.
Frequently asked questions
Base64 Encoder / Decoder
Base64 Encoder / Decoder encodes and decodes Base64 strings with full UTF-8 and URL-safe Base64URL support, locally in your browser with zero uploads.
CSV to JSON Converter
CSV to JSON Converter turns CSV, TSV and semicolon-delimited tables into clean JSON arrays, with quoted-comma support and zero uploads in your browser.
Hash Generator
Hash Generator computes SHA-1, SHA-256, SHA-384 and SHA-512 digests simultaneously using Web Crypto, locally in your browser with zero uploads.
No matching tools. Clear the filter to see all.