Unlike other JWT decoders, your sensitive tokens and secrets are never sent to a server. All decoding and verification happens locally within your browser's JavaScript engine.
A JSON Web Token carries a small JSON document — the claims —, usually to prove who a user is. It has three
parts separated by dots: a header naming the signing algorithm, a payload holding claims such as sub (who the
token is about), iss (who issued it), aud and exp (when it stops being accepted), and a signature. The header
and payload are only Base64URL-encoded, never encrypted, so anyone holding the token can read them without it
leaving your browser.
Paste a token and the tool splits it on its two dots into header, payload and signature. The first two segments
are Base64URL-decoded — the URL-safe Base64 variant that swaps + and / for - and _ and drops the = padding,
which the decoder restores automatically — then parsed as JSON and pretty-printed. The signature segment is
extracted and displayed as-is: this tool unpacks tokens, it does not recompute or check signatures. A bulk mode
decodes several tokens at once. Everything runs locally in your browser.
02
Practical Application & Code Integration
Use-Case Context
**A worked example, decoded end to end**
`eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI0ODIxIiwibmFtZSI6IkF5ZXNoYSBLaGFuIiwiaXNzIjoiaHR0cHM6Ly9hdXRoLmV4YW1wbGUuY29tIiwiYXVkIjoiYmlsbGluZy1hcGkiLCJpYXQiOjE3NjcyMjU2MDAsIm5iZiI6MTc2NzIyNTYwMCwiZXhwIjoxNzY3MjI5MjAwLCJzY29wZSI6Imludm9pY2VzOnJlYWQifQ.opD742V7eokrOFtiLZmdsC9K-LK7A89g0S8c2-fb_8Y`
This token was created and signed with the throwaway secret "demo-secret". The header segment decodes to {"alg":
"HS256", "typ": "JWT"} — HMAC with SHA-256. The payload decodes to:
{"sub": "4821", "name": "Ayesha Khan", "iss": "https://auth.example.com", "aud": "billing-api", "iat": 1767225600, "nbf": 1767225600, "exp": 1767229200, "scope": "invoices:read"}
Read the registered claims: sub (subject) is the user ID, 4821; iss (issuer) is the auth service that minted the
token; aud (audience) restricts acceptance to the billing API. The three timestamps are Unix seconds, not dates:
iat (issued at) 1767225600 is Thu 01 Jan 2026, 00:00 UTC; nbf (not before) is the same instant; exp (expires)
1767229200 is 01:00 UTC — a lifetime of 3,600 seconds. The third segment (43 characters) is the signature: the
Base64URL form of the 32-byte, 256-bit HMAC-SHA256 computed over the first two segments and the dot between
them.
**Decoding is not verifying**
Reading a token proves nothing about whether it is genuine. Verification happens on your backend, which
recomputes the signature over the received header and payload — with the shared secret for HS256, or the
issuer's public key for RS256 — compares it with the signature segment, and only then trusts the claims. HS256
uses one shared secret to sign and verify, so its holder can also mint tokens; RS256 signs with a private key
and verifies with a public one. This decoder stops at decoding, so a live production token never has to be
pasted into a server-side tool that might log it. An attacker who steals the token can decode it too: payloads
are public. And a header claiming "alg": "none" means the token arrives unsigned, ending in a trailing dot with
an empty third segment; such tokens must always be rejected.
**Why a token fails — read it off the payload**
Most rejected-token debugging ends in the decoded payload. An exp in the past means the session aged out. An nbf
a few minutes in the future usually means clock skew between the issuing server and yours — why verification
libraries allow 30 to 60 seconds of leeway around the time claims. A string that does not split into exactly
three segments is truncated, or is not a JWT: an opaque session ID has no dots. Garbage from a hand-rolled
decoder is usually padding: Base64URL strips the trailing = characters, strict decoders need them restored, and
a segment whose length modulo 4 is 1 is never valid.
Node.js JWT Verification Example
const jwt = require('jsonwebtoken');
function verifyToken(req, res, next) {
const token = req.headers['authorization']?.split(' ')[1];
if (!token) return res.status(401).send('Access Denied');
try {
// Verify the signature against your private secret
const verifiedPayload = jwt.verify(token, process.env.JWT_SECRET);
req.user = verifiedPayload;
next();
} catch (err) {
res.status(400).send('Invalid Token');
}
}
03
Common Questions About JWT Decoder & Generator
Does decoding my JSON Web Token using this web utility validate its cryptographic signature?
No. This tool is strictly a visual decoder for header and payload contents. Signature validation means
processing the token against your private secret key or public RSA keys in your backend auth framework.
Is my authentication session payload exposed to any tracking scripts during the decoding process?
Never. The utility runs sandboxed within your browser window: no token contents are posted to analytics servers
and nothing is stored.
Where do I find my token in the browser?
Open the site's DevTools. Tokens usually live in the Application tab, under Local Storage or Cookies, or in the
Network tab: select any API request and read the Authorization: Bearer header. Copy the part after "Bearer " and
paste it here; decoding is local, so the token never leaves your machine.
What is the kid header, and where do I get the public key (JWKS)?
kid (key ID) names which of an issuer's keys signed the token, so a verifier knows which one applies. With
RS256, issuers publish their public keys as a JWKS (JSON Web Key Set), normally at https://your-issuer/.well-
known/jwks.json, discoverable via /.well-known/openid-configuration. Your auth library fetches that set and
picks the key whose kid matches.
Can this tool read an encrypted token (JWE)?
No. An encrypted JWE has five dot-separated segments instead of three, and its payload segment is ciphertext:
decoding it produces bytes, not JSON, so there is nothing readable to display. This tool reads signed JWTs
(JWS), whose header and payload are plain Base64URL-encoded JSON. Only the decryption key holder can open a
five-segment token.
Looking for more professional developer utilities?