/ Tool 11
JWT Decoder
Paste any JSON Web Token and see exactly what it says: header, payload claims, and signature — decoded live with syntax highlighting, expiration status, and sensitive-claim warnings. Read-only, 100% in your browser, zero uploads.
JWT input
0 charsHeader
Payload claims
Signature
How It Works
Paste Your Token
Drop in any JWT — from your app, Postman, or a log file — or load one of the three built-in samples (standard, expired, Firebase/Auth0). The three parts are color-coded as you type.
Decode in Real Time
Base64url segments are decoded locally every 200 ms — no request is ever made. The header, payload, and signature are parsed and formatted the moment you stop typing.
Inspect the Claims
Read the algorithm, issuer, subject, and every claim with human-readable dates. Get an ACTIVE/EXPIRED badge from exp, plain-English iat/nbf timestamps, and instant highlighting when passwords, secrets, or emails are embedded.
Note: this is a read-only decoder. It never verifies signatures — verification requires the issuer's secret key, and asking you for it would break the privacy guarantee. Use it to inspect, debug, and audit tokens, not to validate them.
How to Use the JWT Decoder
Paste any JSON Web Token into the input. The tool splits the token into its three parts — header, payload, and signature — and renders the two JSON sections with live syntax highlighting. The payload is where the debugging value is: every claim (sub, iss, aud, roles, session data) is listed so you can see exactly what the token asserts.
Time-based claims are evaluated for you. The decoder shows the iat (issued at) and nbf (not before) timestamps in readable form, and the exp claim gets a live status badge — ACTIVE or EXPIRED — so you can immediately tell whether a "permission denied" is caused by a token that has simply run out of life.
Use the decoder in the usual debugging loops: inspecting a token a client sends, comparing a production token against the one your backend issues, or reading an error message that includes the failing token. Copy any section as formatted JSON when you need to paste it into a log, a ticket, or another tool.
Why This Runs 100% in Your Browser
A JWT is a credential in transit: it identifies a user, carries their roles, and can gate access to production systems. Even though the payload is only base64-encoded and not encrypted, pasting a live token into a third-party decoder means a valid credential crosses the network to a service you do not audit — and logged tokens have, repeatedly, been the source of real breaches.
This decoder performs the entire inspection locally. The token is never transmitted, never logged, and the page keeps working with the network disabled. Treat any "online JWT decoder" as a place where tokens should not go — and use this one where they should.
Code & CLI Equivalents
A JWT payload is base64url-encoded JSON, so decoding it is two shell steps. This is exactly what the tool does — useful in a terminal when you are debugging auth on a server and cannot open a browser.
# python3 — decode payload (handles base64url padding)
export JWT="eyJhbGciOi..."
python3 - <<'EOF'
import os, base64, json
p = os.environ["JWT"].split(".")[1]
p += "=" * (-len(p) % 4)
print(json.dumps(json.loads(base64.urlsafe_b64decode(p)), indent=2))
EOF # bash — quick and dirty (padding may vary)
echo "$JWT" | cut -d. -f2 | base64 -d 2>/dev/null; echo Frequently Asked Questions
Is decoding a JWT the same as verifying it?
No. Decoding only splits and renders the token; it does not check the signature, so it cannot prove the token was issued by your backend or that it has not been tampered with. Use this tool to inspect structure and claims, and verify signatures server-side with your signing key.
The payload is base64, not encrypted — is it safe to read?
Reading it is safe; trusting it blindly is not. Anyone who can read the payload can see its claims, which is why JWTs should never carry secrets — only assertions your server will re-verify. The decoder shows the claims for inspection, not as proof of authenticity.
What do iat, nbf, and exp mean?
iat is the time the token was issued, nbf is the earliest time it is valid, and exp is the time it stops being valid. The decoder renders iat and nbf in readable form and badges exp as ACTIVE or EXPIRED, which is usually the first thing to check on an authentication failure.
Can I decode tokens from any framework or provider?
Yes. A JWT is a format, not a product: tokens from Auth0, Firebase, Cognito, Spring Security, Laravel Sanctum, or a hand-rolled issuer all follow the same three-part structure, so the decoder handles them all identically.
Is the token I paste stored anywhere?
No. The token lives only in the page's local state in your browser. It is not transmitted, logged, or persisted — close the tab and it is gone, which is the behavior you want from a credential-inspection tool.