JWT Secret Strength
Measures the strength of an HMAC JWT secret: byte length, approximate entropy and rating.
Does your HS256 secret have enough bytes
You inherited a project where JWT_SECRET is literally supersecret, and you need a number to convince the team to rotate it. Paste the value into the box and the tool reports three things: length in bytes, an estimated entropy in bits, and a rating running from weak to excellent. Everything recalculates on each keystroke, with no button to press.
The arithmetic is simple and worth knowing. Length comes from the UTF-8 encoding, so accents and emoji count as more than one byte. The alphabet size is estimated by adding 26 for lowercase, 26 for uppercase, 10 for digits and 32 for symbols, depending on which classes appear, and entropy is the character count times the base-2 logarithm of that total. The rating, however, looks only at byte length: under 16 weak, under 32 medium, under 64 good, excellent beyond that.
The formula assumes every character was drawn at random, which is rarely true. Thirty-two repeated letter a's score 150 bits and land on good, yet fall on the first guess. Read the number as a floor, not a certificate: it is great at rejecting short secrets and useless at approving invented phrases. RFC 7518 asks for a key of at least 32 bytes for HS256; generate yours with openssl rand -base64 48. The analysis runs in the browser and nothing is sent anywhere.
Frequently asked questions
Are 32 bytes enough for HS256?
Why does a repetitive password get a good rating?
Does this apply to an RS256 key?
Related Tools
Password Strength Checker
Analyze the strength of any password: length, character classes, entropy in bits and resistance estimate. Processed in the browser — the password never leaves your device.
JWT Claims Explainer
Lists all RFC 7519 registered claims (iss, sub, aud, exp, nbf, iat, jti) with descriptions and basic validation.
Password Crack Time Estimator
Estimates brute-force cracking time for a password in three scenarios (online, offline and GPU), from its length and character set. It does not check any leaked-password dictionary.
OAuth PKCE Pair Generator
Generate an OAuth 2.0 PKCE pair (code_verifier and SHA-256 code_challenge) for secure login flows in mobile apps and SPAs. Protect against code interception.
API Key Rotation Planner
Computes upcoming API key rotation dates based on an interval (30/60/90 days) and generates an iCal reminder.
SAML Response Base64 Decoder
Decodes and indents base64-encoded SAMLResponse XML for inspection — useful for SSO debugging.