No data yet.
No data yet.
No data yet.
Advertisement
What is a JWT decoder? A JWT decoder splits a JSON Web Token at its dots and Base64URL-decodes the first two parts into readable JSON: the header, with the algorithm, and the payload, with the claims. This tool also shows the raw signature text. It does not verify the signature or check expiry, and it runs in your browser.

What is a JWT decoder?

A JSON Web Token looks like a random string with two dots in it, such as eyJhbGciOi.... The pieces are not encrypted. The first is a header, the second is a payload of claims like user ID and expiry time, and the third is a signature. The header and payload are simply JSON written in Base64URL, which anyone can read.

This JWT decoder does exactly that reading step. Paste the token into JWT Token and click Decode. You get three boxes: Header and Payload as indented JSON, and Signature as the original encoded text. A leading Bearer from an Authorization header is removed for you. Non-English characters in claims are decoded as UTF-8.

It is important to know what the tool does not do. It does not check the signature, so a decoded token is not proof that the token is genuine. It does not turn exp or iat numbers into dates, and it cannot open encrypted tokens (JWE), which have five parts. Treat it as a way to look inside a token, not as a security check.

How to decode a JWT

  1. Copy the token from your app, a browser's storage, or an Authorization header. A leading Bearer is fine.
  2. Paste it into the JWT Token box. It should look like header.payload.signature, with dots between the parts.
  3. Click Decode. The Header and Payload boxes show formatted JSON, and the Signature box shows the third part as text.
  4. Read the claims. Look for exp (expiry), iat (issued at), sub (subject), iss (issuer) and any custom fields.
  5. If a red message appears, see the error text. A token with no dots at all gives Invalid JWT format; broken Base64 or JSON gives Error decoding token with the reason.
  6. Use Copy to copy the token text from the input box again if you need it.

What this JWT decoder shows

Header and payload as JSON

Both parts are Base64URL-decoded, parsed and printed with 2-space indentation.

Signature shown as-is

The third segment appears exactly as encoded. If the token has none, the box says it is unsigned.

Bearer prefix handled

If you paste Bearer eyJ... from a header, the prefix is stripped before decoding.

UTF-8 aware

Names and other claims with accents or non-Latin letters decode correctly.

Clear error messages

A token without dots, bad Base64 or non-JSON content produces a red message you can act on.

No network use

Decoding is plain JavaScript on the page, with no request made for your token.

Who uses it, and for what

  • Back-end and API developers. Check which claims and algorithm an identity provider put in a token while debugging a 401 or 403.
  • Front-end developers. See what user fields a login token exposes before relying on them in the interface.
  • Security reviewers. Confirm whether a token stores sensitive data in the payload. Remember the payload is readable by anyone who holds the token.
  • Support engineers. Look at exp and iss to understand why a customer's session was rejected. For other Base64 values, use the Base64 encoder and decoder.
  • Students. Take a sample token apart to learn the structure of header, payload and signature.

Tips for reading token claims

  • A decoded token is not a verified token. Only the server with the key can confirm the signature.
  • exp and iat are Unix timestamps in seconds. Compare them with the current time to see whether a token has expired.
  • Never put passwords or secrets into a JWT payload. It is encoded, not encrypted.
  • If decoding fails, check that you copied the whole token and no quotes or spaces. Tokens are sensitive, so be careful where you paste them.
  • The header's alg value tells you the signing algorithm. A value of none means the token is unsigned.
  • To read the decoded JSON more comfortably, copy it into the JSON formatter.

Is it safe? Privacy and limits

Decoding is done by JavaScript in your browser. The token is not sent to this site by the tool, and it is not stored. Still, a live JWT is a credential: anyone who gets it may be able to use it until it expires. Prefer expired or test tokens, and do not paste production tokens into pages you do not control. This tool does not validate signatures, expiry or issuers, and it is not a security audit.

JWT decoder FAQ

A JSON Web Token is a compact string used to pass claims between systems, often after login. It has three parts separated by dots: a header describing the type and signing algorithm, a payload with claims such as user ID and expiry, and a signature. The first two parts are Base64URL-encoded JSON. The signature lets the server detect changes. The standard is RFC 7519. Many login systems use them so that a server can trust a request without a database lookup.

It trims your input, removes a leading Bearer, and splits the text at the dots. The first two parts have - and _ converted back to + and /, are decoded with atob as UTF-8 text and parsed as JSON. They are then printed with indentation. The third part is displayed unchanged. If any step fails, you see the reason in a red message under the boxes. Nothing is sent over the network during these steps.

No. It never uses a secret or public key, so it cannot tell whether a token is genuine or has been tampered with. Verification must be done by your server or a library with the correct key. Because a forged token decodes just as easily as a real one, never trust claims you read here as proof of identity. Libraries such as jsonwebtoken, PyJWT or firebase/php-jwt do this check in code, and they should always be given the allowed algorithms explicitly.

The decoding happens in your browser and this tool does not send the token to a server. That is better than many online decoders, but a live token is still a credential. If it is valid, anyone who sees it could use it. Prefer test or expired tokens, avoid screen sharing while it is visible, and revoke or rotate any token you think has been exposed. Short-lived tokens limit the damage if one leaks.

Find the exp claim in the payload. It is the expiry time as a Unix timestamp in seconds. Convert it to a date, or compare it with the current time. If exp is smaller than now, the token has expired. This tool shows the raw number only and does not convert it. The iat claim is when the token was issued and nbf is the earliest time it is valid.

That message appears when the pasted text contains no dot at all. A JWT normally has two dots, and this tool needs at least one. Common causes are copying only part of the token, copying a different value such as an API key, or an opaque access token that is not a JWT. Check the source and copy the whole string. Some providers issue opaque tokens that look random and cannot be decoded. The tool does not check that the three parts are all present beyond that.

The first or second part is not valid Base64URL text, or it does not decode to valid JSON. This often happens when the token is truncated, has extra characters such as quotes, or is encrypted rather than signed. Encrypted tokens (JWE) have five parts and an unreadable payload, so this tool cannot open them. Fix the copy, or use the issuer's own tools. Copying again from the original source often solves it.

No. The tool only reads tokens. You cannot change a claim and re-sign it, and a changed payload would no longer match its signature anyway. For learning, you can decode a sample, copy the JSON to a JSON formatter, and read how each claim is written. To produce real tokens, use a JWT library on your server with a proper secret. Changing and re-signing is the job of the issuer.

Advertisement