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.
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.
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 token and secret are processed inside your browser. They are never sent to or stored on our server.
Paste the token. A leading “Bearer ” and extra spaces are removed for you.
See the decoded JSON, the algorithm, readable dates and explained claims.
For HS256, HS384 and HS512 tokens, enter the secret to check the signature.
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.
Decodes Base64URL and shows pretty-printed JSON for the header and the payload, with colors for each part of the token.
Converts exp, iat and nbf into readable UTC and local dates and shows if the token is expired or not valid yet.
Verify HS256, HS384 and HS512 signatures with your secret, using the Web Crypto API in your browser.
Common claims such as iss, sub, aud, jti and scope are explained in plain words next to their values.
Flags tokens with alg none, no expiry, an empty signature or time values that look like milliseconds.
The token and the secret never leave your browser. Nothing is uploaded, saved or logged.
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.
| Part | What it contains | Example |
|---|---|---|
| Header | The token type and the signing algorithm. It can also hold a key ID (kid). | {"alg":"HS256","typ":"JWT"} |
| Payload | The claims: data about the user and the token, such as who it is for and when it expires. | {"sub":"1234567890","exp":1893456000} |
| Signature | A signature over the header and payload, created with a secret or a private key. It proves the token was not changed. | SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c |
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.
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.
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.
| 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. |
This decoder verifies tokens signed with a shared secret (HMAC). The three algorithms differ only in the strength of the hash.
| 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.
If you are debugging a login or an API, these are the usual places to copy a token from.
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.
Clean up styles with the CSS formatter. Browse all free online tools for developers, SEO, text, PDF and image work.
Short answers about decoding, verifying and debugging JSON Web Tokens.
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.
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.
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.
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.
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.
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.
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.
Decode a JWT, inspect and verify tokens in depth, format JSON or encode and decode Base64 in seconds. Explore free developer tools to format, convert and debug your data in one place.
Explore All Developer Tools →