JWT Decoder & Verifier
Paste a JWT to decode its header and payload instantly, read exp and iat as dates and verify HS256 signatures. Tokens are decoded locally, never uploaded.
Runs in your browser · Nothing uploadedFree · No sign-up
Something not working, or missing a feature? Send feedback
About the JWT Decoder & Verifier
Paste a JWT (the eyJ… string from an Authorization header, cookie or log) and see what is inside instantly. A JSON Web Token carries a header, claims and a signature. The JWT Decoder shows each part, explains standard claims and expiry times, and verifies HMAC signatures locally with your secret.
Everything runs in your browser, so your input is never uploaded to a server.
How to use the JWT Decoder & Verifier
- Paste the token (three Base64URL parts separated by dots).
- Read the decoded header and payload, including human-readable expiry.
- Enter the secret to verify an HS256, HS384 or HS512 signature.
Example
Input
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyXzEyMyIsIm5hbWUiOiJBZGEgTG92ZWxhY2UiLCJyb2xlIjoiYWRtaW4iLCJpYXQiOjE3NjcyMjU2MDAsImV4cCI6MTc2NzIyOTIwMH0.od6B3BCmcmhe0a7HfIBFDOw_LKobRAh0bc08dhasgoM
Result
Header: { "alg": "HS256", "typ": "JWT" }
Payload: {
"sub": "user_123",
"name": "Ada Lovelace",
"role": "admin",
"iat": 1767225600, → 1 Jan 2026, 00:00 UTC
"exp": 1767229200 → 1 Jan 2026, 01:00 UTC (expired)
}Summary of what the decoder shows. The token was valid for one hour after it was issued; enter the secret my-test-secret to see the signature verify.
Common mistakes
- Decoding is not verifying. Anyone can decode a JWT. Only checking the signature with the right key proves it was issued by your server and not modified, so never trust decoded claims on their own.
- Expiry is in seconds. exp, iat and nbf are Unix timestamps in seconds. Comparing them with Date.now(), which returns milliseconds, makes every token look valid for decades.
- RS256 and ES256 tokens. Tokens from identity providers such as Auth0, Cognito or Google are signed with a private key and verified with a public key (JWKS), not a shared secret. They decode here, but only HS256, HS384 and HS512 can be verified.
- Clock skew. A token can look expired or not yet valid when server clocks differ by a few seconds. Most libraries accept a small leeway; configure one instead of disabling the expiry check.
Works well with the JWT Decoder & Verifier
- JWT Generator: create a signed test token with your own claims.
- Unix Timestamp Converter: convert exp and iat values to dates in your time zone.
- Base64 Encode / Decode: decode a single Base64URL part by hand.
Frequently asked questions
Is it safe to paste a production token?
Decoding and verification happen entirely in your browser; nothing is sent to a server. Still, treat valid tokens like passwords and prefer expired or test tokens.
Why can anyone read my token?
JWT payloads are only encoded, not encrypted. Never put secrets in them; the signature only proves they were not modified.
What are iat, exp, nbf and sub?
iat is when the token was issued, exp when it expires and nbf the time before which it is not valid; all three are Unix timestamps in seconds. sub identifies the user or subject the token is about.
Why does my token show as expired?
Its exp time is earlier than your device clock. Request a new token, or check that the server issuing it has the correct time.
Guides and tutorials
- Security & Encoding
JWT Explained: Structure, Claims and How to Verify a Token
What is inside a JSON Web Token, how the signature works, which claims to check, and the security mistakes (alg none, weak secrets, storage) that break JWTs.
· 6 min read
- Security & Encoding
What Is Base64 Encoding? How It Works and When to Use It
How Base64 turns bytes into text, why it adds 33% to the size, Base64 vs Base64URL, handling UTF-8 in JavaScript, and why Base64 is never encryption.
· 7 min read
Related tools
Base64 Encode / Decode
Decode Base64 to text or encode text to Base64 online, with full UTF-8 and URL-safe Base64 support. Conversion runs in your browser, so nothing is uploaded.
URL Encode / Decode
URL encode or decode text online: percent-encode query string values and full URLs, or turn %20-style escapes back into readable text.
HTML Entity Encode / Decode
Encode special characters as HTML entities or decode entities such as & and < back to text. Escape user content safely before adding it to a page.
JWT Generator
Create signed JSON Web Tokens online with HS256, HS384 or HS512 from a custom header and payload. Signing happens in your browser; the secret stays local.
Unicode Escape / Unescape
Convert text to \uXXXX Unicode escape sequences and back online, including emoji and astral characters. Handy for JavaScript, JSON and Java strings.
JSON Escape / Unescape
Escape text for use inside a JSON string, or unescape stringified JSON back to readable text. Handles quotes, backslashes, line breaks and Unicode escapes.