jwt_decode
Decode a JWT to inspect its header, payload, and signature without cryptographic verification. Use to examine token claims like sub, exp, iat or debug authentication flows. Returns structured JSON. Not for access-control decisions as signature isn't validated.
Instructions
Decode a JWT (JSON Web Token) into its header, payload, and raw signature without verifying the cryptographic signature. Use to inspect token claims (sub, exp, iat, aud, etc.) or debug auth flows; do NOT use the decoded claims for access-control decisions since the signature is not validated. Splits on ".", base64url-decodes each segment, and JSON-parses header and payload — no network calls, no key lookup. Returns JSON with header, payload, and signature fields. On malformed input, returns an error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | JWT compact serialization — three base64url segments separated by dots (xxxxx.yyyyy.zzzzz). Bearer prefix must be removed before passing. |