🔑

API Key Generator

Generate long, high-entropy API keys suitable for authenticating services and applications. Supports custom prefixes for easy identification (e.g. sk-, pk-, live_).

Code Maker
Very Strong 191 bits entropy

Excellent for API keys and security tokens.

Character Sets
Generated Output
udxbsaXjGQBtQv5vWus2sIh57hWVMg2i
cLN1xrN11pW8W2j5ucIHWJNXfmHsEbO9

Frequently Asked Questions

How long should an API key be?

A minimum of 32 characters is recommended. At 32 characters from a 62-character set you get ~190 bits of entropy — effectively impossible to brute-force.

Should API keys include symbols?

Generally no. Many systems pass API keys in HTTP headers or URLs where symbols can cause encoding issues. Stick to alphanumeric characters for maximum compatibility.

What is the sk- / pk- prefix convention?

Prefixes like sk- (secret key) and pk- (public key) help you identify key type at a glance and make accidental exposure easier to detect in logs.

Related Tools

Further Reading