Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Converters & Encoders
  3. JWT Decoder
Add to favorites

JWT Decoder

Decode a JSON Web Token instantly, check its expiry and claims, and verify the signature with a secret, PEM key or JWKS, all in your browser.

Runs locally in your browserMore converters & encodersJump to full guide
Related readingUnderstanding JWT Tokens: Structure, Security, and Validation11 min

Initializing in your browser…

You might also like

JWT Builder

Build and sign a JSON Web Token with HS, RS, PS or ES algorithms, generate secrets or key pairs, and verify the result in your browser.

Base64 Encoder/Decoder

Encode and decode text, files and JSON as base64, base64url or hex as you type, with a check that every result decodes back exactly.

URL Encoder/Decoder

Percent-encode and decode URLs as you type in four character sets, build query strings, and take any URL apart parameter by parameter.

An example conversion

Two tokens arrive at your API. They decode to almost the same payload, but one has gained "role": "admin". Which one did your server sign?

Tokens, verified with the HS256 secret

Signed HS256 sample
Tampered payload sample
alg: none sample
What JWT Decoder produces

Verdicts

Signed:    Signature verified with HS256.
           {"sub":"1234567890","name":"John Doe","iat":1516239022}

Tampered:  The signature does not match.
           {"sub":"1234567890","name":"John Doe","role":"admin","iat":1516239022}

alg none:  This token claims alg: none, which means it carries no signature at all.

Issued at: 2018-01-18T01:30:22Z. No exp claim, so the token never expires on its own.

The tampered token reuses the original signature with an edited payload. Decoding shows the new admin role perfectly well, which is exactly why decoding alone proves nothing. Verification recomputes the HMAC over the header and payload with the secret and compares it with the signature: it matches for the real token and fails for the edited one. The alg: none token has no signature to check, so it is refused rather than accepted. The missing exp claim is worth noticing too: a token without one is valid until the key changes.

What this converter does

Paste a JSON Web Token to see its header and payload decoded instantly, with expiry and other time claims checked against the current time. Add the secret or public key and the tool also verifies the signature, so you know whether the token is genuine as well as readable.

How it works

A JWT has three parts separated by dots: a header that names the signing algorithm, a payload of claims such as the user ID and the expiry time, and a signature. The first two are only base64url-encoded, not encrypted, so anyone holding the token can read them, which is what this decoder does the moment you paste one. A leading Bearer is ignored, so you can paste an Authorization header as it is. Each part is shown in its own colour, the header and payload are pretty-printed and can be copied, and registered claims are labelled in plain words.

Reading a token is not the same as trusting it. Anyone can edit the payload of a token and encode it again; only the signature shows whether the issuer actually produced those claims. Paste the key and the tool checks the signature in your browser. HMAC tokens (HS256, HS384, HS512) take the shared secret, as text, base64 or hex. RSA (RS256 to RS512, PS256 to PS512), elliptic curve (ES256 to ES512) and EdDSA tokens take a public key as a PEM block, a certificate, a JWK or a whole JWKS, in which case the key is chosen by the token's kid. The verdict says verified, does not match, refused (with the reason), or not checked because no key was given.

Some tokens are refused outright. A token with alg set to none carries no signature, so the tool says so instead of treating it as valid; accepting such tokens is a well-known security flaw. An RS256 token is never checked against a shared secret either, because that mismatch is the basis of the algorithm confusion attack, and the tool explains which kind of key the header requires. A five-part token is an encrypted JWE, which cannot be read without the decryption key, and the tool identifies it.

The time claims are checked live. Expiry (exp) is compared with your clock and shown as how long the token remains valid or how long ago it expired; a token is treated as expired from its exp second onwards, as RFC 7519 requires. Not before (nbf) and issued at (iat) are checked too, and an iat in the future is flagged because it usually means a clock is wrong. Under the claims you can enter the audience and issuer you expect and a clock leeway in seconds, the same settings a server-side verifier uses.

Tokens and keys are secrets, so neither ever leaves the page. They are not sent anywhere, not stored, and never written into the address bar; a share link carries only the audience, issuer, leeway and secret format.

How to use

  1. 1Paste the token into the box, or try one of the samples.
  2. 2Read the header and payload, and the claim checks for expiry and issue time.
  3. 3Paste the secret or public key into the key box to verify the signature. For HMAC secrets, choose whether the secret is text, base64 or hex.
  4. 4Read the verdict: verified, does not match, or not checked.
  5. 5Optionally open the audience, issuer and leeway settings to check the token the way your server would.

Key features

  • Instant decoding of header and payload, with a leading Bearer ignored
  • Signature verification for HS, RS, PS, ES and EdDSA algorithms
  • Keys as a shared secret, PEM public key, certificate, JWK or JWKS with kid matching
  • alg: none and algorithm confusion refused with an explanation
  • Live checks of exp, nbf and iat, with expected audience, issuer and clock leeway
  • Registered claims labelled and timestamps shown as dates
  • Encrypted JWE tokens recognised
  • Copy the header or payload as formatted JSON
  • Token and key never leave the page or enter a link

Tips & best practices

  • Paste the whole Authorization header value; the Bearer prefix is removed for you.
  • Use the JWKS from your identity provider as the key; the right key is picked by the token's kid.
  • Keep access tokens short-lived; a long exp makes a leaked token useful for longer.
  • Never put passwords or other secrets in a payload, since anyone with the token can read it.

Where this fits

  • Debugging authentication

    Paste the token your app sent and see at once whether it has expired, which audience it was issued for and which claims it carries.

  • Checking a token is genuine

    Verify a webhook or API token against the provider's published key or JWKS before trusting its claims.

  • Security reviews

    Confirm that a service rejects edited tokens by changing a claim and checking that the signature no longer matches.

  • Learning how JWTs work

    Try the three samples to see a properly signed token, the same token with an edited payload, and an unsigned alg: none token.

Frequently asked questions

Is it safe to paste my token here?

The token and key are processed only in your browser and are never sent, stored or added to the URL. Even so, treat production tokens with care: anyone who sees a valid token on your screen could use it until it expires.

Can you read a JWT without the secret?

Yes. The header and payload are only encoded, not encrypted, so anyone can read them. The secret or public key is needed to check the signature, which proves the token was not changed.

Why does the tool say "not verified" when the token decodes fine?

Because decoding says nothing about authenticity. Without a key the signature cannot be checked, so the tool will not call the token valid. Paste the secret or public key to verify it.

Why is an alg: none token refused?

It has no signature, so anyone could have written it. Accepting such tokens has caused real security breaches, and libraries reject them by default. The tool decodes it but refuses to treat it as verified.

What key do I need for RS256?

The issuer's public key, as a PEM block (-----BEGIN PUBLIC KEY-----), an X.509 certificate, a JWK, or the JWKS your provider publishes, often at a URL ending /.well-known/jwks.json. The private key is not needed and should never be shared.

Why is my token shown as expired?

Its exp time has passed, compared with your device's clock. If your clock or the server's is slightly off, set a clock leeway of 30 to 60 seconds, as many servers do.

Related tools and how they differ

  • JWT Builder: Creates and signs a new token from a payload you write, with a key it can generate for you; use it to make test tokens rather than read one.

Further reading

  • Understanding JWT Tokens: Structure, Security, and Validation11 min read

Private by design

Conversions run on your device in JavaScript. The values you enter are never sent over the network.