Decode JWT Tokens Locally in Your Browser
Decode a JSON Web Token's header and payload to inspect its claims — no signature verification.
About JWT Decoder
JWT Decoder splits a JSON Web Token at its dots, converts the first two segments from Base64URL back into text, and shows the header and the payload as indented JSON in two read-only panels. Paste the token into the top box and the panels fill in straight away. There are no settings: it is a viewer for what the token claims.
It helps when a login or API call fails and you need to see which user, role, issuer or expiry the token really carries, when you are connecting an app to a sign-in service and want to confirm which claims it sends, or when you inherit a project and need to understand what the front end stores. Freelancers wiring up authentication for a client's app often need exactly this check.
Decoding is not verifying. The tool never checks the signature, ignores the third segment completely, and cannot tell you whether a token is genuine, expired or altered: a forged token decodes as easily as a real one. Timestamps such as exp and iat are displayed as plain Unix numbers, not as dates.
How to use JWT Decoder
- Copy the whole token from your app, browser storage or API response. It looks like three chunks separated by dots.
- Paste it into the top box that says "Paste a JWT here (header.payload.signature)...". Spaces and line breaks around it are trimmed.
- Read the Header panel for the signing algorithm and token type, and the Payload panel for the claims.
- Check the line under the box. "Decoded successfully. Signature was not verified." means both parts were read; a red message means the text could not be decoded.
- To look at another token, replace the text in the top box. The panels update on every change and clear when the box is empty.
Tips for best results
- Paste only the token. A leading "Bearer " or quotation marks around it are treated as part of the first segment, which makes decoding fail.
- The exp, iat and nbf claims count seconds since 1 January 1970 (UTC). Multiply by 1000 and pass the result to a date function, or use a date converter, to read them as calendar dates.
- A readable payload proves nothing about trust. Signature checking has to happen on your server with the secret or public key, and client-side code should never grant access based on what a decoded payload says.
- Treat live tokens as credentials. Anyone who gets a valid token can use it until it expires, so prefer test or expired tokens when sharing your screen or taking screenshots.
- Only the first two segments are read. Encrypted tokens (JWE, with five segments) fail with "Could not decode token" because their second part is not JSON.
Frequently asked questions
Does this verify the token's signature?
No, this only decodes the header and payload for inspection. It doesn't verify the signature, since that would require the signing secret or key.
Is my token sent anywhere?
No, decoding happens entirely in your browser using standard Base64URL decoding — the token never leaves your device.
Can this tool tell me if a token has expired?
Not directly. It shows the exp claim as a raw Unix timestamp, and you have to convert it and compare it with the current time yourself. The tool does not look at your clock or flag expired tokens.
What are the three parts of a JWT?
The first is the header (algorithm and type), the second is the payload (claims such as sub, iss and exp), and the third is the signature. This tool decodes and shows only the first two.
Why do I get "Could not decode token"?
The first two segments must be valid Base64URL that decodes to JSON. Common causes are a truncated copy, extra text such as a Bearer prefix or quotes, or a string that is not a JWT. The message ends with the browser's own reason.
Is the payload of a JWT encrypted?
In an ordinary signed token it is not. The payload is only encoded, so anyone holding the token can read it, which is why no key is needed here. Do not put secrets or private data in it.