Skip to content
⚠ TESTING ENVIRONMENT You are viewing a testing copy of Tolioo. Changes here do not affect the live website.

JWT Decoder

Decode any JSON Web Token online. See the header, payload and claims, check the expiry date and verify HS256, HS384 and HS512 signatures. Free, no signup, and everything runs in your browser.

  • 100% free
  • Runs in your browser
  • Expiry check
  • Signature verification
Encoded token

Verification happens in your browser with the Web Crypto API. The secret is never sent anywhere. RSA and ECDSA tokens (RS256, ES256 and others) can be decoded but not verified here.

Paste a JWT to see its header, payload and claims.

Your Privacy Matters

Your token and secret are processed inside your browser. They are never sent to or stored on our server.

ADVERTISEMENT
Demo Ad 728 x 90

How to decode a JWT

  1. 1

    Paste your JWT

    Paste the token. A leading “Bearer ” and extra spaces are removed for you.

  2. 2

    Read the header and payload

    See the decoded JSON, the algorithm, readable dates and explained claims.

  3. 3

    Verify the signature

    For HS256, HS384 and HS512 tokens, enter the secret to check the signature.

JWT GUIDE

Free JWT Decoder – Decode, Inspect and Verify JSON Web Tokens Online

A JSON Web Token (JWT) carries user and session data between your app, your API and your login provider. This free JWT decoder (JWT parser and JWT debugger) turns any token into readable JSON in one click. You see the JWT header and algorithm, the JWT payload and its claims, and the signature. Time claims such as exp, iat and nbf are converted to normal dates, and the tool tells you at once whether the token is expired, not valid yet, or unsigned (alg none). For HS256, HS384 and HS512 tokens you can also verify the signature with your secret. Everything runs in your browser, so tokens and secrets are not uploaded. Use it to debug OAuth 2.0 and OpenID Connect tokens, Bearer tokens and API authentication problems, with no signup and no limits.

Looking for a JWT parser, a JWT debugger or a way to decode a Bearer token online? This tool covers all of them. Backend and frontend developers use it to debug login problems, check why an API returns 401, read the claims of an access token or ID token, and confirm when a token expires. It runs in your browser on Windows, Mac, Linux, Android and iPhone, so tokens and secrets are not uploaded, and there is nothing to install.

Header and Payload Decoder

Decodes Base64URL and shows pretty-printed JSON for the header and the payload, with colors for each part of the token.

Expiry Check

Converts exp, iat and nbf into readable UTC and local dates and shows if the token is expired or not valid yet.

Signature Verification

Verify HS256, HS384 and HS512 signatures with your secret, using the Web Crypto API in your browser.

Claims Explained

Common claims such as iss, sub, aud, jti and scope are explained in plain words next to their values.

Warnings

Flags tokens with alg none, no expiry, an empty signature or time values that look like milliseconds.

Private by Design

The token and the secret never leave your browser. Nothing is uploaded, saved or logged.

How to Decode a JWT Online

  1. Paste your token: Copy the JWT from your app, browser dev tools, API response or Authorization header. A leading “Bearer ” is removed automatically.
  2. Read the header and payload: The decoded JSON appears at once, with the signing algorithm, the claims and a plain-English explanation of common claims.
  3. Check the dates: exp, iat and nbf are converted to readable dates, with your local time and how long ago or from now they are. The banner tells you if the token is expired or not valid yet.
  4. Verify the signature (optional): For HS256, HS384 and HS512 tokens, enter the secret to confirm that the token was not changed.

What Is a JSON Web Token (JWT)?

A JSON Web Token (JWT, pronounced “jot”) is a compact, URL-safe way to pass claims between two parties, defined in RFC 7519. It is widely used for authentication and authorization, for example as an access token in OAuth 2.0 or an ID token in OpenID Connect. After a user logs in, the server issues a JWT and the client sends it back with each request, usually in the Authorization: Bearer header. A JWT is made of three parts separated by dots: the header, the payload and the signature, each encoded with Base64URL.

The Three Parts of a JWT

