JWT Decoder & Inspector

Decode and inspect JSON Web Tokens (JWT) instantly in your browser without sending data to any server.

JWTs are decoded entirely inside your browser. Nothing is uploaded or sent to any server.

Paste a JWT above, upload a .txt file, or load the example to see it decoded.

Whether you're debugging an authentication flow, inspecting an API token, or just learning how JWTs work, this tool decodes and inspects a JSON Web Token entirely in your browser - header, payload, standard claims with plain-English explanations, and expiration status - without ever sending the token anywhere.

What is a JWT?

A JSON Web Token (JWT, defined in RFC 7519) is a compact, URL-safe way to represent a set of claims - statements about a user or session - that can be verified because it's cryptographically signed. They're most commonly used as an authentication token: after you log in, a server issues a JWT that your browser sends back on future requests to prove who you are, without the server needing to look up a session on every single request.

JWT structure explained

A JWT is three Base64URL-encoded segments joined by periods: header.payload.signature. The header and payload are each just a JSON object encoded to text; the signature is a cryptographic value computed over the first two parts using an algorithm and secret/key chosen by whoever issued the token.

Header vs. payload vs. signature

  • Header - metadata about the token itself, almost always just which signing algorithm (alg) and token type (typ) were used.
  • Payload - the actual claims: who the token is about, who issued it, when it expires, and any custom application-specific data the issuer chose to include.
  • Signature - proof the header and payload haven't been tampered with since signing. It's the one part this tool can't decode into anything meaningful - see the Signature section above for why.

Standard JWT claims explained

  • iss (Issuer) - the service or application that issued the token.
  • sub (Subject) - who or what the token is about, typically a user ID.
  • aud (Audience) - the intended recipient(s) of the token.
  • exp (Expiration Time) - when the token stops being valid.
  • nbf (Not Before) - when the token starts being valid.
  • iat (Issued At) - when the token was created.
  • jti (JWT ID) - a unique identifier for this specific token.

JWT security best practices

  • Always verify the signature server-side before trusting a token's contents - anyone can decode a JWT (as this tool does), but only the holder of the correct key can produce a valid signature for one.
  • Always check exp server-side too - a decoded payload alone doesn't tell you whether the issuer's server would still accept the token.
  • Never put secrets or sensitive data in a JWT payload - it's encoded, not encrypted, so anyone who has the token can read it, exactly like this tool just did.
  • Prefer short expiration times paired with a refresh-token flow over long-lived tokens, to limit the damage if one is ever stolen.

Common mistakes

  • Confusing "decoded" with "verified" - this tool (and any JWT debugger) can read a token's contents without knowing whether the signature is genuine.
  • Assuming exp/nbf/iat are in milliseconds - the JWT spec defines them as whole SECONDS since the Unix epoch, a common off-by-1000× bug.
  • Storing a JWT in localStorage and assuming it's safe from XSS - an httpOnly cookie is generally the safer place for an authentication token.

Frequently asked questions

Can this tool tell me if a JWT is genuine?

No - it can only decode and display the header and payload, which anyone can do without any key at all. Verifying authenticity requires checking the signature against the issuer's secret or public key, which this tool deliberately never asks for or has.

Why does the status say "Invalid JWT" for something that looks like a token?

A JWT must be exactly three Base64URL segments separated by periods, and both the header and payload must decode to valid JSON objects. If any of that isn't true - a missing segment, corrupted Base64, or malformed JSON - decoding fails and the token is reported as structurally invalid, regardless of the signature.

What does "Not Yet Valid" mean?

The token has an nbf (Not Before) claim set to a time still in the future - the issuer intentionally made this token unusable until that moment arrives.

Why are my timestamps off by exactly 1,000× or showing a nonsense date?

JWT timestamps are Unix SECONDS, not milliseconds - a payload that stores milliseconds instead (not spec-compliant, but it happens) will show a date far in the past or far in the future here, since that value is exactly 1,000× smaller than a real seconds-based timestamp would be.

Is my JWT uploaded anywhere?

No - decoding happens entirely in your browser using native Base64URL and JSON parsing; the token text is never transmitted anywhere.

Related tools

Try the Base64 Encoder / Decoder or the JSON Formatter, Validator & Fixer, or browse the rest of the Developer tools on NeatSize.

Runs entirely in your browser - nothing you enter or upload is sent to a server.