About this tool
A JSON Web Token (JWT) is three strings joined by dots: header.payload.signature. The header is a small JSON object that states the token type and signing algorithm (typ, alg); the payload holds the claims — subject, issuer, scopes, timestamps and any custom data your application needs; the signature is computed over the first two segments so a server holding the right key can check that they were not altered. All three segments are base64url-encoded, which is why a token looks like one long run of random characters.
base64url is an encoding, not encryption. Anyone who gets hold of a token can reverse the encoding and read the JSON without any key, so passwords, API keys, credit card numbers and other secrets must never be placed in the payload. The signature proves origin and integrity only when it is actually verified with the key; this decoder never reads a key and therefore cannot tell you that a token is genuine.
All decoding happens inside the page: the token is not sent over the network and is not stored anywhere. Keep in mind that exp and nbf are claims inside the payload rather than a switch that turns the token off. Whether an expired token is still accepted depends on the server checking it, and the expired / not yet valid states shown here compare those claims with your local clock, so treat them as guidance rather than a security verdict.
How to use
- Paste the token: copy the raw JWT into the input box. A leading "Bearer ", spaces and line breaks are stripped automatically.
- Decode automatically: the header and payload update as you type, so no button press is required. Click Decode if you want to re-run the decoding after editing.
- Read the results: the Header and Payload panes show pretty-printed JSON in a monospace font; non-ASCII claims such as Chinese names are decoded as proper UTF-8 text.
- Check the token info: the alg badge shows the signing algorithm, and iat, exp and nbf are converted to your local time with a status of expired, valid or not yet valid.
- Copy what you need: each pane has its own Copy button, and Clear empties the input and both panes.
FAQ
Can a JWT be forged?
The payload is plain encoded text, so anyone can change a claim and rebuild the token. The signature will no longer match, but that is only detected when the receiving server actually verifies it with the right key. This page does not verify signatures, so the content shown here must never be treated as proof that the token came from a trusted issuer.
Why can I read the contents without a key?
Because the header and payload are only base64url-encoded, not encrypted. The encoding is public and reversible, so decoding needs no key at all. A key is used solely to create and check the signature; it does not protect the readability of the claims.
Does the token stop working once exp has passed?
Only if the server enforces it. exp is an ordinary claim, and accepting or rejecting an expired token is up to the service. Most frameworks reject it automatically, but some implementations ignore it. The "expired" label here simply compares exp with your device clock, and a loose clock can make a token look expired earlier or later than it really is.
Does this support RS256, ES256 or other algorithms?
Yes, for decoding. Base64url decoding does not depend on the algorithm, so HS256, RS256, ES256 and EdDSA tokens all reveal their header and payload here. Verification is different: RSA and ECDSA need the issuer public key, and this tool does not attempt it for any algorithm.
Is it safe to decode a JWT online?
This page works entirely in your browser: the token is not uploaded, logged or stored. Even so, treat production tokens with care, because browser extensions, proxies and clipboard managers may still read what you paste. Revoke and rotate any token you suspect has leaked.