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
- Automatic
Authorization: BearerStripping: Paste straight from DevTools headers without manually trimming the prefix. - Real-Time Claim Countdowns: Automatic human-readable UTC/local dates and relative countdowns for
exp,iat, andnbf. - 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: noneToken (test how unsigned tokens behave in your parser)
- OAuth 2.0 / OIDC Access Token (
- Structured JSON Export & Safe Persistence: Export a clean
jwt-decoded-report.jsonreport, copy payloads withCtrl+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:
- Full JWT Architecture & Vulnerability Guide (alg: none, key confusion, HttpOnly vs localStorage)
- Unix Timestamp & Epoch Converter (10/13/19-digit + batch)
- Base64 & Base64URL Encoder / Decoder
- AI Prompt & Log Sanitizer (redact Bearer tokens & API keys before pasting into LLMs)
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?
