- LuzineDebug
- Tools
- JWT decoder
JWT decoder: header, payload and expiry
Decode a JWT: header, payload, readable expiry dates and whether the token has expired. Everything happens in your browser.
The claims to check
exp: expiry date. After it, the token must be rejected.iatandnbf: issue date and the date from which it is valid.iss,aud,sub: issuer, audience and subject (user).algin the header: always rejectnoneon the server and enforce the expected algorithm.
Frequently asked questions
Is decoding a JWT the same as verifying it?
No. A JWT payload is only base64url-encoded: anyone can read it. Only verifying the signature (with the secret or public key) proves it was not tampered with. Never put secret data in a JWT.
Why does my API answer 401 with a token that looks fine?
Check exp (expired?), nbf (not valid yet?), aud and iss (right audience and issuer?), then the server clock: a few minutes of drift is enough to reject a token.
Is my token sent anywhere?
No, decoding and HMAC verification happen in your browser. Still, avoid pasting a live production token into a site you do not know.
Other tools
Error finder
Paste an error message or a log: the tool recognises the error and opens the right fix.
JSON validator
Validate, format and minify JSON, with the exact line and column of the error.
Regex tester
Test a regular expression live: highlighted matches, groups, replacement.
HTTP status codes
All the common HTTP codes (401, 403, 404, 419, 429, 500, 502…): meaning, causes and what to do.
Text diff
Compare two versions line by line: additions, deletions, invisible whitespace.