Sooner or later a token lands in your hands and you need to know what is inside it. The obvious move is to paste it into an online decoder, and the obvious worry follows a second later: is that safe? You have just handed a credential to a web page. Whether that was a good idea depends on two different questions that are easy to blur together. What does the decoder do with your token? And what can anyone do with a token once they have it? This guide answers both, using the JWT Decoder on Ovatly as the working example.

Contents

  • Quick answer
  • What a decoder can see, and what it cannot
  • The payload was never secret
  • How decoding works here, step by step
  • Worked example: the classic demo token
  • Limitations: what decoding will never tell you
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

It is safe to decode a token with the JWT Decoder because everything happens locally in your browser: the page never uploads the token you paste. That local-processing fact is the whole safety story for the tool itself. The wider story is less comfortable. A JWT payload is readable by anyone who holds the token, decoder or no decoder, because the payload is encoded rather than encrypted. And decoding is not verification: the tool shows you what a token claims and labels the signature as not verified, since checking a signature needs the signing key or the issuer's public key, which a decoder page does not have.

What a decoder can see, and what it cannot

A decoder reads the first two of a token's three dot-separated parts. The header names the algorithm and the token type. The payload is a small JSON object of claims: sub, the subject, usually the user id; iss, the issuer; aud, the intended audience; exp, the expiry; and iat, the issued-at time. The decoder shows the header and payload in plain JSON and translates the expiry into a readable date with a clear expired or not-expired verdict, because exp and iat are seconds since the Unix epoch and nobody reads those at a glance.

What a decoder cannot see is the one thing people most want from it: whether the token is genuine. The third part, the signature, is produced by the issuer with a secret or a private key. Verifying it requires that key. A decoder page does not have it, so this tool decodes and labels the signature as not verified. A neat, readable payload is a claim, not a proof, and anyone can build a token with any payload they like and sign it with a key they invented. It will decode beautifully and mean nothing.

The payload was never secret

The safety question cuts both ways. People worry about the decoder seeing their token, then turn around and treat the token itself as a private envelope. It is not one. Encoding is a formatting step, closer to writing text in a different alphabet than to locking it in a box. Anyone who obtains your token, from a log file, a screenshot, a forwarded message, can paste it into any decoder and read every claim in seconds.

That has a practical consequence for what belongs in a payload. Claims are for identification and timing: who the token is about, who issued it, when it expires. They are not a place for passwords, personal details you would not say out loud, or anything that would cause damage if read by a stranger. If a value needs to stay secret, it needs encryption or a server-side lookup, not a slot in a JWT.

How decoding works here, step by step

  1. Open the JWT Decoder and paste the full token, all three dot-separated parts.
  2. Read the decoded header, which names the algorithm and token type.
  3. Read the payload claims: subject, issuer, issued-at and expiry.
  4. Check the expiry panel for the verdict, and remember the signature warning: the signature segment is present, but it is not verified.

Notice what is missing from those steps: there is no upload step, no account, no server round trip for the token itself. The decoding runs in your browser, on your machine, because tokens are credentials and this page never uploads the one you paste.

Worked example: the classic demo token

The well-known demo token has the header {"alg":"HS256","typ":"JWT"}. Its payload contains sub "1234567890", name "John Doe" and iat 1516239022. Paste it into the decoder and all of that appears as plain JSON in a second: a token claiming to be about subject 1234567890, with the name John Doe, issued at the epoch time 1516239022. No key was needed to read any of it, which is precisely the point. You read it because anyone can.

The example token carries no expiry of its own, and the tool reports exactly that rather than inventing a verdict. Add an exp claim of 4000000000 and the tool reports expiry on 2 October 2096, so the token is not expired. The signature segment is present throughout, and the page states it is not verified. The demo token is famous and harmless, but the mechanics are identical for a production token: readable payload, unreadable signature, no proof either way.

Limitations: what decoding will never tell you

Decoding answers questions about content, not about trust. It cannot tell you whether the issuer really issued the token, whether the payload was tampered with after signing, or whether the signing key has been rotated or revoked. Those answers live on the server that verifies the signature, and nowhere else.

Expiry also has a softer edge than the panel suggests. The tool reports the exp claim exactly, but your server's policy decides what is enforced. Some systems allow clock skew leeway of a minute or two, and some ignore exp for specific flows, so a token can read as expired in the decoder while an app still accepts it. The decoder is reporting the claim faithfully; enforcement is a separate decision.

Finally, the safety of decoding here rests on local processing. That is a property of this page, not of decoders in general. A decoder that sends your token to a server has your credential, at least for as long as it keeps it. The general discipline is worth keeping: never paste production tokens into random sites whose behaviour you cannot check, and treat tokens like passwords in every other context too.

Common mistakes

  • Storing secrets in the payload. Anyone holding the token can read it. Claims are for identity and timing, not for confidential data.
  • Assuming a decoded payload proves the token is real. It proves someone formatted a payload. Only signature verification by the issuer's key proves authenticity.
  • Pasting production tokens into unknown decoder sites. If the page uploads the token, you have shared a credential. Use a decoder that runs locally.
  • Sharing tokens in screenshots and chat messages. The token in the screenshot is fully readable and, until it expires, fully usable.
  • Expecting the decoder to judge the signature. It labels the signature as not verified because it has no key to check it against. That label is honesty, not a missing feature.

FAQs

Is it safe to paste a real token into this decoder? Yes, in the narrow sense that matters here: the decoding runs entirely in your browser and nothing is sent anywhere. Still, treat tokens like passwords generally: do not post them in public places or screenshots, and be careful with decoder sites whose behaviour you cannot check.

Can anyone else read the payload of my token? Anyone who holds the token can. The header and payload are encoded, not encrypted, and encoding is a formatting step that anyone can reverse. If a claim would embarrass or expose you if read aloud, it does not belong in a token payload.

Does decoding a token prove it is genuine? No. Decoding shows you what a token claims. Verification needs the secret or public key used to sign the token, which a decoder page does not have, so this tool decodes and labels the signature as not verified.

What can a decoder actually see in a token? The header (algorithm and token type) and the payload claims in plain JSON: subject, issuer, audience, issued-at and expiry. It also translates the expiry into a readable date with an expired or not-expired verdict. It cannot see whether the signature is valid.

Why does the tool warn me if my token has no expiry? It does not warn, it reports: tokens without an exp claim are shown as having no expiry of their own, which is common for some API tokens. The decoder shows the claims that are present and does not invent one.

Conclusion

Decoding a JWT online is safe when the decoding stays on your machine, and the JWT Decoder is built that way: local processing, no uploads, and a signature plainly labelled as not verified. The risk was never really the decoder. It is the token itself, readable by whoever holds it and worth treating like a password. When the problem is not reading a token but a login that keeps failing, the companion guide walks the debugging side: How to Debug a 401 Unauthorized Error Caused by a Bad Token.

More tools for this kind of work live in the Developer Tools archive.