JWT Debugger

Decode, inspect and verify JSON Web Tokens — entirely in your browser.

100% client-side token processing

Token processing happens locally, without token storage. An explicit JWKS fetch sends no token or secret to your chosen key provider.

Styles, icons, and Google AdSense advertising load from third parties; advertising may use cookies or collect usage data. Treat third-party scripts as trust dependencies. Shared links contain only mock settings, never your pasted tokens or secrets. This repository is currently private; no public source-audit claim is made.

Encoded Token

Verify Signature

Awaiting token

Verification happens locally; your token and secret never leave this page.

Decoded Header algorithm & token type

—

Decoded Payload claims

—

Security & Best Practices Audit

Heuristic checks, not a security certification. Signature verification does not validate issuer, audience, or authorization. Lifetimes longer than 30 days are flagged.

Paste a token to run checks.

Timestamp inspector

Recognized NumericDate claims, in seconds. Relative times refresh every second.

Claim / valueLocal timeUTCRelative

Compare two tokens

Token A is the encoded token above. Compare decoded claims and metadata; this does not verify Token B.

Token A claims

Paste Token A above.

Paste two tokens to compare.

Path / changeToken AToken B

Backend verification snippets

Uses a fixed algorithm allowlist. Configure your trusted issuer and audience server-side. Tokens, secrets, and JWKS URLs are never embedded.

Decode a supported token, then generate a snippet.

Share a safe mock setup

Build a new HS256 demo, not a copy of your token. Links carry only a demo role and lifetime in the URL fragment. The public demo secret is not for production.

What is a JSON Web Token (JWT)?

A JSON Web Token (JWT, pronounced "jot") is a compact, URL-safe string that carries claims, which are statements about a user or system, between two parties. Applications commonly use JWTs as access tokens and ID tokens after sign-in, so a server can confirm who is calling without looking up a session in a database.

A JWT has three parts separated by dots: header.payload.signature. Each part is encoded with base64url, which is base64 with characters made safe for URLs. The header names the signing algorithm, the payload holds the claims, and the signature proves that the header and payload were issued by someone holding the key.

Decoding is not verification

Decoding only reverses the base64url encoding so you can read the header and claims. Anyone can decode a JWT, and decoding proves nothing about whether the token is genuine. Before trusting any claim, a server must verify the signature with the expected key or public certificate, check that the algorithm is one it allows, and then validate claims such as expiry, issuer, and audience.

The Verify Signature panel on this page checks HMAC-signed tokens (HS256, HS384, HS512) using the secret you enter, entirely in your browser. Use it to debug tokens you own, not as a security control in production.

Common registered claims

  • iss (issuer): who created the token.
  • sub (subject): who the token is about, usually a user ID.
  • aud (audience): which service the token is intended for.
  • exp (expiration): Unix time after which the token must be rejected.
  • nbf (not before): Unix time before which the token must be rejected.
  • iat (issued at): Unix time when the token was created.
  • jti (JWT ID): a unique identifier, useful for preventing replay.

The exp, iat, and nbf values shown in the decoded payload are converted to readable dates in the claim badges above.

Signing algorithms

HS256/384/512 use one shared secret for signing and verifying, so every service that verifies tokens must also be able to create them. RS256 and ES256 use a private key to sign and a public key to verify, which lets many services check tokens without being able to forge them. Reject alg: none, and never let a token's header choose the algorithm or key without an allow-list on the server.

Good practices

  • Keep access tokens short-lived and use refresh tokens for longer sessions.
  • Never put passwords, card numbers, or other secrets in the payload. It is encoded, not encrypted.
  • Validate exp, aud, and iss on every request.
  • Use HTTPS, and store tokens in HttpOnly cookies where possible to reduce exposure to scripts.
  • Use a long, random secret for HMAC signing, at least as long as the hash output.

How to use this debugger

  1. Paste an encoded token into Encoded Token. The header and payload appear on the right, and any exp or iat dates are shown as badges.
  2. To check an HMAC signature, enter the secret in Verify Signature. The badge shows whether it matches.
  3. Use Copy to grab the decoded header or payload, or Clear to start over.

Everything runs locally in your browser. Your token and secret are not sent to a server by this page.