JWT Decoder & Verifier
Runs locallyDecode, verify HS/RS/ES/EdDSA signatures, sign test tokens and inspect expiry claims locally.
What is JWT Decoder & Verifier?
Decode JWT headers and payloads with color-coded segments and UTF-8 safe Base64URL parsing. Inspect human-readable exp, iat, and nbf timestamps with relative countdowns, verify HS256/384/512 and RS/PS/ES/EdDSA signatures using WebCrypto (jose), spot security pitfalls like alg:none, and sign local test tokens.
How to use JWT Decoder & Verifier
- Step 1
Paste a JWT token (with or without the Bearer prefix) into the input box.
- Step 2
Inspect the decoded Header, Payload, and standard claim explanations (iss, sub, aud, exp, iat, nbf, jti).
- Step 3
Enter an HMAC secret (UTF-8, Base64, or Hex) or PEM/JWK public key to verify the signature locally.
- Step 4
Review security warnings such as alg:none, missing exp, or overly long lifetimes.
- Step 5
Switch to the Create / Sign tab to build and sign test tokens locally.
Features
- UTF-8 safe Base64URL decoding with color-coded Header, Payload, and Signature segments
- Human-readable exp, iat, and nbf dates with expired / not-yet-valid status badges
- Local signature verification via jose WebCrypto for HS256/384/512, RS/PS/ES256/384/512, and EdDSA
- Optional JWKS URL fetch for public key lookup (labelled clearly when used)
- Security lint warnings: alg:none, missing exp, weak secret hints, JWE encrypted detection
- History disabled by default with explicit opt-in for sensitive token safety
Example
Input
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyXzEiLCJleHAiOjE5MDAwMDAwMDB9.sig
Output
Header: {"alg":"HS256","typ":"JWT"} | Payload: {"sub":"user_1","exp":1900000000}Decodes header and payload locally and formats the exp timestamp into UTC and relative time.
Frequently asked questions
Is it safe to paste my JWT here?
Decoding runs in your browser and the token is not sent to a server. As a general rule, avoid pasting live production tokens into any website; use test tokens when you can.
What is the difference between decoding and verifying?
Decoding only reads the header and payload, which anyone can do. Verifying checks the signature with the secret or public key to prove the token was not changed.
What do exp, iat and nbf mean?
exp is when the token expires, iat is when it was issued, nbf is the time before which it is not valid. All are Unix timestamps.
Why does verification say invalid signature?
Common causes are the wrong secret or key, a different algorithm than the header claims, a key in the wrong format, or a token that was edited after signing.
Can I create a JWT here?
Yes, for testing. Edit the header and payload, choose an algorithm and sign locally.
Related tools
Base64 & Encoding Hub
Encode/decode Base64, Base64URL, Base32, Base58, hex, binary, ROT13, Morse and files.
Hash Generator
Compute MD5, SHA-1/2/3, BLAKE2/3, CRC32, xxHash and HMAC for text or streamed files.
API Playground
Send HTTP requests with headers, body, auth, environment variables, collections and cURL import.
UUID & ID Generator
Generate UUID v1/v3/v4/v5/v6/v7, ULID, NanoID, KSUID, CUID2, Snowflake and ObjectId in bulk.