The quick answer

A JWT is three dot-separated Base64URL segments (header, payload, signature), and this decoder splits and decodes them instantly, flagging expired tokens from the exp claim. Decoding is not verification: the signature needs the secret or public key. Everything runs locally, so live tokens never touch a server.

What a JWT is, in plain terms

When you need to decode a JWT, you need it now, not after an account wall or a file upload. This page is the fast path: the JWT Decoder runs client-side, recomputes on every keystroke, and documents exactly how the result is produced.

The web would stop without encoding and hashing: no API request could carry its Base64-encoded credentials, no JWT you debug would split into three Base64URL segments, no file you verify would arrive with a SHA-256 checksum, and no account you create would get the unique strong password it deserves. It is all math, not services, and it runs in microseconds, yet most "online encoders" route your input through a server for no reason at all. Tools like JWT Decoder exist because that reason never arrived.

Nowhere else on a tools site does routing matter as much as here. The strings people paste are sensitive by definition (API keys, tokens, headers, passwords, certificate material), and client-side decoding removes the entire risk class: with no request to intercept, there is no log capturing the token and no retention policy to trust. A decoder running locally means exactly that.

What the decoder shows you

In plain terms, the JWT Decoder is a utility that runs in your browser for decoding JWTs to inspect claims and expiry safely. “Browser-based” is the important part: the computation runs on your machine using JavaScript, which means your data is never uploaded to a server, never stored, and never seen by anyone but you. That is a structural guarantee, not a policy promise: there is simply no network request to intercept.

Day to day, the workflow is exactly what you would expect: you paste the token and the decoded header, payload and expiry status appear instantly. Results update live, so there is no “calculate” button waiting to be pressed and no page reload between input and answer. When you are done, close the tab and everything you entered is gone.

Decoding a token, step by step

  1. Paste the token

    The box arrives with a sample token in it; paste yours over it. The header and payload decode live on every keystroke, with the expiry banner underneath.

  2. Read the header

    The left panel shows the decoded header JSON: alg and typ, which say which algorithm signed the token and that the thing is a JWT.

  3. Read the claims

    The right panel shows the payload JSON: sub, iat, exp and any custom claims. A green or red banner reports whether exp sits in the past against your clock, with the expiry date in UTC.

  4. Watch the warnings

    Stray whitespace or a broken segment produces a warning bar instead of a silent blank, and the decoder accepts both the URL-safe and the standard Base64 alphabet.

Competence with JWT Decoder arrives within a minute: input, check, take the result. The rest of the page is for the days when something needs a second look.

How the three segments are built

The first two segments are Base64URL: the URL-safe variant of Base64 that swaps + and / for - and _ and drops the = padding, because a JWT has to survive inside cookies, headers and query strings untouched. Each segment is simply JSON, UTF-8 encoded, then Base64URL-encoded, a 33% size overhead that buys transport through channels that only tolerate URL-safe ASCII. There is no compression and no encryption in those segments; the third one carries the signature.

The header's alg field decides what that signature is: HS256 means an HMAC keyed with a shared secret over SHA-256; RS256 means an RSA private key with the public half distributed for verification; ES256 uses elliptic curves. HS384/HS512 and RS384/RS512 are the wider variants, and alg "none" means no signature at all. Those algorithm names are also why hash status matters indirectly: MD5 and SHA-1 are broken for collisions and appear in no modern JWT profile, while SHA-256 (the backbone of HS256 and RS256) is currently safe.

One boundary this decoder draws in bold: decoding is not verifying. Anyone can write any claims they like and Base64URL-encode them, and a forged token decodes just as happily as a genuine one. Proving authenticity means recomputing the signature with the HMAC secret or the issuer's public key, and only a verifier holding that key can do it. Treat the decoded view as an x-ray, not a certificate of origin.

A worked decode you can check by hand

Take the header eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9: Base64URL-decode it and you get {"alg":"HS256","typ":"JWT"}. Now the payload eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkFkYSBMb3ZlbGFjZSIsImV4cCI6MTczODY0MDAwMH0; decoding yields sub 1234567890, name Ada Lovelace, exp 1738640000, which is a Unix timestamp the decoder immediately checks against your clock. Paste any token here and the same two-step decode runs live; you can verify each segment by hand with any Base64 decoder, including ours.

Who reaches for a JWT decoder

Backend developers: the JWT comes out of a failing request and the first question is what is inside it: expiry, issuer, audience, scopes. Decode locally, read the claims, and the debugging starts from facts instead of guesses. The pattern never varies: arrive with a token, get a legible answer in seconds, move on, with nothing uploaded and nothing left behind.

Security engineers: auditing what a token actually exposes before trusting it with a route: which claims travel in the clear, whether personally identifying data is sitting in the payload, and whether the alg is HS256 with a weak shared secret or something asymmetric. Every claim in a decoded payload is readable by anyone holding the token, and this is where you find out that the hard way was avoidable.

