JWT decoder
Paste a JSON Web Token to see its header and payload, when it was issued and when it expires, and warnings for risky setups: alg=none, a well-known weak HS256 secret, missing expiry, keys loaded from URLs and Supabase service_role tokens. It runs only in your browser; the token is never sent anywhere.
Decoded entirely in your browser. The token is never sent anywhere, and we don’t ask for your signing secret.
How it works
A JWT is three base64url parts separated by dots: a header, a payload and a signature. The decoder turns the first two back into JSON, shows the registered claims (iss, sub, aud, exp, nbf, iat) as readable dates, and checks for common mistakes. For HS256, HS384 and HS512 tokens it computes HMACs with WebCrypto against a short list of weak secrets taken from tutorials and defaults.
What we check
alg: none, or no algorithm at all.- A signature made with a known weak secret.
- No
exp, already expired, or valid for more than 30 days. jku,x5uorjwkin the header (key-confusion attacks).- Personal data in the payload, and Supabase
service_rolekeys.
FAQ
Is my token sent anywhere?
No. Decoding happens in your browser with JavaScript, the token is never uploaded, and it isn't included in analytics. Even so, treat a live token like a password: it works for whoever holds it until it expires.
Does this verify the signature?
No, and it doesn't ask for your signing secret. It only checks the token against a built-in list of about 40 well-known weak secrets (like 'secret' and 'your-256-bit-secret'), in your browser. If one matches, anyone can forge tokens for that system.
Why is alg=none dangerous?
A token with alg none has no signature, so anyone can write any claims into it. A server that accepts it lets attackers log in as anyone. Libraries should be configured with an explicit list of allowed algorithms.
Can people read what's inside my JWT?
Yes. A normal JWT (JWS) is only base64url-encoded, not encrypted. Anyone with the token can read the payload, so never put passwords, secrets or sensitive personal data in it.