Base64 Key Generator
Generate high-entropy Base64 keys and secrets. Maximum entropy density — 6 bits per character. Ideal for encryption keys and authentication tokens.
Click Generate to create secure API keys
Key Statistics
Keys are generated entirely in your browser using the Web Crypto API. No key is ever stored or sent to a server.
API Key Generator FAQ
Why is Base64 exactly 6 bits per character?
The alphabet is 64 symbols and 2 to the power 6 is 64, so each character encodes exactly six bits with nothing left over. That makes it the densest of the three formats here: 32 characters is 192 bits, against about 190 for Base62 and 128 for hex.
Where do the plus and slash characters cause trouble?
This is the standard alphabet, so a key can contain + and /. In a form-encoded query string a + is read as a space, and a / ends a path segment, so a key pasted into a URL without encoding can arrive changed or truncated. Use Base62 if the key has to travel in a URL untouched.
Is this standard Base64 or base64url?
Standard. It does not substitute - and _ for + and /, so do not hand these keys to a decoder that expects base64url, and do not assume they are safe in a filename.
Why does a generated key never end in an equals sign?
Padding is stripped after encoding and the string is then cut to the length you asked for, so the = characters that normally pad a Base64 value out to a multiple of four never survive. A decoder that requires padding may need it added back.
Need to share API keys securely?
Don't paste API keys into Slack or email. Use CredenShare to deliver them with end-to-end encryption, expiration, and audit logging.