⌘

JWT Decoder

Decode a JWT's readable header and payload; this does not verify its signature.

0Words
0Characters
0Sentences
0mReading time
Choose a file or fill the fields, then click Run tool.

About JWT Decoder

When a login fails or an API returns 401, the first question is often what is inside the token. Developers and support engineers decode a JWT to check its expiry, issuer, audience, user ID or roles without writing code. It also helps confirm which signing algorithm a token claims to use.

How it works

The token is split on dots. The first two parts are converted from Base64URL by swapping - and _ back to + and /, decoded with atob, and parsed as JSON. The output is one JSON object with header, payload and the raw signature string. The signature is not verified, no key is needed, and expiry is not checked. Timestamps like exp and iat are shown as raw Unix seconds. Non-ASCII text in claims may display garbled. Everything runs locally.

How to use JWT Decoder

  1. Enter the text or data in the format shown in the text box above (Paste a JWT).
  2. Select “Run tool” and check the result before copying or downloading it.

Worked example

Input: the well-known sample token beginning eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 and ending in SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c. Output: header {"alg": "HS256", "typ": "JWT"}, payload {"sub": "1234567890", "name": "John Doe", "iat": 1516239022}, and signature set to the third segment as plain text.

Tips for a better result

  • Paste only the token itself. Remove the word Bearer and any surrounding quotes, or the first segment will not decode.
  • Convert exp and iat with a Unix timestamp converter to see real dates. They count seconds since 1970 in UTC.
  • Avoid pasting live production tokens into any shared screen or ticket. A decoded token still works until it expires.

Frequently asked questions

Does a successful decode mean the token is valid?

No. Anyone can create a token with any payload. Only the server, by checking the signature with its secret or public key, can confirm it is genuine. This tool never checks the signature or expiry.

Why does a name with accents look garbled?

The payload is decoded with atob, which returns raw bytes as Latin-1 characters. UTF-8 text such as José can appear as mojibake. ASCII claims like IDs, numbers and dates decode correctly.

Can it decode encrypted JWE tokens?

No. A JWE has five segments, and its payload is encrypted, so only the header is readable JSON. This tool assumes the three-part header.payload.signature format of a signed JWT.

What to check

A formatted or parsed result is not proof that code is secure, correct or production-ready. Never paste production secrets.

Read the Privacy Policy for information about local processing, connected services and advertising.