API Key Generator

Produce one or a batch of secret strings in a format that suits the thing you are protecting. Pick an alphabet, set a length, optionally add a prefix, and copy or download the result, all without the value ever leaving the browser.

Security Notice

This page runs entirely in your browser and every value it produces is generated locally — nothing is transmitted or stored on a server. That also means no one can recover a value for you: store generated secrets in a password manager, and treat masking as display-only rather than encryption. Review your own threat model before using any output in production.

Four Alphabets and a Length

A secret is only as strong as the pool it is drawn from and the number of draws taken, and this page lets you set both. You choose what characters are allowed, how many of them the result should contain, and how many separate secrets to make at once. Each value is assembled character by character from a random number, so the output has no pattern you could guess from a neighbouring key.

Making a Set of Secrets

  1. Choose a format. For a general secret, the random alphabet is the usual pick because of its larger pool.
  2. Slide the length control or read the number beside it. Thirty-two characters is a reasonable default; go longer for anything that guards real data.
  3. Type a prefix if the service you are feeding expects one, for example a short marker followed by an underscore, or leave the field empty.
  4. Set how many keys you need. One is the default, and fifty is the ceiling for a single batch.
  5. Press Generate. The page replaces the panel contents with the new set, one key per line.
  6. Use Copy All to place the whole set on the clipboard, or Download to save it as a plain text file named for the purpose.

What the Output Looks Like

The four formats differ in alphabet size, and that difference is the main thing to weigh when choosing between them. Here is what each produces and how many possibilities a position carries.

Which Format to Reach For

AlternativeNotes
Random with symbolsThe strongest option here for the same length, because the alphabet is the widest at seventy characters. The trade-off is that symbols can be awkward in URLs, shells or hand-typed configuration, so it suits secrets that live in a file or a secret store rather than a query string.
HexadecimalA narrower alphabet and therefore fewer possibilities per character, but it is predictable, case-free in practice and safe anywhere a hex string is expected, such as an identifier, a salt or a checksum field.
Base64A middle ground with sixty-four characters. It is denser than hex and more portable than a symbol-heavy random string, though the plus and slash it can emit are not friendly to every URL or file name.
UUID-likeBest when a system asks specifically for a UUID. It is fixed in shape, easy to recognise, and carries version and variant markers. It is not a substitute for a high-entropy secret, since much of its length is structure rather than randomness.

Where the Randomness Comes From

The page generates everything in the browser and sends nothing. The characters are drawn from the platform's cryptographic random source, which is the same facility a password manager would use, so there is no server that ever sees a key you make here. Two details are worth knowing before you rely on it for something important.

Key Generation Questions

Are these keys suitable for production secrets?

The material itself is sound. All four formats, including the UUID-like one, draw from the platform's cryptographic generator, and the character mapping uses rejection sampling so no character or byte value is favoured over another. The length is under your control for the three variable-length formats. The remaining caveat is not the generation but the storage: a key is only as safe as where you keep it, so generate it here and then place it in a proper secret manager rather than a document or a chat message.

Why does my UUID-style key ignore the length slider?

Because that format is not assembled character by character the way the others are. It is produced from a fixed template with the groups already in place, so the result is always thirty-six characters long and the slider has no effect on it. The fixed shape is the point of a UUID.

Does adding a prefix make the key longer?

Yes. The prefix is joined onto the front of the body as plain text, so a five-character prefix and a thirty-two character body give a thirty-seven character result. The length you chose applies to the body only.

Can I get the same key twice?

No, not by accident. Each position is drawn independently from the random source, and the pool is large, so repeating a value would require an extraordinary coincidence. If you see an identical key, that is a sign the page did not regenerate rather than a collision.

Last verified: October 7, 2026

Launch API Key Generator

All Tools · All Tools · About · How We Test · Contact · Privacy

Maintained by Huang Bin · Last updated October 3, 2026

Loading Vue Application