Skip to main content

JWT Decoder

Decode a JWT to inspect its header, payload and claims like exp, iat, iss and aud, and see if it has expired. Tokens are decoded locally, never uploaded.

JWT

Stays in your browser

Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)

Next steps

Done here? Use the Send to… menu on the result to carry it on to JSON Parser or JWT Encoder / Signer.

Free Online JWT Decoder & Inspector

Paste a JSON Web Token to instantly decode its header and payload, see standard claims like issuer and subject highlighted, and check whether it's expired — all without the token ever leaving your browser. It helps developers inspect a bearer token during API debugging without attempting to verify a token signature or trust it.

What is a JWT?

A JSON Web Token (JWT) is a compact, URL-safe way to represent claims — statements about a user or session — that gets passed between two parties, most commonly used for authentication and authorization in web APIs. A JWT has three Base64URL-encoded segments separated by dots: a header (describing the signing algorithm), a payload (the actual claims), and a signature (proof the token hasn't been tampered with, verifiable only by whoever holds the signing secret or key).

How to decode a JWT online

Paste the full token — including all three dot-separated segments — into the input box and click Decode. The header and payload are decoded and pretty-printed instantly, standard claims like iss, sub, and exp are pulled out and highlighted with their meaning, and if the token has an expiration claim, you'll see whether it's currently active or expired and by how long.

Decoding vs. verifying

This tool decodes a JWT — it reads and displays the header and payload, which is possible for anyone since they're only encoded, not encrypted. It does not verify the signature, which would require the issuer's secret (for HMAC algorithms) or public key (for RSA/ECDSA algorithms). Never paste a production secret key into any online tool, including this one — decoding a token you already have doesn't require one.

Common use cases

  • Debugging why an API call fails by inspecting the claims in the auth token being sent
  • Checking whether an access token has expired without writing a script
  • Understanding what data an identity provider (like Auth0, Firebase Auth, or a custom auth service) actually puts in its tokens

Worked example

Decoding the widely-used jwt.io example token — eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c — produces the header {"alg": "HS256", "typ": "JWT"} and payload {"sub": "1234567890", "name": "John Doe", "iat": 1516239022}. sub and iat are recognized as standard claims and shown with their meaning (Subject, Issued At); this token has no exp claim, so the expiration banner reports "No expiration (exp) claim in this token" rather than guessing.

Common mistakes and edge cases

  • Pasting only the payload segment (or a JSON object copied from somewhere else) instead of the full three-part token fails immediately — a JWT must have exactly 3 dot-separated segments.
  • A token with no exp claim doesn't show as "active" or "expired" — it explicitly says there's no expiration claim, since guessing either status would be misleading.
  • Decoding alone does not prove a token is genuine. Use Verify signature with the issuer's key, and remember that a token can also be revoked or rejected by the server for other reasons.

Frequently asked questions

Is my JWT uploaded anywhere when I decode it?
No — decoding happens entirely in your browser by Base64URL-decoding the token's two JSON segments. Nothing you paste is ever sent to a server, which matters since a real JWT often contains a live session or user identity.
Does this tool verify the JWT signature?
Yes, if you give it the key. In the Verify signature section paste the shared secret (HS256, HS384, HS512), a PEM public key or certificate (RS, PS, ES and EdDSA) or a JWKS. The check runs in your browser, and a JWKS web address is never fetched: paste the JSON instead.
Why do I see "Expired" even though the token still works in my app?
Some applications don't enforce the exp claim strictly, or refresh tokens before they expire. The expiration status shown here is purely based on comparing the exp claim to the current time — it doesn't reflect how your specific application handles expired tokens.
What are iss, sub, aud, exp, and iat?
These are registered JWT claims defined by RFC 7519: iss (issuer) identifies who created the token, sub (subject) identifies the user or entity it's about, aud (audience) identifies who the token is intended for, exp (expiration time) and iat (issued at) are Unix timestamps marking when the token expires and was created.
What happens if a token has no exp claim?
The expiration banner shows "No expiration (exp) claim in this token" rather than guessing active or expired — some tokens (like ones meant to be revoked server-side instead of time-limited) never include one, and this tool won’t invent an expiration status for them.
What does this JWT token contain?
A JWT has three parts. The header says which algorithm was used, the payload holds the claims such as who the token is for and when it expires, and the signature proves it was not changed. This page shows the first two in readable form and the expiry time; it cannot tell you the token is genuine, because only the issuer key can verify the signature.

Related tools

More Security & Auth

View all Security & Auth tools →