PartWhat it containsExample
HeaderThe token type and the signing algorithm. It can also hold a key ID (kid).{"alg":"HS256","typ":"JWT"}
PayloadThe claims: data about the user and the token, such as who it is for and when it expires.{"sub":"1234567890","exp":1893456000}
SignatureA signature over the header and payload, created with a secret or a private key. It proves the token was not changed.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

Common JWT Claims Explained

  • iss (issuer): Who created and signed the token.
  • sub (subject): Who the token is about, usually a user ID.
  • aud (audience): Who the token is meant for, such as an API.
  • exp (expiration time): The time after which the token must not be accepted. It is a Unix timestamp in seconds.
  • nbf (not before): The time before which the token must not be accepted.
  • iat (issued at): When the token was issued.
  • jti (JWT ID): A unique ID for the token, useful to prevent replay and for revocation lists.

Decoding Is Not the Same as Verifying

Anyone can decode a JWT, because the header and payload are only Base64URL encoded, not encrypted. A JWT decoder shows what the token says, but it cannot tell you that the token is genuine. Only verification of the signature, with the right secret or public key, proves that the token was issued by a trusted party and was not changed. This is why you should never put passwords or other secrets in a JWT payload, and why your server must always verify the signature, the expiry (exp), the issuer (iss) and the audience (aud) before it trusts a token.

JWT Security Tips

  • Always verify the signature on the server. Never trust a token only because it decodes.
  • Reject tokens with alg set to none, and allow only the algorithms you expect, so that attackers cannot choose the algorithm.
  • Use short-lived access tokens and refresh tokens, and always set exp.
  • Keep the payload small and free of sensitive data, because it is readable by anyone who holds the token.
  • Use a long random secret for HMAC algorithms (HS256, HS384, HS512), or use asymmetric keys (RS256, ES256) when many services only need to verify tokens.
  • Store tokens carefully on the client and send them only over HTTPS.
  • Treat real tokens like passwords. Do not paste live production tokens into tools you do not trust, and revoke or rotate a token that has been exposed.

Why Is My JWT Not Working?

  • Expired token: The exp time has passed. Check the banner and the date shown in the claims. Also check that the clocks of your servers are in sync.
  • Token not valid yet: The nbf or iat value is in the future, often because of clock differences.
  • Invalid signature: The secret or key is wrong, or the token was modified.
  • Wrong audience or issuer: The aud or iss claim does not match what your API expects.
  • Copy and paste mistakes: A cut-off token, extra spaces or quotes. This tool removes spaces, quotes and the Bearer prefix for you.
  • Encrypted token: A token with five parts is a JWE and cannot be read without the decryption key.

Is It Safe to Use an Online JWT Decoder?

This decoder runs completely in your browser. The token and the secret are not sent to our server, not stored and not logged, and the signature check uses the Web Crypto API on your device. Even so, tokens are credentials: use test tokens when you can, and rotate any real token that you have shared. The tool decodes signed tokens (JWS) and verifies HMAC signatures. It does not verify RSA or ECDSA signatures, does not decode encrypted tokens (JWE) and does not check claims such as aud or iss against your own settings.

Example: A Decoded JWT Header and Payload

A JWT looks like three Base64URL parts joined by dots. Here is a short example of what the decoder shows after you paste a token.

// Header
{
  "alg": "HS256",
  "typ": "JWT"
}

// Payload
{
  "sub": "1234567890",
  "name": "Ali Khan",
  "role": "admin",
  "iat": 1735689600,
  "exp": 1893456000
}

The decoder turns iat and exp into readable dates, shows your local time and tells you at once whether the token is active, expired or not valid yet.

What Do the JWT Status Messages Mean?

JWT status messages explained
Status What it means What to do
Active The token has an exp time in the future and nbf has passed. Nothing. You can still verify the signature.
Expired The exp time is in the past. Request a new token, for example with a refresh token.
Not valid yet The nbf time is in the future. Check the clock on the server that issued the token.
Unsigned (alg none) The header says no signature algorithm is used. Never accept this in production. It means the token is not protected.
No expiry The payload has no exp claim. Add an expiry on the server so stolen tokens stop working.
Times look like milliseconds exp, iat or nbf is 13 digits instead of 10. JWT times are Unix seconds. Fix the code that creates the token.

