JWT decode
jwt_decodeDecode a JSON Web Token to inspect its header, payload, timestamps, and validity status; optionally verify HS256/384/512 signatures with a secret.
Instructions
Decode a JSON Web Token (a leading "Bearer " is fine): header, payload, iat/nbf/exp/auth_time as ISO dates with relative time, expired / not-yet-valid status, and named standard claims. If "secret" is given, verifies HS256/HS384/HS512 signatures (secret as text or Base64URL). RS/ES/PS tokens are decoded but not verified (needs a public key). Encrypted JWE tokens can't be read. Web version: https://s3eidat.github.io/jwt-inspector/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| now | No | Unix time in seconds to judge expiry against. Default: now. | |
| token | Yes | The JWT (header.payload.signature). | |
| secret | No | HMAC secret to verify an HS256/384/512 signature. | |
| secretIsBase64 | No | The secret is Base64/Base64URL-encoded bytes, not text. |