JWT decoder with expiry dates

A JWT is a signed token with three parts. Paste one to read the header, the payload and the exp, iat and nbf dates with the time left, all in your browser.

372 characters

The token never leaves this page. Decoding happens in your browser with no network request.

    How to use it in four steps

    Step by step, with this page's example.

    1. 01

      Paste the token. The tool strips a Bearer prefix or a whole Authorization header by itself.

    2. 02

      Check Token status: how long it stays valid, how long it lives in total and which algorithm signed it.

    3. 03

      Go through the claims. The exp, iat and nbf dates are converted to your local time and UTC, with the other claims below them.

    4. 04

      Copy the header or payload as JSON. Verify the signature on the server with the key, as this tool does not.

    What you enter

    The sample token that is in the field when the page opens

    What you get
    {
      "iss": "https://vulcode.com",
      "sub": "1024",
      "aud": "panel.vulcode.com",
      "iat": 1793520000,
      "nbf": 1793520000,
      "exp": 1830294000,
      "jti": "8f14e45f-ceea-4672-9a2b-6c1f3d0e7b21",
      "scope": "projects:read tickets:write",
      "role": "client"
    }
    exp 1830294000 is 31 December 2027, 23:00 UTC, and iat 1793520000 is 1 November 2026, 08:00 UTC.

    Questions

    What is a JWT?
    A JWT (JSON Web Token) is a signed token with three Base64URL parts: header, payload and signature. Servers use it as proof of sign-in, and this decoder reads what is inside.
    How do I check whether a JWT has expired?
    Paste the token and look at Token status: it shows how long it stays valid or since when it has expired, based on the exp claim. The tool strips a Bearer prefix from an Authorization header by itself.
    Does the tool verify the signature?
    No. Checking HS256 takes the secret key, and RS256 or ES256 take the issuer's public key. The decoder shows what the token claims, not whether it is genuine. Anyone can change the data in a token, but without the key they cannot make a signature that matches.
    Is it safe to paste a token here?
    The token does not leave this page, as decoding happens in the browser with no network request. Still, a valid token works like a key to the account, so revoke it after testing on production.
    What do exp, iat and nbf mean?
    exp is when the token expires, iat when it was issued and nbf when it starts to work. Each is a number of seconds since 1 January 1970 UTC, so the tool turns them into dates and shows how much time is left.
    Why can the payload be read without a key?
    Because a regular JWT is signed, not encrypted. The header and payload are JSON in Base64URL. That is why passwords and anything the user should not see never go into a token. The encrypted variant is JWE, which has five parts.
    How is HS256 different from RS256?
    HS256 signs and checks a token with the same secret key, so anyone who checks tokens could also issue them. RS256 signs with a private key and checks with a public one, so services that only read tokens cannot create them.
    What does alg none mean?
    An unsigned token. Libraries reject it by default, but a server configured to accept alg none lets anyone issue themselves any token. The decoder flags a token like that with a warning.

    Tell us what you want to build.

    A free quote comes back within an hour during working hours. You talk to the person who writes the code.