JWT Inspector

JWT Inspector API

Security

Decode and analyze JSON Web Tokens instantly. Check token structure and expiration, and inspect claims for secure authentication workflows.

Authentication

All API requests require a valid API key passed in the Authorization header as a Bearer token.

Rate Limit

120 requests per minute

Endpoints

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

  • header and payload: the decoded JSON
  • signature: the third segment as it appears in the token (still Base64url, not decoded)
  • algorithm: the header's alg value, or null
  • claims: issuer (iss), subject (sub), audience (aud), jwtId (jti), and issuedAt (iat), notBefore (nbf) and expiresAt (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

POST
https://opentools.ca/api/v1/tools/jwt-inspector
Decode a JWT (no signature verification)

Request Body

Content-Type: application/json

ParameterTypeRequiredDescription
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

400
Bad Request - Missing token, wrong number of parts, or a header or payload that is not valid Base64url JSON
401
Unauthorized - Invalid or missing API key
403
Forbidden - API key is inactive or expired, or the request IP is not allowed
429
Too Many Requests - Rate limit exceeded
500
Internal Server Error

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"
  }'

Ready to get started?

Create an API key to start using the JWT Inspector API.

Rather use it in your browser? Open the JWT Inspector