JWT Debugger
~/tools/jwt-debugger $ ./run
Security Note: We do not verify the signature. Verification requires the secret key. Do not paste sensitive production tokens here.
Encoded Token
Status
Waiting for input...
Decoded Header
// Header will appear here
Decoded Payload
// Payload will appear here
JWT Debugger
JSON Web Tokens carry signed claims between services. This debugger splits the header, payload, and signature, shows decoded JSON, and helps you verify time-based fields such as `exp` and `nbf` while you troubleshoot auth flows—treat tokens as secrets and redact them in screenshots.
How to use
- Paste a complete JWT string (three Base64URL segments separated by dots).
- Inspect the alg/kid in the header and claims like `sub`, `aud`, and issuer in the payload.
- Compare clock skew against `exp`, and verify signatures using your platform’s JWKS or shared secret in a secure environment—not in shared chat logs.
FAQ
- Is it safe to paste my production JWT here?
- Treat JWTs like passwords: they grant access if stolen. Use expired samples, redact IDs, or test in private sessions; prefer local tooling for real production tokens.
- Why does verification fail even though parsing works?
- Wrong key, rotated JWKS, audience mismatch, or clock skew are common causes. Confirm the signing algorithm matches what you expect and is not `none`.
- What is the difference between JWE and JWT here?
- This debugger expects signed JWS tokens (three segments). Encrypted JWE tokens use different structures and need decryption before you can read inner claims.