JWT Decoder & Verifier — Inspect and Validate Tokens
About the JWT Decoder
A JSON Web Token (JWT) is a Base64URL-encoded string of three parts — header, payload, signature — commonly used for API authentication. This decoder splits the token, pretty-prints the header and payload as JSON, and interprets the standard time claims (iat, nbf, exp) as human-readable dates.
It also verifies signatures: paste the HMAC shared secret or the RSA/ECDSA public key (PEM) and the signature is checked locally with the browser’s WebCrypto API — no server ever sees your token or key. HS256/384/512, RS256/384/512, PS and ES algorithms are supported.
How to use the JWT Decoder
- Paste the JWT into the box.
- The decoded header and payload appear instantly, with issued-at / not-before / expiry checked against the current time.
- To verify: enter the shared secret (HS*) or paste the public key PEM (RS*/PS*/ES*) and click Verify signature.
Reading and verifying a JWT
header.payload.signature — each of the first two parts is Base64URL-encoded JSON. The signature is HMAC-SHA(secret, "header.payload") for HS*, or a RSA/ECDSA signature over the same bytes for RS*/PS*/ES* — verified in this page via WebCrypto, so both the token and the key stay on your device.
Frequently asked questions
Does the decoder verify the signature?
Only when you provide the key: paste the HMAC secret or the signer’s public key and the signature is verified locally with WebCrypto. Without a key, treat decoded claims as unverified.
Which algorithms can be verified?
HS256/384/512 (HMAC secret), RS256/384/512 (RSA PKCS#1 v1.5), PS256/384/512 (RSA-PSS) and ES256/384/512 (ECDSA) with the public key in PEM (SPKI) format — the format OpenSSL and most libraries export.
Is pasting a token here safe?
Yes. Everything runs locally in your browser; nothing is transmitted. Still, tokens grant access — avoid pasting live production tokens into any tool out of habit.
Why does my token show expired?
The exp claim is a Unix timestamp compared against your device clock. If it reads expired but the API accepts it, check for clock skew or that you are reading seconds, not milliseconds.
Related tools
Base64 Encoder / Decoder
Base64 represents binary data using 64 safe ASCII characters, which is how emails attach files, JSON carries binary blobs and…
JSON Formatter
Paste JSON and this tool tells you instantly whether it is valid — and if not, exactly where it breaks, with the error position.
Hash Generator
A hash function turns any input into a fixed-length fingerprint that is easy to compute and practically impossible to reverse.
User Agent Parser
User Agent Parser decodes UA strings into the facts you actually want: which browser and version, which engine, which…
JSON ⇄ YAML Converter
JSON ⇄ YAML converts between the two most common configuration formats: paste JSON to get clean, commented-style YAML for…