Decode, inspect and verify JWTs — expiry countdown and security checks
Ctrl+Enter = decode
Header
Payload
Signature
Verify signature
Your secret or key never leaves your browser — verification runs locally with the Web Crypto API.
Claims
JWT Decoder & Verifier
Free online JWT decoder and verifier. Paste any JSON Web Token to decode the header and payload, watch a live expiry countdown, check the signature with your secret or public key, and spot security problems like alg: none. 100% client-side — your tokens and keys never leave your browser.
FreeNo login100% browser-basedYour input never leaves your device
📖 Quick reference: JWT cheat sheet — claims, algorithms and a security checklist.
A JSON Web Token (JWT) is a compact, URL-safe token format used for authentication and information exchange. It consists of three Base64URL-encoded parts separated by dots: a header (algorithm), a payload (claims like user ID and expiry), and a signature. The signature is cryptographic — paste the secret or public key and this tool checks it in your browser.
Paste any JWT to instantly see its decoded contents. Expiry time (exp), issued-at (iat), and not-before (nbf) claims are automatically converted to human-readable dates. Useful for debugging auth flows, inspecting third-party tokens, and checking expiry during development.
What is a JWT token?
A JSON Web Token (JWT) is a compact, URL-safe way of representing claims between two parties. It consists of three Base64URL-encoded parts separated by dots: a header (algorithm and token type), a payload (claims like user ID, expiry, roles), and a signature used to verify the token hasn't been tampered with.
Is it safe to paste my JWT token here?
Yes. This tool runs entirely in your browser using JavaScript. Your JWT is never sent to any server. That said, you should still avoid sharing real production tokens containing sensitive user data. For testing, use tokens from your development environment. The same applies to secrets and keys you paste to verify a signature.
What do the JWT claims mean?
Common JWT claims: 'sub' (subject, usually user ID), 'iss' (issuer), 'aud' (audience), 'exp' (expiry timestamp), 'iat' (issued at timestamp), 'nbf' (not before timestamp), 'jti' (unique token ID). Custom claims are defined by your application.
Why does this tool show 'expired'?
The 'exp' claim in the JWT payload is a Unix timestamp. If that timestamp is in the past, the token is expired. This is normal — JWTs have short lifetimes (often 15 minutes to 24 hours) for security reasons. You'll need to obtain a fresh token from your authentication server.
Can this tool verify the JWT signature?
Yes. Paste the shared secret (HS256, HS384, HS512) or the public key (RS, PS, ES and EdDSA algorithms, as PEM, JWK or JWKS) into the Verify signature box. Verification runs in your browser with the Web Crypto API, so your key is never uploaded. In production, always verify tokens on the server with your JWT library (e.g. jsonwebtoken for Node.js, PyJWT for Python, or java-jwt for Java).
Can I decode a JWT without the secret key?
Yes — the header and payload are Base64url-encoded, not encrypted. Anyone can decode them without the secret. The secret is only needed to VERIFY the signature (prove the token wasn't tampered with). Never put sensitive data in JWT payloads that you don't want users to see.
What does "JWT signature invalid" mean?
It means the token's signature doesn't match the header + payload. This happens when the token was tampered with, you're using the wrong secret or public key, the token was signed with a different algorithm than expected, or the secret is Base64-encoded but used as plain text (or the reverse). Expiry doesn't affect the signature: an expired token can still have a valid signature, but servers reject it because of its exp claim.
What is the alg: none attack?
A JWT whose header says "alg": "none" has no signature, so anyone can change its claims. Some old libraries accepted these tokens as valid. Servers must only accept the algorithms they expect and must reject alg: none. This tool flags unsigned tokens with a red warning.