Every time you copy an Authorization: Bearer eyJ... header out of Chrome DevTools or Postman to debug a 401 Unauthorized response, that token is live credential material.

Until its exp Unix timestamp expires, anyone who captures it—via reverse-proxy logs, APM crash traces, or unvetted third-party web tools—can replay that session. Worse, pasting an HS256 signing secret into a remote server lets an attacker mint valid admin tokens indefinitely until keys are rotated across every microservice.

Because of this, we built the KitWharf Local JWT Decoder, Verifier & Debugger to execute 100% inside client-side browser RAM with zero backend requests.

How Client-Side HMAC Verification Works with crypto.subtle

Standard JWTs (JWS) have three Base64URL-encoded segments (header.payload.signature). Decoding the header and payload only requires Base64URL + UTF-8 decoding, while verifying an HS256, HS384, or HS512 signature uses the browser's native Web Crypto API:

const key = await crypto.subtle.importKey( "raw", new TextEncoder().encode(secret), { name: "HMAC", hash: "SHA-256" }, false, ["sign"] ); const signatureBuffer = await crypto.subtle.sign( "HMAC", key, new TextEncoder().encode(`${headerRaw}.${payloadRaw}`) ); 

Because crypto.subtle runs natively inside your browser's sandbox, neither your Bearer token nor your signing secret ever touches the network. You can literally disconnect Wi-Fi and verify tokens offline.

Practical Quality-of-Life Features We Added

  1. Automatic Authorization: Bearer Stripping: Paste straight from DevTools headers without manually trimming the prefix.
  2. Real-Time Claim Countdowns: Automatic human-readable UTC/local dates and relative countdowns for exp, iat, and nbf.
  3. One-Click Security Audit Presets:
    • OAuth 2.0 / OIDC Access Token (scope, aud, iss, 15-min expiry)
    • Expired 401 Session Token (quick timestamp/clock-skew diagnostics)
    • Unsecured alg: none Token (test how unsigned tokens behave in your parser)
  4. Structured JSON Export & Safe Persistence: Export a clean jwt-decoded-report.json report, copy payloads with Ctrl+Enter, and wipe local storage anytime with Clear Memory (signing secrets are never persisted).

Related Zero-Upload Dev & Security Tools

If you're auditing APIs or auth flows, these run with the same zero-server architecture:

You can also browse our full machine-readable directory of 133 client-side utilities at kitwharf.com/llms.txt. What other dev or sysadmin tools do you wish had a clean offline-capable browser version?