JWT Decoder and Signature Verifier
About this tool
About JWT Decoder
Paste a JSON Web Token from an Authorization header, a cookie or a log line and see what is inside it straight away: the header with its algorithm and key ID, the payload as formatted JSON, and a claims table that explains each standard field. Time claims (exp, nbf, iat, auth_time) are shown as UTC dates with a live countdown, and a banner tells you whether the token is valid now, already expired or not valid yet. To check that the token is genuine, enter the shared secret for HS256, HS384 or HS512, or paste the issuer's public key for RS, PS, ES or EdDSA tokens. PEM public keys, X.509 certificates and JWKs all work, and common mistakes, such as a PKCS#1 key or a private key pasted by accident, get a clear explanation. Decoding and verification run on your browser's Web Crypto, so production tokens and keys are never sent anywhere.
Built and maintained by Abhi JainUpdated
How to Decode and Verify a JWT
- 1
Paste the token
Paste the JWT into Encoded token (a Bearer prefix is fine) or click Sample to try one.
- 2
Read the claims
Check the Header, Payload and Claims panels. The banner shows whether the token is valid now or expired.
- 3
Verify the signature
Under Verify signature, enter the secret for HS algorithms or paste the public key, certificate or JWK for the others.
JWT Decoder: questions and answers
Can anyone read the contents of a JWT?
Yes. A normal JWT (JWS) is only Base64URL-encoded, not encrypted, so anyone holding it can read the header and payload. The signature stops people changing it, not reading it. Never put passwords or secrets in a JWT payload.
Does decoding a JWT mean it is valid?
No. Decoding only reads the data. A token is trustworthy only if its signature verifies with the right key, its exp is in the future, its nbf is in the past, and its iss and aud match what your service expects.
What do exp, iat and nbf mean?
They are NumericDate claims from RFC 7519, counted in seconds since 1 January 1970 UTC. exp is when the token expires, iat is when it was issued and nbf is the time before which it must be rejected. Convert any of them with the Timestamp Converter.
Where do I find the public key to verify an RS256 token?
Identity providers publish their keys as a JWK Set, usually at /.well-known/jwks.json or the jwks_uri listed in /.well-known/openid-configuration. Copy the key whose kid matches the token header and paste it here.
Why does my HS256 signature fail?
Usually the secret is in the wrong format. Some systems store the secret as Base64 or hex and decode it before signing. Switch Secret is to Base64 or Hex and try again. Also check for a trailing space or newline.
Is it safe to paste a production token here?
The page does all its work locally and sends nothing to a server. Even so, treat live tokens like passwords: prefer expired ones for debugging and close the tab when you are done.
Related Tools
- JWT GeneratorCreate and sign JWTs with HS, RS, PS, ES or EdDSA, with one-click exp and iat claims.
- Timestamp ConverterConvert Unix timestamps to dates and back in any time zone, with a live epoch clock.
- Base64 EncoderEncode and decode Base64 for text and files, with URL-safe, MIME and data URL options.
- JSON FormatterBeautify, minify and validate JSON with exact error locations, without changing a single value.
- Hash GeneratorMD5, SHA-1, SHA-256, SHA-384 and SHA-512 of any text, with HMAC and expected-hash check.