
JWT Inspector API
Decode and analyze JSON Web Tokens instantly. Check token structure and expiration, and inspect claims for secure authentication workflows.
All API requests require a valid API key passed in the Authorization header as a Bearer token.
120 requests per minute
1 endpoint available
Overview
Decode a JSON Web Token and read its header, payload and standard claims. Send the token as a string and get the decoded parts back.
This does not verify the token
The endpoint only decodes. It splits the token at the dots, Base64url-decodes the header and payload, and parses them as JSON. It does not check the signature, so a successful response does not mean the token is genuine or unaltered. signatureVerified is always false. To trust a token, verify its signature with the issuer's key in your own code.
Response fields
headerandpayload: the decoded JSONsignature: the third segment as it appears in the token (still Base64url, not decoded)algorithm: the header'salgvalue, or nullclaims:issuer(iss),subject(sub),audience(aud),jwtId(jti), andissuedAt(iat),notBefore(nbf) andexpiresAt(exp) as ISO 8601 UTC times. A claim that is missing, or a time that is not a number, is null.expired: true if the exp claim is in the past at the time of the request.notYetValid: true if the nbf claim is in the future. Both are null when the token has no such claim. These compare the claims to the clock only.
Notes
- The token is limited to 20,000 characters and must have three parts separated by dots. An unsecured token with an empty signature, such as one that uses alg "none", still decodes.
- Treat tokens as credentials. Prefer test or expired tokens over live production ones.
- Only POST is accepted, so tokens are not placed in URLs.
Endpoints
https://opentools.ca/api/v1/tools/jwt-inspectorRequest Body
Content-Type: application/json
| Parameter | Type | Required | Description |
|---|---|---|---|
| token | string | Required | The JWT to decode, three Base64url parts separated by dots, up to 20,000 characters |
Response Example
{
"success": true,
"header": {
"alg": "HS256",
"typ": "JWT"
},
"payload": {
"sub": "1234567890",
"name": "John Doe",
"iat": 1516239022
},
"signature": "SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"signatureVerified": false,
"algorithm": "HS256",
"claims": {
"issuer": null,
"subject": "1234567890",
"audience": null,
"jwtId": null,
"issuedAt": "2018-01-18T01:30:22.000Z",
"notBefore": null,
"expiresAt": null
},
"expired": null,
"notYetValid": null
}Error Codes
Code Examples
curl -X POST https://opentools.ca/api/v1/tools/jwt-inspector \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}'Rather use it in your browser? Open the JWT Inspector