Decode JSON Web Tokens and inspect the header, payload, and expiration — all with a single POST request. No JWT libraries required.
Algorithm (alg), token type (typ), and key ID (kid)
All claims — sub, iss, aud, iat, exp, and custom claims
Parsed expiresAt timestamp and isExpired boolean
curl -X POST "https://api-snap.com/api/jwt-decode" \
-H "Authorization: Bearer snp_your_key" \
-H "Content-Type: application/json" \
-d '{"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."}'const res = await fetch("https://api-snap.com/api/jwt-decode", {
method: "POST",
headers: {
Authorization: "Bearer snp_your_key",
"Content-Type": "application/json",
},
body: JSON.stringify({ token: jwtString }),
});
const { header, payload, expiresAt } = await res.json();import requests
r = requests.post(
"https://api-snap.com/api/jwt-decode",
json={"token": jwt_string},
headers={"Authorization": "Bearer snp_your_key"},
)
data = r.json()
print(f"Algorithm: {data['header']['alg']}")
print(f"Expires: {data['expiresAt']}")Inspect JWT contents during development without installing jwt-decode
Check expiration times in monitoring dashboards and alerting systems
Display decoded token info in admin tools for support and debugging
Decode incoming JWT-signed webhooks to inspect claims before verification
Inspect any JWT — header, payload, and expiry. One API call.
Get Your Free API Key