How to use it
- Paste a
header.payload.signatureJWT above. It decodes immediately as you type. - Check the Security & expiry checks list for expired tokens, future
nbftimestamps, or dangerousalg: noneheaders. - Remember that decoding is not verification: anyone with the token can read its claims, but only the server can verify the signature.
Common mistakes
- Storing secrets in the payload. JWT payloads are Base64URL-encoded, not encrypted. Never put passwords, API secrets, or sensitive PII inside a standard JWS.
- Accepting
alg: noneor confusing RS256 with HS256. Always pin the expected algorithm on the server when verifying a token. - Omitting
exp. Tokens without an expiration claim stay valid forever if leaked. - Clock skew on
expandnbf. Servers with drifted clocks reject valid tokens; allow a small leeway (e.g. 30–60 seconds).
FAQ
Is my JWT sent to a server?
No. Decoding happens in JavaScript inside your browser using Base64URL decoding. Even so, avoid pasting live production admin tokens into any website.
Does decoding a JWT verify its signature?
No. Anyone can Base64URL-decode the header and payload of a JWT without knowing the signing key. Signature verification must always happen on the server using the trusted secret or public key.
Why is alg: none dangerous?
If a server fails to enforce an expected algorithm list, an attacker can forge a token with "alg": "none" and an empty signature to bypass authentication.
What time format do exp, nbf and iat use?
They use Unix epoch seconds (UTC). This inspector converts them to readable UTC and local times and tells you whether the token is expired or not yet valid.
Why can't I decode an encrypted JWE token here?
A JWS (standard 3-part JWT: header.payload.signature) is signed, not encrypted, so its claims are readable. A 5-part JWE encrypts the payload and requires the decryption key.