DevStack

Development

JWT Secret Generator

Pick a key length from 32 to 512 bits, then generate a standard alphanumeric secret or an enhanced secret that also includes special characters. Copy the key or an environment variable line for HMAC JWT signing.

Secret

Standard and enhanced

Standard keys use letters and numbers. Enhanced keys add special characters from the same generator.

Bit length

Jump to 128, 192, 256, 384, or 512 bits, or drag the slider in steps of 32. 256 bits is the usual starting point.

HMAC fit

See whether the length meets HS256, HS384, or HS512, then copy the secret or a JWT_SECRET line.

Input

Choose a bit length, then generate a standard or enhanced HMAC secret.

Generate a random HMAC secret for HS256, HS384, or HS512. Standard keys use letters and numbers. Enhanced keys also use special characters. 256 bits is the usual production length.

Standard Secret Key

Alphanumeric only

Quick presets

Encryption strength 256 bits Strong
32 128 256 512

Your generated secret key

Click "Generate Key" to create a secure secret

Enhanced Secret Key

With special characters

Quick presets

Encryption strength 256 bits Strong
32 128 256 512

Your generated secret key

Click "Generate Key" to create a secure secret