01What is Encryption Key Generator?
Sooner or later every app needs a random secret: an AES key for encrypting a column, an HMAC secret for signing JWTs, or an APP_KEY line in a .env file. Typing something that feels random is a bad idea, and this tool gives you real randomness in a few clicks. Pick a Key Size of 128, 192, 256, 384 or 512 bits, a Format and a Count from 1 to 10, then press Generate. Each key is a byte array filled by crypto.getRandomValues, the cryptographically secure generator the W3C Web Crypto API specifies for browsers. The bit size is divided by eight, so a 256-bit key is exactly 32 random bytes. Those bytes are then shown in one of three ways. Hex writes two lowercase characters per byte. Base64 runs the bytes through btoa, the standard alphabet from RFC 4648 with + and / and = padding. Raw Bytes prints the decimal values separated by commas, handy for pasting into a test as an array literal. Each key sits in its own block with its size, format and a character count. A 256-bit key comes out as 64 characters in hex and 44 in Base64. At 128 bits you get 32 hex or 24 Base64 characters, and 512 bits gives 128 hex or 88 Base64. The info panel also prints the keyspace, for example 1.2e+77 possible values at 256 bits. Copy puts every generated key on the clipboard, one per line. Keys are made in your browser tab and only reach the clipboard when you press Copy. No request carries them anywhere. What it won't do matters as much as what it does. Changing the size, format or count does not regenerate the list, so press Generate again after you change something. The 192 and 256 labels say AES-192 and AES-256 because those are the key lengths the AES standard (FIPS 197) accepts, along with 128. The 384 and 512 options are not AES keys. Use them as HMAC secrets or as input to a key derivation step. The tool also does not produce PEM files, RSA or EC key pairs, or keys derived from a passphrase. Those need a different tool or a KDF such as PBKDF2, scrypt or Argon2. And once a key is on your clipboard, keeping it safe is your job: put it in a secrets manager, not in a commit.
Backend and DevOps engineers use it to create AES keys, HMAC secrets and .env values made of real random bytes without opening a terminal. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Encryption Key Generator
- Pick a Key Size, for example 256-bit (AES-256).
- Choose Hex, Base64 or Raw Bytes under Format.
- Set Count to how many keys you need, between 1 and 10.
- Click Generate and check the size label and character count above each key.
- Click Copy to put all keys on the clipboard, one per line, then store them in your secrets manager.
03Worked examples
- Input:
Key Size 256-bit (AES-256), Format Hex, Count 1 - Result:
One key of 64 hex characters, labelled 64 chars; info panel shows 1.2e+77 possible combinations - The key itself is random on every run, so only its shape is shown here.
- Input:
Key Size 256-bit (AES-256), Format Base64 - Result:
One key of 44 characters ending in = - 32 bytes always encode to 44 Base64 characters with one = pad.
- Input:
Key Size 128-bit (AES-128), Format Base64 - Result:
One key of 24 characters ending in == - 16 bytes need two padding characters. Info panel: 3.4e+38.
- Input:
Key Size 512-bit, Format Hex, Count 3 - Result:
Three keys of 128 hex characters each; Copy gives three lines - Info panel shows 1.3e+154 possible combinations.
- Input:
Raw Bytes format, bytes 0, 255, 16, 1 - Result:
0,255,16,1 - Shows how Raw Bytes prints values: plain decimals joined by commas, no spaces. Real keys are random.
04Common use cases
- Creating a 256-bit key in Base64 for an AES-GCM field encryption helper in a Node or Python service
- Generating a 512-bit hex secret to sign HS512 JWTs in an API
- Filling SESSION_SECRET or a similar random value in a new .env file without reaching for openssl rand
- Producing three separate keys in one go for dev, staging and production so no environment shares a secret
- Getting a Raw Bytes array to paste into a unit test fixture for a crypto wrapper
- Rotating a leaked signing secret quickly while you are already in the browser looking at the incident
05Tips
- AES accepts only 128, 192 or 256-bit keys. If a library throws an invalid key length error, check you did not pick 384 or 512.
- Many libraries expect raw key bytes, not the hex text. Decode hex or Base64 back to bytes before passing it in, or you double the length by accident.
- Standard Base64 can contain + and /. Pick Hex if the key goes into a URL, a shell argument or a YAML value you do not want to quote.
- Never reuse one key across environments. Generate a fresh batch with Count set to the number of environments.
06Related concepts
AES, CSPRNG, Web Crypto API, HMAC secret, key length.
Frequently Asked Questions
What is Encryption Key Generator?
Encryption Key Generator is a free, browser-based developer tool on AIDToolStack. Generate cryptographically secure keys It requires no installation or sign-up and works entirely in your browser.
Is Encryption Key Generator free to use?
Yes. No sign-up, no fees and no usage cap.
Does Encryption Key Generator store my data?
No. It runs in your browser; nothing is uploaded.