Getting your file…

Free · runs in your browser · no upload · no quota

JWT Decoder

Paste a JSON Web Token to read its header and payload as formatted JSON. The issued, not-before and expiry times are shown as dates, and you see at once whether the token has expired. The token is decoded in your browser, so it is never sent to anyone.

Good to know

Anyone can read a JWT.

The payload is only encoded, so never put passwords or other secrets in it: whoever holds the token can decode it exactly as this page does.

Times are checked against your computer's clock.

"Expired" and "expires in" compare exp with the time on your device; a clock that is off shifts them by the same amount.

alg "none" means unsigned.

A token with "alg": "none" carries no signature at all. Servers should reject it; if yours accepts it, that is a security hole.

How to Decode a JWT

  1. Paste the token
    Paste the JWT into the left box. A leading Bearer from an Authorization header is removed for you.
  2. Read the claims
    The header and payload appear on the right as JSON, followed by the dates of iat, nbf and exp in UTC.
  3. Check the status
    The line under the boxes shows the algorithm and whether the token has expired or when it will.

Example

JWT
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
Header and payload
{
  "header": { "alg": "HS256", "typ": "JWT" },
  "payload": {
    "sub": "1234567890",
    "name": "John Doe",
    "iat": 1516239022
  },
  "dates": { "iat": "2018-01-18 01:30:22 UTC" }
}

Frequently Asked Questions

More browser tools