JWT Debugger

Decode JWT tokens to inspect the header and payload, and verify HMAC signatures

  • 100% Free
  • Files stay private
  • Works in your browser
Try it now·JWT Debugger
decoded live, never uploaded

Decoding and verification happen entirely in your browser with the Web Crypto API. Your token and secret are never sent anywhere. A JWT is only base64url-encoded, not encrypted, so never paste production secrets you don’t control.

How it works

  1. Paste your token

    Paste a JWT into the JWT token box, or press Paste to take it from your clipboard. It is decoded in your browser as you type.

  2. Read the decoded token

    See the Header and Payload as formatted JSON, a Claims table with readable dates, and a banner showing whether the token has expired.

  3. Check the signature

    For HS256, HS384 or HS512 tokens, enter the Secret and choose UTF-8 or Base64 to see whether the signature matches.

Decode any JSON Web Token to inspect its header, payload, and claims, check expiry at a glance, and verify HMAC signatures, entirely in your browser, with nothing ever uploaded.

What is JWT Debugger?

A JSON Web Token (JWT) is a compact, URL-safe string with three base64url-encoded parts (header, payload, and signature) used to carry claims between systems, most often for authentication. This debugger splits a token apart, pretty-prints the header and payload as JSON, decodes the standard time claims into readable dates, and can verify the signature for HMAC-based tokens using a secret you supply.

Who Benefits from This Tool

  • Backend developers confirming that the claims they encode are landing correctly in issued tokens.
  • API integrators inspecting a third-party access token to see its scopes and expiry.
  • Security engineers auditing which algorithm and claims a token uses.
  • Support engineers diagnosing “token expired” or “invalid signature” errors quickly.
  • QA testers validating auth flows and token lifetimes during test runs.

Key Features

  • Instant decode: paste a token and see the header and payload rendered as formatted JSON immediately.
  • Claims table: standard claims like iss, sub, and aud are labelled with their full names.
  • Expiry status: a colour-coded banner shows whether the token is valid, expired, or not yet active.
  • Human-readable times: iat, exp, and nbf are converted to dates with a relative “expires in” note.
  • HMAC verification: check HS256, HS384, and HS512 signatures against a secret using the Web Crypto API.
  • Secret encoding options: supply the HMAC secret as UTF-8 text or Base64.
  • Convenience controls: load a working sample, paste from the clipboard, and copy either JSON panel.

How to Use

  1. Paste your JWT into the token box, or click Paste to pull it from the clipboard.
  2. Review the decoded header and payload, the claims table, and the expiry banner.
  3. For an HMAC token, enter the secret and choose whether it's UTF-8 or Base64 encoded.
  4. Watch the verification result confirm whether the secret matches the signature.
  5. Copy the header or payload JSON, or click Reset to clear everything.

Common Use Cases

  • Checking why a login token is being rejected by reading its expiry and claims.
  • Confirming the algorithm in a token's header matches what your service expects.
  • Verifying that a signing secret is correct before deploying an auth change.
  • Inspecting scopes or roles embedded in an OAuth access token.
  • Teaching or learning how the three parts of a JWT fit together.

Tips and Best Practices

  • Remember that a JWT is encoded, not encrypted. Treat everything in the payload as readable to anyone holding the token.
  • Keep sensitive data out of tokens; put only the claims a client is allowed to see.
  • If HMAC verification fails, check the secret's encoding first. A Base64 secret read as UTF-8 will never match.
  • Use short expiry windows and refresh tokens rather than long-lived access tokens.
  • For RSA or ECDSA tokens, verify server-side with the issuer's public key, since only the signing party can vouch for them.

Limitations and Notes

Decoding and verification happen entirely in your browser via the Web Crypto API, so your token and secret are never transmitted. Signature verification is limited to the HMAC family (HS256, HS384, HS512); RSA and ECDSA algorithms (RS*, ES*, PS*) require a public key and cannot be checked here. Because a JWT is only base64url-encoded rather than encrypted, never paste production secrets you don't fully control into any online tool.

FAQs

No. The token is decoded locally in your browser, and HMAC verification runs through the Web Crypto API on your device. Nothing is uploaded.

It verifies HMAC-signed tokens (HS256, HS384, and HS512) using a secret you provide. Asymmetric algorithms like RS256 or ES256 can't be verified in the browser without the public key.

No. Decoding just reveals the contents. A token is only trustworthy if its signature verifies and its time claims are within range. This tool shows both so you can judge.

The payload's exp claim is a timestamp compared against your device clock. If that moment has passed, the token is expired; the banner also flags tokens that aren't valid yet via nbf.

It tells the verifier how to interpret your HMAC secret, as plain UTF-8 text or as a Base64-encoded value. Choosing the wrong one will cause otherwise-correct secrets to fail.

This tool focuses on decoding and verifying. It generates a genuinely signed HS256 sample for demonstration, but it isn't intended as a general-purpose token editor or signer.

More Development Tools

Other tools in Development Tools.

All Development Tools