JWT decoder

Read a JSON Web Token: the header, the claims and their dates in plain words, and whether it has expired. Decoded in your browser; the token is never sent.

The data entered in the form are processed only in your browser and will not be saved or sent anywhere.

The token is decoded on this page and never sent anywhere. The signature is not verified: that needs the issuer's key.

Read a JWT token

A login stopped working, an API answers 401, and all you have is a long string starting with eyJ? Paste the token, even with "Bearer " or the whole "Authorization:" header in front, and press "Decode". You see its three parts in colour, the header and the payload as readable JSON, and a table of claims with their meaning.

Dates are what usually matters, and in a token they are bare numbers of seconds. Here exp, iat, nbf and auth_time are shown as dates on your device's clock with "3 days ago" or "in 2 hours", and right at the top you see whether the token is in date, expired or not valid yet.

Why not paste it into a chatbot or any website? A token that is still in date is a key to someone's account: whoever has it can act as that user until it expires. This page decodes it in your browser and sends it nowhere, and it has no ads. Still, treat production tokens with care and prefer ones that have expired.

Decoding is not verifying. Anyone can read a JWT: the header and payload are only base64url. Whether the token is genuine depends on the signature, and checking that needs the issuer's key, so this page does not do it and says so. It does name the algorithm: "none" means no signature at all, and no service should accept such a token. An encrypted token (JWE, five parts) cannot be read without the recipient's key, and the page tells you that too.

Examples

  • A 401 explained in a second: the status says the token expired 2 hours ago.
  • Checking which scopes and roles a token from a test login really has.
  • A token from an e-mail link checked for its audience (aud) and issuer (iss) before a support ticket.

Who it is for

Developers and testers working with OAuth, OpenID Connect and APIs, support teams analysing login problems, and security people who want to read a token without handing it to a third-party website.