JWT

JWT Decoder

Paste a JWT to instantly see its decoded header, payload, and expiry status. Runs entirely in your browser — the signature is never verified.

Encoded JWT
This tool only decodes the token — it does not verify the signature. Anyone can decode a JWT without knowing the secret, so never trust its claims until they've been verified server-side.
Paste a JWT above to see its decoded header and payload.

Quick Learn

A JWT (JSON Web Token) is three base64url-encoded pieces joined by dots: a header (which algorithm signed it), a payload (the actual claims — who it's for, when it expires, and whatever custom data an API attaches), and a signature (proof the first two pieces haven't been tampered with, if you have the secret or public key to check it).

Decoding a JWT just means reversing the base64url encoding on the header and payload to read the JSON underneath — no cryptography required, no secret needed. That's the part this tool does. Verifying, on the other hand, means recomputing the signature with a known secret or public key and confirming it matches — a completely different operation that this tool deliberately doesn't attempt, so it never gives a false sense of trust.

Best Practices

  • •Never treat a decoded JWT's claims as trustworthy on their own — anyone can decode a token, and anyone with a text editor can also forge one that decodes into whatever claims they want. Only a passed signature verification makes claims trustworthy.
  • •Watch the exp (expiry) claim when debugging "why am I logged out" issues — an expired token will decode perfectly fine; decoding success has nothing to do with whether the token is still valid.
  • •If a token has no exp claim at all, it never expires by JWT's own rules — that's often a deliberate design choice (e.g. long-lived API keys), but confirm it's intentional before shipping.
  • •Don't paste a production token with real user data into any tool you don't control — decoding happens entirely in your browser here, but as a habit, treat JWTs the same way you'd treat a password when deciding where to paste them.

More JWT Tools

See all JWT tools

Frequently Asked Questions

Is my token uploaded or stored anywhere?

No. Decoding happens entirely in your browser using standard JavaScript — nothing you paste is sent to a server or stored anywhere.

Does this tool verify the token's signature?

No, and deliberately so. Verifying requires the secret (for HMAC algorithms like HS256) or the public key (for RSA/EC algorithms like RS256), which this decode-only tool never asks for. A future JWT Verifier tool on this site will handle that separately.

Why does a token still decode even though it's expired?

Decoding and expiry are unrelated. Decoding just reads the base64url-encoded JSON — it always succeeds as long as the token is structurally valid. Expiry is a claim (exp) inside the payload that your application is responsible for checking, which is why this tool highlights it separately.

What are iat, nbf, and exp?

They're standard JWT time claims, all measured in Unix seconds: iat is when the token was issued, nbf ("not before") is the earliest time it becomes valid, and exp is when it expires. Not every token includes all three.

Can I decode a malformed or truncated token?

No — a JWT must have exactly three dot-separated, non-empty segments, and the header and payload segments must decode to valid JSON. Anything else is rejected with an error rather than a partial, misleading result.

Want the engineering deep-dives behind tools like this one?