🔒 100% private — runs in your browser, nothing is uploaded

JWT Decoder

Decode a JWT token without the secret — see its header and payload.

A JWT has three base64url parts: header, payload, signature. The first two are just encoded JSON — readable by anyone.

⚠️ Decode only — signatures are not verified. Never paste production secrets into any website.

Read the guide: How to Decode a JWT and Check Its Claims (Without Sending It Anywhere)

How to use

  1. Paste the full JWT (header.payload.signature).
  2. Header and payload decode live as you type.
  3. Expiry time is shown when present.

About this tool

This tool decodes them so you can inspect claims like expiry, issuer and scopes while debugging auth.

Decoding is local; and note the signature is NOT verified here — this is an inspector, not a validator.

To decode a JWT token without the secret online: paste the full token above and the header and payload decode live as you type. No secret is needed for this step, because those two parts are only Base64URL-encoded JSON, not encrypted. Read the claims — sub, iss, exp, iat and any custom fields — and, when an exp claim is present, the expiry time shown underneath. The secret (or the signer’s public key) is only needed to verify the signature, which this tool deliberately does not do.

How it works

A JWT has three Base64URL-encoded parts separated by dots: header.payload.signature. The header names the algorithm ({"alg":"HS256","typ":"JWT"}); the payload carries claims such as sub (subject), exp (expiry), and iat (issued at); the signature is HMAC-SHA256 over the first two parts, computed with a secret key.

Decoding only reveals the payload — it verifies nothing. The payload is encoded, not encrypted: anyone holding the token can read it. Never put passwords or other secrets inside a JWT.

Verification means re-computing the signature with the secret and comparing. A match proves the token is untampered and was signed by someone holding the secret. This tool decodes; your backend must still verify.

That separation is the answer to the common question of whether you can decode a JWT without the secret: yes — decoding is just Base64URL-decoding the first two parts, so no secret, key or account is needed to read the header and payload, online or in code. What you cannot do without the secret (or the signer's public key) is verify the signature, so a decoded token must never be trusted on its contents alone.

Worked examples

Why did my session expire?: Paste the access token and read the exp claim — say it shows 1728000000, a time already past. The token expired; request a refresh instead of debugging your login code.

Confirming user roles: Decode the token your API returned and check the payload for "role": "admin" before assuming the frontend hid an admin button for some other reason.

Quick reference

ClaimFull nameMeaning
issIssuerWho created the token
subSubjectWho the token is about
expExpirationUnix time after which it is invalid
iatIssued atUnix time of creation
nbfNot beforeUnix time before which it is invalid

Frequently asked questions

Is it safe to paste a token here?

Decoding happens entirely in your browser, but as a rule avoid pasting live production secrets into any website.

Does it verify the signature?

No — this is decode-only. Verification needs the secret key and belongs in your backend.

What do "exp" and "iat" mean?

Expiry and issued-at times, in Unix seconds.

Can I decode a JWT without the secret key?

Yes. The header and payload are Base64URL-encoded, not encrypted, so anyone holding the token can decode them without any secret. The secret is only needed to verify the signature — decoding tells you what the token says, verification tells you whether to trust it.

How do I decode a JWT token online?

Paste the full header.payload.signature string into the box above. The header and payload decode live as you type, and if the payload carries an exp claim the expiry time is shown below the payload.

📦 Embed this tool on your site

<iframe src="https://verystep.com/embed/jwt/" title="JWT Decoder" width="100%" height="520" loading="lazy" style="border:0"></iframe>

Free to use. The embed shows a small "Powered by Verystep" link.

First time embedding? Read the step-by-step guide →

More free tools