Support engineers: the ticket says "login randomly breaks." One paste later the decoder shows exp is in the past, or iat is hours ahead of the server clock, and the real culprit is session refresh or clock skew rather than the auth service. Fifty seconds of decoding beats an afternoon of log spelunking.

Students of web security: a JWT is the first cryptographic artifact most developers get to hold, and pulling one apart teaches the difference between encoding (Base64URL, reversible by anyone) and signing (HMAC or RSA, verifiable only with the right key). That distinction is the entire mental model for the token formats that come after it.

QA engineers: before filing an auth bug, decode the token the test client received. The scopes, audience and expiry are all visible claims, and half of "the API 401s" turns out to be a token minted for the wrong audience. Pasting a production-shaped token into a server-side decoder is exactly the habit this local tab exists to break.

What decoding cannot tell you

  • A segment will not decode: check for stray whitespace or line breaks from copy-paste, and remember JWTs use URL-safe Base64 (- and _), not the standard alphabet (+ and /). The decoder here accepts both spellings.
  • The token decodes but looks 'wrong': decoding is not verification, and anyone can forge an unsigned token's contents; only the signature, checked with the secret or public key, proves authenticity.
  • The header says "alg": "none": the token is unsigned, meaning anyone could have minted it. Fine for demos, disqualifying for anything that touches real authentication.

Your tokens never touch a server

Local first: the decode runs on your machine, in JavaScript, in this tab. Tokens are credentials, and the encoding cluster on this site is built so nothing leaves your device; where a tool must make a network call (an IP lookup, for instance), the page says so explicitly. This decoder makes no network calls at all.

Compared with jwt.io and the command line

AlternativeWhy people pick JWT Decoder instead
Command-line tools (base64, openssl)The same operations without remembering flags, and without leaving your input in shell history
Server-side encodersTokens and keys never cross the network; there is literally no request to log
jwt.io-class sitesDecoding with expiry checking in your browser, with the no-upload guarantee spelled out

No pretend-sweeps here: the command line wins for a hundred tokens in a script, and jwt.io can verify a signature once you paste the secret. For one live token whose contents you want to read, this tab asks for neither the flags nor the secret.

Frequently asked questions

Is a key needed to decode a JWT, or will it read directly?

No key is needed for the header and payload; those segments are Base64URL, an encoding rather than an encryption, and this decoder reads them in one step. A key only enters the picture for the signature segment, and there it is used to verify authenticity, not to reveal anything hidden. Nothing inside a JWT's first two segments is hidden from anyone holding the token.

Does the decoder verify the JWT signature?

No, and it is important to be explicit about that. Verification means recomputing the signature with the HMAC secret or the issuer's public key and comparing, and this page deliberately does not ask you for either. Decoding shows you what a token claims; only a verifier holding the key can prove who minted it. Treat the output as an x-ray, not a stamp of authenticity.

Why do JWTs use Base64URL instead of standard Base64?

Because tokens travel through places where +, / and = are dangerous: cookies, HTTP headers and query strings. Base64URL swaps + and / for - and _ and drops the = padding, so a token survives those channels byte-for-byte. The trade is the same 33% size overhead as standard Base64: three bytes in, four URL-safe characters out.

Can someone read my JWT without the secret?

Yes, that is the design. The payload is only Base64URL-encoded, so anyone who intercepts the token reads every claim inside it: user IDs, roles, email addresses, whatever was put there. The signature prevents tampering, not reading. Never place secrets, passwords or data you consider confidential in a JWT payload.

What do exp, iat, sub, iss and aud mean?

They are the registered claims from RFC 7519. exp is the expiry as a Unix timestamp; the decoder compares it to your clock and flags expired tokens. iat is issued-at; sub identifies the subject (usually the user); iss names the issuer; aud states which audience the token is for. A 401 that surprises you usually traces to one of these five disagreeing with expectations.

Are tokens protected when pasted on this page?

Yes, by construction: decoding is pure local computation, the page works offline after loading, and there is no request to leak. Open the network tab and watch nothing happen while you paste. The caution that remains is habit: a live access token is a credential, and it belongs in as few places as possible, local tools included.

Is the JWT Decoder free to use?

Free, with no strings attached: no signup, no email wall, no daily quota. Because the work happens client-side in your own browser, there is no server bill to pass on and nothing to gate behind a plan. No premium tier hides the useful parts.

Neighbouring tools in the encoding cluster

These tools share the JWT Decoder's workflow most often; the internal links exist because people genuinely chain them.

  • Password Generator: free password generator that works instantly in your browser; pairs naturally with this tool when your workflow needs the next step.
  • What Is My IP: free IP lookup that works instantly in your browser; pairs naturally with this tool when your workflow needs the next step.

The takeaway, and where to read further

The JWT Decoder has exactly one purpose, decoding JWTs to inspect claims and expiry safely, and no appetite for complication: no signup, no upload, no black box. The method is on this page, the examples are real computations, and your data stays on your device.

Sources and further reading

We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.