DEVELOPER TOOLS

JWT Decoder

Paste a JSON Web Token to read its header, payload, and expiry times. Decoding runs in your browser, and this page carries no advertising script. It does not check the signature.

Paste the token on its own or with a Bearer prefix. It is decoded as you type and is not sent or saved.

Paste a JWT to decode it.

    Times

      Expiry (exp), not-before (nbf), and issued-at (iat) times appear here in UTC.

      How to decode a JWT

      1. Paste the token into the box. A JWT is three Base64URL parts separated by dots.
      2. Read the header (which algorithm signed it) and the payload (the claims, such as the user and roles).
      3. Check the Times list to see when the token was issued and whether it has expired.

      What decoding does and does not tell you

      The header and payload of a signed JWT are only encoded, not encrypted, so anyone holding the token can read them. This tool decodes them and lays them out as formatted JSON.

      It does not verify the signature. A decoded token may have been forged or edited, so never trust its claims without checking the signature with the issuer's key in your own code. Tokens with alg set to none or an empty signature are flagged because anyone can create them. Encrypted tokens (JWE, five parts) cannot be read without the key and are not decoded.

      Times are shown in UTC from the exp, nbf, and iat claims, which count seconds since 1 January 1970. Whether a token counts as expired is judged against this device's clock.

      Common JWT claims

      A JSON Web Token (JWT) is a compact, signed way to pass claims, such as who a user is, between two systems. These standard claim names are defined in RFC 7519; issuers can add their own alongside them.

      Registered JWT claims
      ClaimNameMeaning
      issIssuerWho created and signed the token
      subSubjectWho the token is about, usually a user ID
      audAudienceWhich service the token is meant for
      expExpiration timeWhen the token stops being valid (seconds since 1970)
      nbfNot beforeWhen the token starts being valid
      iatIssued atWhen the token was created
      jtiJWT IDA unique ID, often used to stop a token being reused

      JWT decoder FAQ

      Is it safe to paste a real token here?

      The token is decoded in this page and is not sent to a RandomTools application server or saved, and this page does not load the advertising script used on other RandomTools pages. A live token still works as a login for as long as it is valid, so prefer expired or test tokens, and never paste one into a site you do not trust. The privacy policy lists the ad-free pages.

      Why does it say my token is invalid?

      Common causes are a missing part, extra characters copied with the token such as quotes, or a token that is encrypted rather than signed. The message names the part that could not be decoded.

      Can this tool check the signature?

      No. Checking a signature needs the secret or public key, and it belongs in the server or library that accepts the token.

      Is a JWT encrypted?

      Usually not. Most JWTs are signed (JWS), which proves they were not changed but leaves the header and payload readable by anyone. Only encrypted tokens (JWE) hide their contents.

      What other developer tools are there?

      The Base64 encoder decodes other Base64 text, the JSON formatter formats and validates JSON, and the timestamp converter turns Unix times into dates.

      Last updated: