JWT Decoder — decode & inspect any token
Paste any JSON Web Token to decode its header and payload instantly, read every claim in plain language with timestamps turned into real dates, watch its expiry count down live, and — for HS256, HS384 and HS512 tokens — verify the signature with your secret. Decoding runs entirely in your browser: the token is never uploaded.
Header
Payload — the claims
Claims in plain language
Registered claims are explained; timestamps are shown as dates in UTC and your local time. Custom claims are listed with their raw values.
| Claim | Value | What it means |
|---|
Signature
Verify the signature (HMAC only)
Decoding shows you the claims; only a valid signature proves they are genuine. For HS256, HS384 and HS512 tokens, enter the shared secret the issuer signed with — the check runs locally with the Web Crypto API and the secret never leaves this tab. RSA and ECDSA tokens are verified with public keys, not shared secrets, so they cannot be checked here.
Find & Replace
Repair a pasted token before decoding — strip a stray character, or fix a segment you copied twice. Works on the token box above; the decode updates as soon as you replace.
Try an example token
Real, well-formed tokens generated for this page with demo secrets — one click loads the token, and where a secret exists it is filled into the verification panel so you can check the signature yourself.
Your session
Decodes you copy, pin or load from the examples during this visit, kept only in this tab's memory — step back and forth, restore one, or pin a token you keep coming back to. Tokens are sensitive: nothing here is stored on disk or sent anywhere, and it all disappears when the tab closes.
Recent decodes
No decodes recorded yet — copy a result, pin a decode or load an example and it will appear here.
Pinned decodes
No pinned decodes yet — decode a token, then use “Pin this decode”.
Your tools
Tools you have actually opened this session, plus any you pin as favorites. The lists live in this browser session only.
Recently used
No other tools opened yet this session — tools you visit will appear here.
Favorite tools
No favorites yet — pin a tool below.
All encoding & conversion tools
How to decode a JWT
- Paste the full token into the box — three Base64url segments separated by dots. A leading Bearer from an Authorization header is stripped automatically, as is stray whitespace.
- Read the header (the signing algorithm and token type) and the payload, then the claims table, which converts exp, iat and nbf timestamps into dates and explains every claim.
- Check the validity banner: expired, not yet valid, or a live countdown to expiry.
- For HS256, HS384 or HS512 tokens, enter the shared secret in the verification panel to check the signature cryptographically — the only step that proves a token is genuine.
Worked example
Anatomy of a JWT
A JWT (RFC 7519) is a JWS compact serialization: three Base64url segments joined by dots. Base64url is ordinary Base64 with + and / swapped for - and _ and the = padding dropped, so the token survives URLs and headers untouched.
| Part | Contents | Example |
|---|---|---|
| Header | JSON: the signing algorithm (alg), token type (typ), sometimes a key ID (kid) | {"alg":"HS256","typ":"JWT"} |
| Payload | JSON claims about the subject and the token itself — identity, issuer, audience, times | {"sub":"1234567890","exp":1893456000} |
| Signature | The algorithm applied to header.payload with the issuer's key — proves authenticity and integrity | HMAC-SHA256 → 32 bytes, Base64url |
The registered claims
| Claim | Name | Meaning |
|---|---|---|
| iss | Issuer | Who issued the token — usually an authorization-server URL |
| sub | Subject | Who the token is about — typically a user ID, unique per issuer |
| aud | Audience | Who the token is meant for — an API or client ID; a string or an array |
| exp | Expiration time | Seconds since the epoch after which the token must be rejected |
| nbf | Not before | Seconds since the epoch before which the token must not be accepted |
| iat | Issued at | Seconds since the epoch when the token was created |
| jti | JWT ID | A unique ID for this token, used to detect replay |
Everything else is a custom (private) claim defined by the issuer — scope, roles, tenant, profile fields like name and email from OpenID Connect, and so on. The claims table above lists them all with their raw values.
Decoding is not verifying
Anyone holding a token can decode it — that is by design, and it is why a JWT payload must never contain secrets. What stops an attacker from editing the claims is the signature: change one character of the payload and the signature no longer matches. HMAC algorithms (HS256/384/512) sign and verify with the same shared secret; RSA and ECDSA algorithms (RS256, ES256, PS256…) sign with a private key and verify with a public key, usually fetched from the issuer's JWKS endpoint. And a token with alg: "none" has no signature at all — accepting one is a classic, critical misconfiguration.
Where a decoded payload goes next
Debugging a token rarely ends with reading it. The payload usually goes into the JSON Formatter to explore nested claims, the JSON Validator before it is pasted into a ticket or a test fixture, or JSON to CSV to line several tokens' claims up side by side and spot the one claim that differs. The individual segments are plain Base64url, so the Base64 Encoder/Decoder handles them too. The “Send decoded payload to…” bar above carries the payload JSON into all of these for you — and a token chained in from another tool is loaded and decoded here automatically.
Frequently asked questions
What is a JWT?
A JSON Web Token (JWT, RFC 7519) is a compact, URL-safe way to carry claims between two parties — most often proving who a user is to an API. It has three Base64url-encoded parts separated by dots: a header (algorithm and token type), a payload (the claims, such as subject and expiry), and a signature that lets the receiver confirm the token was issued by someone holding the key and was not altered.
Is decoding a JWT the same as verifying it?
No. Decoding is just Base64url-decoding the header and payload — anyone who holds a token can read its contents, with no key. Verifying means checking the signature cryptographically, which is what actually proves the token is genuine. This page does both: it decodes every token, and it can verify HS256, HS384 and HS512 signatures if you supply the shared secret.
Is it safe to paste a token here?
Everything on this page runs locally in your browser: the token is never uploaded, stored or logged, and the page works fully offline once loaded. That said, treat any live access token like a password — decode it here to inspect it, but do not share screenshots of it or paste it into chat, tickets or other websites.
Why does my JWT fail to decode?
The usual causes are a truncated copy (a JWT must have exactly three segments separated by two dots), characters outside the Base64url alphabet in a segment, a segment that decodes to bytes which are not valid UTF-8 JSON, or pasting only the payload. This tool names the segment and the exact problem it found.
What do exp, iat and nbf mean?
They are registered time claims, expressed as seconds since the Unix epoch. exp is when the token expires and must be rejected; iat is when it was issued; nbf is the time before which it must not be accepted. This page converts all three into calendar dates, shows them in UTC and your local time, and counts down to expiry live.
Can this tool verify a JWT signature?
Yes, for the HMAC algorithms HS256, HS384 and HS512: enter the shared secret (as UTF-8 text or Base64url) in the verification panel and the signature is checked with the Web Crypto API in your browser. RSA and ECDSA tokens (RS256, ES256, PS256 and relatives) are signed with private keys and verified with public keys or a JWKS endpoint, which this decoder does not fetch — it decodes those tokens and explains their headers instead.
What does alg “none” mean — is the token valid?
alg “none” means the token is unsigned: its third segment is empty and anyone could have written its claims. A well-configured API must reject such tokens. If you meet one in the wild, treat it as a red flag — this page decodes it but flags it clearly as unsigned and unverifiable.
Why is a JWT not encrypted?
A standard JWT (a JWS) is signed, not encrypted: its payload is only Base64url-encoded, so anyone holding the token can read every claim. The signature provides integrity and authenticity, not confidentiality. Never put secrets, passwords or sensitive personal data in a JWT payload — use an encrypted JWE if the contents must be hidden.
Where does a decoded JWT payload go next?
Usually into the JSON tools: formatting it to read nested claims, validating it before pasting it into a ticket or a test fixture, or converting it to CSV to compare claims across tokens. The “Send decoded payload to…” bar on this page carries the payload JSON straight into the JSON Formatter, JSON Validator, JSON to CSV and other suite tools.
Related encoding & conversion tools
About this tool
The JWT Decoder is one of the free utilities in the Online Utilities Suite at dev.conversiontools.online. Every tool runs entirely in your browser — your tokens, text and files are never uploaded, stored or tracked — so decoding and verification are instant and private, even for long tokens.
Privacy
This page processes everything locally in your browser: no account, no uploads, and nothing you paste here — token or secret — is stored or sent to a server. The session panel keeps decodes in this tab's memory only, and they vanish when the tab closes. Advertising on this site is served by Google AdSense, which may use cookies to personalize ads; you can opt out of personalized advertising in your Google ad settings.