JWT Decoder & Debugger
Decode JWTs instantly, inspect claims and expiration, catch dangerous configuration like alg:none, redact sensitive claims, compare tokens and verify signatures locally. Your tokens never leave your browser.
Security warnings
Time claims
Validity timeline
Header
Payload
Signature
Compare two tokens
Paste a second JWT to compare claims, timestamps, roles, scopes, audiences, tenants and security warnings. The first token is the one in the decoder above.
Local test token signer
Create HMAC-signed test tokens locally for debugging. This is for development fixtures, not production token issuance.
What is inside a JWT?
A JSON Web Token is three base64url-encoded parts joined by dots. The header describes how the token was signed — for example {"alg":"HS256","typ":"JWT"}. The payload carries claims such as the subject, issuer, roles and timestamps. The signature is the bytes that prove the first two parts were not changed, assuming the verifier uses the right key and algorithm.
Decoding is not verification. Anyone can decode a JWT because base64url is encoding, not encryption. The security decision happens later, when your server validates the signature, issuer, audience, expiration and algorithm. That distinction is why a decoder can be useful locally without ever being trusted to accept tokens.
Why alg:none is a red flag
The none algorithm means “this token is intentionally unsigned.” It exists for very narrow contexts, usually inside a trusted environment where integrity is guaranteed by something else. On the public internet it is a classic attack: if a service accidentally accepts it, anyone can write arbitrary claims — user IDs, admin roles, tenant identifiers — and present them with no signature at all.
A production verifier should pin the algorithms it expects, reject everything else, and never derive the accepted algorithm only from attacker-controlled token input. Treat every alg:none token you see in the wild as hostile until proven otherwise.
HS256 is useful — and easy to misuse
HMAC algorithms such as HS256 are not broken. The risk is operational: one shared secret both signs and verifies tokens. If that secret is short, reused across environments, committed to a repository or copied into debugging tools, every token it protects becomes forgeable. Key confusion is another classic failure: a service that accepts both asymmetric and symmetric algorithms may end up using a public key as an HMAC secret.
Use long random secrets, rotate them, keep them in a secret manager and prefer asymmetric signing when tokens cross trust boundaries. When you paste a secret here for verification, it stays in this tab and is not included in the URL.
Security linting for real-world JWT mistakes
Decoding the payload is only the first step. The debugger also flags dangerous header inputs such as attacker-controlled key URLs (jku/x5u), embedded key material, suspicious kid values, inconsistent time claims, very long-lived tokens and missing issuer or audience claims. It also detects five-part JWEs and explains that encrypted tokens cannot be inspected without the decryption key.
Your tokens never leave your browser
Most people paste JWTs while debugging something sensitive: a production login, a customer impersonation bug, an expired session in an incident channel. Those tokens can contain names, emails, tenant IDs, roles and internal identifiers — and before expiration they may still work as credentials. jwt.io is operated by Auth0. That brand may be trustworthy, but pasting a live credential into any vendor-controlled page expands the circle of systems you have to trust.
This page is static. There is no API waiting on the other side, no token logging endpoint and no account system. Analytics and advertising scripts are disabled here, so the token fragment is not exposed to measurement or ad beacons either. Open your browser's network inspector, paste a token and watch: the decode happens locally. The share link can include a small token in the fragment so a colleague sees the same state; fragments are not sent to the web server, but anyone you send the link to can read it, so use the redacted share link for real credentials and review the result before sending it. Redaction is helpful, not a guarantee of perfect anonymization.
Frequently asked questions
How do I decode a JWT?
Paste the token into the decoder. A JWT has three base64url-encoded parts separated by dots: header, payload and signature. The tool decodes the header and payload as JSON, translates time claims into readable dates and flags security issues without sending the token anywhere.
Is it safe to decode a JWT online?
It depends on where the decoding happens. Many online decoders are operated by identity vendors or send data to a backend. This decoder is a static page: parsing, expiration checks and signature verification all run in JavaScript inside your browser. Open the network tab and verify that your token is never transmitted.
Why is alg none dangerous in a JWT?
The none algorithm means the token is unsigned. If a server accepts it, an attacker can remove the signature check entirely and forge any claims they want, including admin roles or different user identities. Production systems should explicitly reject alg none tokens.
Can this tool verify JWT signatures?
Yes. Paste an HMAC secret for HS256, HS384 and HS512, or paste a PEM public key, JWK or JWKS for RS, PS, ES and EdDSA algorithms. Verification runs locally with WebCrypto. Secrets and keys are never added to the URL and never leave your browser. When a JWKS contains several keys, the tool selects a compatible key matching the token kid when possible.
What do exp, iat and nbf mean in a JWT?
exp is the expiration time, iat is when the token was issued, and nbf is the earliest time when the token becomes valid. They are NumericDate values: seconds since the Unix epoch. The decoder converts them to readable dates and shows whether the token is expired or not valid yet.
Why does my JWT fail to decode?
A JWT must contain exactly three parts separated by dots, and the first two parts must be valid base64url-encoded JSON objects. Common failures are copied whitespace, missing segments, invalid base64url characters, truncated tokens and payloads that are not JSON.
What is a redacted JWT share link?
The redacted share link copies a version of the token where potentially identifying claims such as emails, names, tenant IDs and session identifiers are replaced with redacted placeholders. It is designed for safer debugging conversations, but you should still review the output before sharing it.
Related tools
- JSON Formatter, Validator & Diff — format the decoded payload or compare two JSON responses.
- Penetration Test Plan Generator — turn authentication findings into a professional test plan.
- Cron Expression Generator — debug the schedule behind token cleanup and key rotation jobs.