GetEverydayTools

JWT Decoder

Paste a JSON Web Token to read its header and payload, and see when it was issued and when it expires. Your token never leaves your browser.

How to use

  1. Paste a token into the box, or click Load example.
  2. Read the decoded header and payload, and copy either as JSON.
  3. Check the badge and dates to see whether the token has expired.

How decoding works

A token looks like header.payload.signature. The header and payload are JSON encoded with Base64URL, so decoding them needs no key. The signature is what makes a JWT trustworthy, and checking it needs the issuer's secret or public key, which is why it belongs on your server.

Frequently asked questions

What is a JWT?

A JSON Web Token (JWT) is a compact way to pass claims, such as who a user is and when their session ends, between systems. It has three Base64URL-encoded parts separated by dots: a header that describes the token, a payload with the claims, and a signature that proves it wasn't changed.

Does this tool verify the signature?

No. It only decodes the header and payload so you can read them. Anyone can create a token with any contents, so never trust a decoded payload unless your server has verified the signature with the correct key.

Is it safe to paste my token here?

Decoding happens entirely in your browser, and the token is never uploaded or stored. Still, a JWT is often a live login credential: treat it like a password, and prefer test or expired tokens when you can.

What do exp, iat, and nbf mean?

They're standard time claims, stored as 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 shows them as dates in your local time zone.

Why can't my token be decoded?

Check that you copied all three parts, including both dots. Tokens with five parts are encrypted (JWE) and can't be read without the decryption key. If you pasted an Authorization header, the Bearer prefix is removed automatically.