Get started
HomeEncoding & SecurityJWT Decoder
Encoding & SecurityRuns in your browser · files never uploaded

JWT Decoder

Inspect JWT payloads

4.8· 84 votes
A JWT decoder splits a JSON Web Token into its three parts (header, payload, signature) and base64-decodes the first two so you can inspect their JSON content. StuHub decodes and — with an optional public key or secret — verifies HS256/HS384/HS512 and RS256/RS384/RS512 signatures, all inside your browser.
Your file never leaves this browser. Everything runs on your device — no uploads, no server storage, no retention.How it works →
ENCODED
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkFkYSBMb3ZlbGFjZSIsImFkbWluIjp0cnVlLCJpYXQiOjE3MDAwMDAwMDAsImV4cCI6OTk5OTk5OTk5OX0.4Bp5w4p9RNy6pQMQkF2oHqgYZ1qjNMf7jQJ1oHbPEPs
● Activealg: HS256typ: JWT
Header
{
"alg": "HS256",
"typ": "JWT"
}
Payload
{
"sub": "1234567890",
"name": "Ada Lovelace",
"admin": true,
"iat": 1700000000,
"exp": 9999999999
}
Claims
ClaimMeaningValueHuman
subSubject1234567890
namecustomAda Lovelace
admincustomtrue
iatIssued at1700000000Tue, 14 Nov 2023 22:13:20 GMT (2y ago)
expExpiration9999999999Sat, 20 Nov 2286 17:46:39 GMT (264y from now)
Signature: 4Bp5w4p9RNy6pQMQkF2oHqgYZ1qjNMf7jQJ1oHbPEPs
This tool decodes only — it does not verify the signature. Never paste production secrets anywhere.

What is JWT Decoder?

Decode a JSON Web Token (JWT) and inspect its header and payload without sending the token anywhere. Signature verification is not performed (that requires the signing key) — but you see exactly what the token contains, including issuer, audience, expiry, and custom claims. Essential for debugging authentication flows, reviewing tokens during an integration, or understanding a third-party API's token format.

How do I use JWT Decoder?

  1. Paste the JWT (three Base64URL segments separated by dots) into the input.
  2. The header and payload decode live on the right.
  3. Expiry and issued-at timestamps are shown in human-readable form.

JWT Decoder by the numbers

Supported algs
HS256/384/512, RS256/384/512
Verification
Optional; key pasted locally
Privacy
Token never transmitted
Claims parsing
iat, exp, nbf auto-decoded
Copy
Header, payload, or whole token

Common use cases for JWT Decoder

  • Debugging a 401 by checking whether a token is expired.
  • Confirming a downstream service is reading the right "sub" claim.
  • Demonstrating token contents to a teammate during a review.
  • Verifying an RS256-signed token against a public key.
  • Teaching the JWT structure in a workshop without exposing live tokens.

Common pitfalls and how to avoid them

  • Verification fails with the right keyCheck the alg header — HS* needs the shared secret, RS* needs the PEM public key. Copy-paste errors are the usual culprit.
  • Token decodes but looks tamperedRemember: the header and payload are base64-encoded, not encrypted. Anyone with the token can read them — that is expected.
  • Expiry shows the wrong timeexp is Unix seconds, not milliseconds. If you were comparing to Date.now() / 1000, divide correctly.

When should I use JWT Decoder?

JWT Decoder inspects tokens locally. To verify signatures, you need the server's public key — that's typically done in code, not via a tool. For generic Base64 decoding of things that aren't JWTs, use Base64 Decode.

Frequently asked
Does the tool verify the JWT signature?

Only if you paste the public key / secret. Without it, the decoder shows the header and payload as-is (header and payload are base64-encoded, not encrypted) but marks the signature as "unverified".

Is it safe to paste real JWTs here?

Everything happens in your browser — the token never leaves your device. Still, avoid pasting production tokens into unfamiliar sites as a rule of thumb.

What algorithms are supported for verification?

HS256, HS384, HS512 (HMAC), and RS256, RS384, RS512 (RSA). ES256 / ES384 / ES512 are planned.

Is my file uploaded anywhere?

No. Everything runs in your browser. Your files never leave your device, and there is no server component for this tool.

Related in Encoding & Security
Base64 Encode
Base64 Decode
URL Encode
URL Decode
Hash Generator
Password Generator
Strength Checker
HMAC Generator