# JWT Decoder > A free JSON Web Token decoder and verifier that runs in the browser: paste a token to read its header and claims, see every time claim in your time zone or UTC, get checks for common mistakes, verify the signature with your secret or public key, and create or re-sign test tokens. https://jwt-decoder.skillsafe.ai/ ## What it does (free, no sign-in, nothing uploaded) - Finds the token in what you paste: a bare token, an "Authorization: Bearer" header, a cookie line, a curl command or JSON. Signed tokens (three parts) are decoded fully; encrypted tokens (JWE, five parts) show their header only. - Lists every header field and claim with its meaning (iss, sub, aud, exp, nbf, iat, jti, azp, scope, roles, nonce, auth_time, email, Microsoft tid/oid, Cognito claims and more), and every time claim as a date in local time or UTC with how long ago or how soon. - Checks, with 60 seconds of clock skew: alg none, missing alg, unusual algorithm, empty signature, expired, not yet valid, issued in the future, issued over 30 days ago, no exp, lifetime over a day, exp before iat, times in milliseconds, times as strings, no iss, no aud, jku/x5u key URLs in the header, a jwk in the header, x5c, crit, suspicious kid (path, quote or SQL characters), secret-looking claims, personal data, tokens over 4 KB, = padding, nested tokens (cty JWT), OAuth access tokens (typ at+jwt). - Verifies signatures with the browser's Web Crypto: HS256/384/512 with a secret (plain or base64), RS256/384/512, PS256/384/512, ES256/384/512 and EdDSA with a PEM public key, an RSA PUBLIC KEY, an X.509 certificate, a JWK or a JWKS (the key is picked by kid). Refuses a public key offered for an HS token (algorithm confusion) and warns about short HMAC secrets. - Creates and signs tokens: edit the header and payload, set iat/exp, sign with a secret or a signing JWK, or make a throwaway secret or key pair in the browser. Never makes alg none tokens. - Exports: copy the payload or header as JSON, download the decoded token as JSON or a Markdown report. ## Optional AI step (signed-in, metered) Three jobs. The page sends the token's header and claims and its own check results, never the signature, a secret or a key, and checks every answer against its own results. - explain: what the token is, who issued it, what each claim means, and what is wrong with it. - validate: accept, reject or depends, the rules a server must enforce, and validation code for JavaScript (jose or jsonwebtoken), Python (PyJWT), Go (golang-jwt), Java (JJWT), C#, Ruby or PHP. The page overrules an accept when its checks say reject, and flags code that skips the algorithm allow-list, allows none or disables verification. - draft: header and claims for a new test token from a description. The page sets iat and exp from the clock, keeps your algorithm and lists made-up values; you sign it with your own key. - API: https://jwt-decoder.skillsafe.ai/api.html - Input fields: `task` ("explain", "validate" or "draft"); explain and validate send `header`, `claims`, `facts` (JSON text) and `clipped_note`; validate adds `stack` and `expect`; draft sends `description`, `alg`, `base_claims`, `now_utc`, `clipped_note`. - Output: one JSON object per task: explain `{task, summary, issuer: {provider, why}, claims: [{name, meaning}], findings: [{check, says}], next: [string]}`; validate `{task, verdict, reasons: [{check, says}], rules: [{claim, rule}], code: {language, library, snippet}, notes: [string]}`; draft `{task, header, claims, lifetime_seconds, placeholders: [string], notes: [string]}`. ## Source Adapted from the jwt.io agent skills by Okta (github.com/jsonwebtoken/jwt-skills, Apache-2.0): @jsonwebtoken/jwt-decode https://skillsafe.ai/skill/@jsonwebtoken/jwt-decode , @jsonwebtoken/jwt-validate https://skillsafe.ai/skill/@jsonwebtoken/jwt-validate and @jsonwebtoken/jwt-encode https://skillsafe.ai/skill/@jsonwebtoken/jwt-encode . Their checks (alg none, missing exp, secrets in the payload, key URLs in the header), validation order and rules (60 s skew, explicit algorithm allow-list, never trust the token's alg) are the basis of the page.