JSON Web Token (JWT) Studio & Debugger
Interactive debugger, claims inspector, signature verifier, and custom token generator supporting all 17 algorithms: HMAC, RSA, PSS, ECDSA (up to P-521), Ed25519, post-quantum ML-DSA (NIST FIPS 204), and unsecured tokens.
Encoded Token
none does not require a secret or private key.
RFC 7519 Registered Claims Breakdown
{
"alg": "HS256",
"typ": "JWT"
}
{
"sub": "1234567890",
"name": "John Doe",
"iat": 1516239022
}
JSON Web Token & Cryptographic Reference Guide
RFC 7519, RFC 7518, RFC 8037 & NIST FIPS 204 (RFC 9964)Anatomy of a Compact JSON Web Token
JOSE Metadata
Specifies the cryptographic algorithm (alg), token type (typ), and optional key ID (kid). Base64URL-encoded without padding.
Claims & Attributes
Contains statements about the subject and additional data: registered claims (iss, sub, exp, iat) and custom claims. Base64URL-encoded.
Cryptographic Proof
Generated by signing the encoded header and payload: SIGN(base64Url(header) + "." + base64Url(payload), key). Guarantees authenticity and tamper resistance.
Complete 17-Algorithm Cryptographic Matrix
| Algorithm | Standard | Cryptographic Family | Key Requirement | Signature / Hash | Security Recommendation |
|---|---|---|---|---|---|
| HS256 | RFC 7518 §3.2 | Symmetric HMAC | Shared secret (≥ 256 bits) | SHA-256 (32 bytes) | Recommended (Standard) |
| HS384 | RFC 7518 §3.2 | Symmetric HMAC | Shared secret (≥ 384 bits) | SHA-384 (48 bytes) | Secure |
| HS512 | RFC 7518 §3.2 | Symmetric HMAC | Shared secret (≥ 512 bits) | SHA-512 (64 bytes) | High Security |
| RS256 | RFC 7518 §3.3 | RSASSA-PKCS1-v1_5 | RSA 2048+ bit Key Pair | SHA-256 (256 bytes) | Industry Standard |
| RS384 | RFC 7518 §3.3 | RSASSA-PKCS1-v1_5 | RSA 3072+ bit Key Pair | SHA-384 (384 bytes) | Secure |
| RS512 | RFC 7518 §3.3 | RSASSA-PKCS1-v1_5 | RSA 4096+ bit Key Pair | SHA-512 (512 bytes) | High Security |
| PS256 | RFC 7518 §3.5 | RSASSA-PSS (MGF1) | RSA 2048+ bit Key Pair | SHA-256 (256 bytes) | Modern Probabilistic |
| PS384 | RFC 7518 §3.5 | RSASSA-PSS (MGF1) | RSA 3072+ bit Key Pair | SHA-384 (384 bytes) | Modern Probabilistic |
| PS512 | RFC 7518 §3.5 | RSASSA-PSS (MGF1) | RSA 4096+ bit Key Pair | SHA-512 (512 bytes) | Modern Probabilistic |
| ES256 | RFC 7518 §3.4 | ECDSA (NIST P-256) | secp256r1 Key Pair | SHA-256 (64 bytes) | Compact & Fast |
| ES384 | RFC 7518 §3.4 | ECDSA (NIST P-384) | secp384r1 Key Pair | SHA-384 (96 bytes) | High Security |
| ES512 | RFC 7518 §3.4 | ECDSA (NIST P-521) | secp521r1 Key Pair | SHA-512 (132 bytes) | Top NIST Curve |
| EdDSA | RFC 8037 | Edwards-curve (Ed25519) | Ed25519 (Curve25519) | PureEdDSA (64 bytes) | Fast & Side-Channel Resistant |
| ML-DSA-44 | NIST FIPS 204 / RFC 9964 | Module-Lattice (Dilithium) | ML-DSA-44 (Level 2) | 2,420 bytes | Post-Quantum Safe (AES-128) |
| ML-DSA-65 | NIST FIPS 204 / RFC 9964 | Module-Lattice (Dilithium) | ML-DSA-65 (Level 3) | 3,309 bytes | Post-Quantum Recommended (AES-192) |
| ML-DSA-87 | NIST FIPS 204 / RFC 9964 | Module-Lattice (Dilithium) | ML-DSA-87 (Level 5) | 4,627 bytes | Post-Quantum Maximum (AES-256) |
| none | RFC 7519 §6 | Unsecured | No key required | None (empty signature) | Insecure (Testing Only) |
NIST FIPS 204: Post-Quantum Cryptography with ML-DSA
On August 13, 2024, NIST officially published FIPS 204, standardizing the Module-Lattice-Based Digital Signature Algorithm (ML-DSA), derived from the CRYSTALS-Dilithium project. RFC 9964 specifies JOSE and JWT integration for ML-DSA.
Quantum Resistance
Classical public-key cryptosystems (RSA, ECDSA, Ed25519) rely on factoring or discrete logarithms, which can be broken by quantum computers running Shor's algorithm. ML-DSA relies on the hardness of lattice problems (Module Learning with Errors), resilient to both classical and quantum cryptanalysis.
Signature & Key Sizes
ML-DSA signatures are larger than classical signatures (e.g. 3,309 bytes for ML-DSA-65 compared to 64 bytes for ES256). The WONTERA.IO JWT engine processes these large lattice vectors in RAM without overhead.
Security Levels
ML-DSA-44 matches NIST Security Category 2 (equivalent to SHA-256 collision resistance), ML-DSA-65 matches Category 3 (AES-192), and ML-DSA-87 matches Category 5 (AES-256).
Critical Security Best Practices
-
Never accept
alg: "none"in production: Ensure backend verifiers reject unsecured tokens unconditionally. -
Enforce strict algorithm pinning: Hardcode expected algorithms on the server rather than trusting the header's
algfield.
-
Check temporal claims: Always validate
exp(expiration),nbf(not before), and allow minimal clock skew (≤ 60 seconds). - Use high-entropy HMAC secrets: HS256 secrets must have at least 256 bits (32 bytes) of cryptographic randomness.