JWT Decoder

Read the header and claims of a JSON Web Token and check its expiry.

For HS256, HS384 and HS512 tokens. The secret stays in your browser.

Use this tool on EWD Labs

This copy of the tool can't run here. Open the original, free version instead.

Open JWT Decoder

Runs in your browser. Nothing you type is uploaded.

How to use the JWT decoder

  1. Paste a JSON Web Token. A leading Bearer is removed for you.
  2. Read the header and payload, and the claims table, which turns times like exp into dates.
  3. For tokens signed with a shared secret (HS256, HS384 or HS512), type the secret to check the signature.

What is inside a JWT?

A JWT has three parts separated by dots. The header says how it was signed. The payload holds the claims, such as who the user is and when the token expires. The signature proves the first two parts weren't changed.

The header and payload are only Base64URL-encoded, not encrypted. Anyone with the token can read them, so never put passwords or secrets in a JWT.

Common claims

  • iss: who issued the token
  • sub: who the token is about, usually a user ID
  • aud: who the token is meant for
  • exp, nbf, iat: expiry, not-before and issued-at times, in seconds since January 1, 1970 (UTC)

Decoding a token does not prove it is genuine. Your server must always verify the signature.

Frequently asked questions

Is it safe to paste my token here?

The token is decoded in your browser and never sent anywhere. Still, treat live tokens like passwords and avoid sharing them.

Does decoding prove the token is genuine?

No. Anyone can read a JWT. Only checking the signature proves it wasn't changed, which your server must always do.

Can it verify RS256 tokens?

Not yet. It checks HS256, HS384 and HS512 signatures, which use a shared secret.

Why does it say expired?

The exp claim is a time in seconds since 1970. If that time has passed, servers will refuse the token.