{"uid":"cap_m8brzjlenEbzq3wFMSI8s","slug":"sitecheck-jwt-decode-verify-4488f07d","name":"SiteCheck JWT Decode & Verify","description":"Decodes a JWT (up to 16 KB): header, payload, registered claims as ISO dates, expired and not-yet-valid flags, algorithm and signature length. With jwksUrl (public https) the signature is checked with WebCrypto for RS, PS and ES algorithms against the matching key. 'none' is never accepted; HMAC needs the secret. Tokens are secrets: this tool does not store or log them.","url":"https://api.sitecheck-api.workers.dev/api/jwt/decode?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["token"],"properties":{"token":{"type":"string","description":"The JWT, three base64url parts separated by dots (up to 16 KB)"},"jwksUrl":{"type":"string","description":"Public https URL of the JWKS to verify with (optional)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"kid":null,"type":"JWT","claims":{"issuer":null,"subject":"1234567890","audience":null,"issuedAt":"2018-01-18T01:30:22.000Z","expiresAt":null,"notBefore":null},"header":{"alg":"HS256","typ":"JWT"},"source":"Decoded here; signature check with WebCrypto against the JWKS you give","expired":false,"payload":{"iat":1516239022,"sub":"1234567890"},"verified":null,"algorithm":"HS256","checkedAt":"2026-10-15T14:07:52.200Z","notYetValid":false,"signatureBytes":32,"verifiedReason":"no jwksUrl given, so the signature was not checked"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1K9svQLVp3Gfl6ghuypF3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes a JWT into its header, claims, and payload, and optionally verifies the signature against a JWKS URL","exampleAgentPrompt":"Decode this JWT for me and tell me who the subject is, when it was issued, and whether it's expired: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c — and if you can, verify the signature against https://example.com/.well-known/jwks.json.","exampleUseCases":[{"title":"Inspect access token claims","prompt":"I have this JWT from our auth server and I need to know the subject, audience, and expiry: eyJhbGciOiJSUzI1NiIsImtpZCI6ImFiYzEyMyIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyXzQ1NiIsImF1ZCI6ImFwaS5teWFwcC5jb20iLCJleHAiOjE3MjAwMDAwMDB9.sig — can you decode it?"},{"title":"Verify OpenID Connect ID token","prompt":"Check whether this ID token is valid and its signature checks out against our JWKS at https://accounts.myapp.com/.well-known/jwks.json: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyXzc4OSIsImlzcyI6Imh0dHBzOi8vYWNjb3VudHMubXlhcHAuY29tIiwiaWF0IjoxNzAwMDAwMDAwfQ.signature"},{"title":"Debug expired token in production","prompt":"One of our users is getting auth errors — here's their token, can you tell me if it's expired and what the issued-at and expires-at timestamps are: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyXzEiLCJpYXQiOjE2MDAwMDAwMDAsImV4cCI6MTYwMDAwMzYwMH0.sig"}],"resultDescription":"Returns a JSON object containing the decoded JWT header (algorithm, type, kid), the parsed claims (issuer, subject, audience, issuedAt, expiresAt, notBefore), the raw payload, whether the token is expired or not yet valid, the signature byte count, and — if a JWKS URL was provided — a verified boolean and reason string indicating whether the signature was cryptographically confirmed.","failureModes":["Malformed JWT (not three base64url parts) returns a parse error","Token exceeding 16 KB may be rejected","JWKS URL unreachable or returning non-2xx causes signature verification to fail with an error reason","JWKS URL contains no key matching the token's kid, resulting in verified: false","Algorithm mismatch between header and JWKS key causes verification failure","Missing required 'token' query parameter returns a 400-level error"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call JWT decoder without deploying your own cryptography library — especially useful for AI agents inspecting bearer tokens, debugging auth flows, or verifying OpenID Connect / OAuth2 ID tokens against a public JWKS URL. Prefer it over full auth SDKs when you just need to read claims or do a one-off signature check without managing secrets.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T12:35:04.273Z","isFirstParty":false,"canonicalSlug":"sitecheck-jwt-decode-verify-4488f07d"}