HS256, HS384 and HS512: Signature Algorithms You Can Verify

This decoder verifies tokens signed with a shared secret (HMAC). The three algorithms differ only in the strength of the hash.

HMAC algorithms for JWT
Algorithm Hash Key type Typical use
HS256 SHA-256 Shared secret The most common choice for simple apps and APIs.
HS384 SHA-384 Shared secret When a longer hash is required.
HS512 SHA-512 Shared secret When the strongest HMAC hash is required.

Tokens signed with a private key, such as RS256 or ES256, need a public key to verify. For those, use our JWT Inspector, which supports RSA, RSA-PSS and ECDSA keys in PEM, JWK and JWKS format.

Where to Find a JWT to Decode

If you are debugging a login or an API, these are the usual places to copy a token from.

  • Authorization header: Look for Authorization: Bearer followed by the token in your browser network tab or API client.
  • Browser storage: Open developer tools, then Application, and check Local Storage, Session Storage or Cookies.
  • API responses: Login endpoints often return an access_token or id_token field.
  • Server logs: Tokens sometimes appear in logs, which is a good reason to avoid logging them.
  • OAuth and OpenID Connect redirects: Tokens can appear in a callback response during sign-in tests.

Where Are JSON Web Tokens Used?

  • API authentication: Clients send an access token with each request instead of a password.
  • Single sign-on: Identity providers issue ID tokens to prove who signed in.
  • Mobile and single-page apps: Tokens keep users signed in without server-side sessions.
  • Microservices: Services pass user identity and permissions between each other.
  • Password reset and email links: Short-lived signed tokens can carry a one-time action.

Decode JWT Tokens on Mobile, Windows and Mac

The JWT decoder runs in your web browser, so you can decode a JSON Web Token online on Android, iPhone, Windows, Mac and Linux. Whether you search for a JWT decoder for Chrome, a JWT debugger for quick checks or a way to read a token from your phone while testing an app, the steps are the same: open the page, paste the token and read the result.

More Free Developer Tools

Clean up styles with the CSS formatter. Browse all free online tools for developers, SEO, text, PDF and image work.

ADVERTISEMENT
Demo Ad 300 x 250
COMMON QUESTIONS

Frequently Asked Questions About JWT Decoding

Short answers about decoding, verifying and debugging JSON Web Tokens.

Is it safe to paste my JWT into this decoder?

The decoding and the signature check happen in your browser, and nothing is sent to our server. Still, a token is a credential. Prefer test tokens, and rotate or revoke any real token that you have shared.

Does decoding a JWT prove that it is valid?

No. The header and payload are only Base64URL encoded, so anyone can read them. A token is trusted only after its signature is verified with the right secret or public key, and after exp, iss and aud are checked on your server.

Which signature algorithms can this tool verify?

HS256, HS384 and HS512, which use a shared secret. Tokens signed with RSA or ECDSA (RS256, ES256 and similar) are decoded, but their signature cannot be verified here.

How do I know if my JWT is expired?

The banner shows “Token expired” when the exp claim is in the past. The Claims table also shows the exp date in UTC and in your local time, and how long ago it was.

Why does the decoder say my token is invalid?

A JWT must have three parts separated by dots, with Base64URL text that decodes to JSON in the first two parts. The usual causes are a cut-off token, extra text, or an encrypted token (JWE) with five parts.

What does alg none mean?

It means the token is unsigned. Servers must reject such tokens, because anyone can create them. The tool shows a red warning when it finds alg set to none.

Can I put sensitive data in a JWT payload?

No. The payload is readable by anyone who has the token. Keep passwords and private data out of it, and store only what is needed, such as a user ID, roles and the expiry time.

ADVERTISEMENT
Demo Ad 320 x 50