♢

API Key Generator

Generate api key using the options shown.

Choose a file or fill the fields, then click Generate.

About API Key Generator

If you run a small API, an internal tool or a self-hosted service, you may need to issue keys to clients or set a key in a configuration file during development. This tool produces a long random string you can use as that key, instead of something guessable like a project name.

How it works

Keys use the same secure routine as the other generators here. Each character is chosen with crypto.getRandomValues from a 67-character set of letters and digits, with look-alikes removed, plus ! @ # $ % ^ & * _ and -. The default length is 40, limited to 4 to 128. The tool does not add prefixes such as sk_live_, checksums or expiry. It does not register or store the key, so your own server must save it. Generation is local to your browser.

How to use API Key Generator

  1. Complete the available fields: Length. Use the field labels and examples shown in the workspace.
  2. Select “Generate” and check the result before copying or downloading it.

Worked example

At length 40 you get a single string such as fR8q#Lm2vT_9xWb!eK4pZ7nH-cY3uJ6sD@a5gN2k. That string is illustrative only, since each run is random. Forty characters from a 67-character set gives about 243 bits of randomness, so guessing a key is not realistic.

Tips for a better result

  • Store only a hash of each key on your server, such as SHA-256, and show the full key to the client once, the way major API providers do.
  • Clients usually send keys in an HTTP header. Symbols like # or & are fine there but need URL-encoding if a key ever goes into a query string.
  • Add your own readable prefix, such as myapp_, if you want keys to be easy to identify in logs and secret scanners.

Frequently asked questions

Does this key work with any API out of the box?

No. It is just a random string. It only becomes an API key when your own server stores it and checks incoming requests against it. Third-party services issue their own keys.

Why are there symbols in my key?

The generator always uses letters, digits and ten symbols, with no alphanumeric-only option. If your system rejects symbols, generate a new key and replace the symbols, or use a platform-specific key generator.

Can I make the key shorter?

Yes, any length from 4 to 128 works. For security, keep it long. Below about 20 characters, the randomness drops noticeably, and there is little benefit to short keys.

What to check

Local checks are not a security audit or live malware scan. Do not enter active passwords, API keys or other secrets.

Read the Privacy Policy for information about local processing, connected services and advertising.