JWT Decoder
Decode a JSON Web Token and inspect its header, payload, and signature.
Paste a token above to see this decoded.
Paste a token above to see this decoded.
JWT Signature Verification (Optional)
Enter the secret used to sign the JWT below:
About this tool
Paste a JSON Web Token and see its header and payload decoded back into readable JSON — useful for quickly checking claims like exp, sub, or a custom role field without writing a script just to inspect a token.
What a JWT actually contains
A JWT is three Base64 URL-encoded segments joined by dots: a header describing the signing algorithm, a payload holding the claims — the actual data, like user ID, expiry, or roles — and a signature that proves the token wasn't tampered with. Only the signature requires a secret key to verify; the header and payload are simply encoded, not encrypted, so anyone holding the token can read them.
Decoding vs verifying
This tool decodes — it shows you what's inside the token. It does not verify the signature, which would require the issuer's secret or public key. A token can decode perfectly here and still be expired, revoked, or forged; decoding tells you what the token claims, verifying tells you whether to trust it. Signature verification belongs on your server, using the same key your auth system issued the token with.
Common uses
Debugging a 401 or 403 response by checking whether the token you're sending has actually expired, confirming an API returned a token with the role or scope your endpoint expects, or inspecting a third-party token during integration work without decoding it by hand.
Frequently asked questions
Does this tool verify the signature?
No — it only decodes the header and payload, which are readable by anyone without a key. Verifying the signature needs the issuer's secret or public key and should happen server-side.
Is it safe to paste a real production token here?
Treat any live token like a password: the payload is fully readable to anyone who has the string. Prefer a test or already-expired token where possible.
Why is exp just a number, not a date?
JWTs store timestamps as Unix time — seconds since 1970 — by convention. Paste that number into the Timestamp Converter to see it as a readable date.