Skip to content

All tools

JWT Decoder

Read the header and payload of a JSON Web Token, and see when it expires.

  • 100% free
  • Token never leaves your browser
0 characters

Decoded entirely in your browser — the token is never sent anywhere. This tool doesn't verify the signature.

Paste a JSON Web Token to see its header and payload.

Last reviewed by the OnlineToolPro team

What is the JWT Decoder?

A JWT is a login or API token made of three parts. This tool decodes the header and payload so you can read the claims inside — including when it expires — without sending the token anywhere.

How it works

How to use the JWT Decoder

3 simple steps. No experience needed.

What can you use it for?

  • Check which user or permissions a token contains.
  • Find out why an API rejects a token (for example, it has expired).
  • Debug login flows during development.

The three parts of a JWT

A JWT looks like xxxxx.yyyyy.zzzzz. The first part (header) says which algorithm signed it, the second (payload) holds the claims — user ID, roles, expiry — and the third is the signature. The first two are Base64URL-encoded JSON, which is why anyone can read them.

Reading the standard claims

exp is the expiry time, iat is when it was issued, nbf is the time it becomes valid, sub is the subject (usually the user), iss is the issuer and aud is the intended audience. Times are Unix timestamps; the decoder shows them as readable dates.

FAQ

Frequently asked questions

Does it verify the signature?

No. Verifying needs the secret or public key, which should stay on your server. Decoding only reads the contents.

Is it safe to paste a real token?

It isn't sent anywhere, but treat live tokens like passwords and avoid sharing your screen while they're visible.

Why shouldn't I put secrets in a JWT?

Because the payload is only encoded, not encrypted — anyone with the token can read it, as this tool shows.

Other tools you might find useful next.

More Developer Tools

Format, convert and check code and data. 9 free tools.

Browse Developer tools
Other categories:YouTubeTextImagesPDFs