JWT Decoder

Decode a JSON Web Token's header and payload in your browser — the token never leaves your device.

The sample above is a made-up token. Decoding happens in your browser; nothing is uploaded.

Header
Payload

Decode any JWT (JSON Web Token) to read its header and payload as formatted JSON, with issued-at, expiry and not-before times converted to readable dates and an expired/valid check. Decoding happens entirely in your browser.

What is inside a JWT

A JSON Web Token is three Base64URL-encoded pieces joined by dots: header.payload.signature.

  • Header — describes the token, usually the signing algorithm (alg, such as HS256 or RS256) and the type (typ: JWT).
  • Payload — the claims: who the token is about (sub), who issued it (iss), who it's for (aud), when it expires (exp), plus any custom data the application adds, such as a user's role.
  • Signature — a cryptographic signature over the header and payload. It proves the token wasn't altered, but only a party with the right key can check it.

How decoding works

Base64URL is Base64 with two characters swapped (- and _ instead of + and /) and the trailing = padding removed, so it's safe in URLs and HTTP headers. To decode, this tool splits the token at the dots, restores the standard Base64 alphabet and padding, decodes the bytes as UTF-8 text, and parses the result as JSON. No key is involved, which is exactly why a JWT's contents should never be treated as secret.

Reading the registered time claims

The exp, iat and nbf claims are Unix timestamps in seconds. For example, the sample token's iat of 1767225600 is January 1, 2026 at 00:00 UTC, and its exp of 1767229200 is one hour later. This tool shows each one as a date in your local time zone and tells you whether the token is currently expired.

Decoding is not verifying

Anyone can create a token with any payload. A server must verify the signature with its secret or public key before trusting a single claim. Use a decoder like this for debugging — checking which claims a token carries or why a session expired — and leave verification to your authentication library.

Frequently asked questions

Is it safe to paste a real token here?

The decoding runs entirely in your browser with JavaScript; the token is never sent to a server. That said, a JWT is often a live credential, so treat it like a password: prefer test tokens, and never paste production tokens into tools you don't trust.

Does this verify the signature?

No. Decoding only reads the header and payload, which are just Base64URL-encoded JSON. Verifying the signature requires the secret or public key, and should be done by your server or auth library, never by trusting a decoded payload alone.

Is a JWT encrypted?

A standard signed JWT (JWS) is not encrypted — anyone who has the token can read its contents, as this tool shows. Don't put secrets or sensitive personal data in a JWT payload. Encrypted tokens (JWE) have five parts instead of three and can't be read without the key.

What do exp, iat and nbf mean?

They are registered claims holding Unix timestamps (seconds since January 1, 1970, UTC): exp is when the token expires, iat is when it was issued, and nbf is the time before which it must not be accepted. This tool converts them to readable dates.

Why does my token fail to decode?

A JWT must have three parts separated by dots, and the first two must be Base64URL-encoded JSON. Common causes are a copied "Bearer " prefix (removed automatically here), a truncated token, or extra quotes or line breaks.