(🇪🇸 Cambiar al Decodificador JWT y Verificador WebCrypto en español aquí)
100% Client-Side · WebCrypto SubtleCrypto · Zero Network UploadsPasting live production JWTs, session cookies, or HMAC signing secrets into third-party debuggers loaded with analytics scripts is a security incident waiting to happen. This utility decodes headers and claims strictly in memory, flags dangerous footguns like alg: "none" or missing exp claims, and cryptographically verifies HS256/HS384/HS512 signatures locally using your browser's native window.crypto.subtle engine.
SHA-256:
Exact JWT Signing & Verification Formula (RFC 7519)
A compact JSON Web Signature (JWS) never encrypts its payload—it simply encodes two JSON objects into URL-safe Base64 and signs their exact dot-joined ASCII string:
P = Base64URL( UTF8( Payload_JSON ) )
Signing_Input = H + "." + P
Signature = Base64URL( HMAC_SHA256( Secret_Key, Signing_Input ) )
JWT = H + "." + P + "." + Signature
- Never trust unverified header algorithms: Always enforce an explicit algorithm allowlist on your backend verification call as mandated by RFC 8725 instead of trusting
header.algdynamically. - Base64URL is encoding, not encryption: Anyone intercepting a bearer header can decode claims instantly. Never store credentials, PII, or internal secrets inside a JWS payload.
Official Specifications & Standards
- IETF RFC 7519: JSON Web Token (JWT) Specification
- IETF RFC 8725: JSON Web Token Best Current Practices
- MDN Web Docs: Native Browser SubtleCrypto API
Common Production JWT Vulnerabilities
| Failure Pattern | Root Code Mistake | Security Impact | Production Fix |
|---|---|---|---|
alg: "none" Accepted | Verifier blindly obeys untrusted header | Complete auth & privilege bypass | Hardcode allowed algorithm (e.g. RS256 / EdDSA) |
| HS/RS Key Confusion | Validating RSA public PEM as HMAC key | Attackers forge valid tokens using public key | Separate asymmetric vs symmetric verification keys |
Missing exp | Minting non-expiring stateless tokens | Leaked tokens remain permanently valid | Enforce short TTLs (5–15 min) + revocable refresh tokens |
| PII in Claims | Treating Base64URL as confidentiality | Email/secret exposure in client logs & proxies | Keep payloads minimal (sub + scopes) or use JWE |
Frequently Asked Questions
Does any JWT or HMAC secret ever leave my browser?
Never. Base64URL parsing, security claim audits, and WebCrypto HMAC/SHA-256 operations run 100% inside local tab memory with zero outbound API calls.
What other zero-tracking security & dev utilities are available?
Check password resistance in our local password entropy auditor, debug logs/Cron/JSON offline inside the private Cron/Regex/JSON validator, or explore all calculators at Syncroma Tools.