API Key Generator

Generate random API keys with readable prefixes (atz_live, atz_test, or custom) and a cryptographically secure suffix. Perfect for mock services, integration tests, and documentation examples.

  • Free
  • No signup
  • Private

Privacy & security: Your generated secrets and hashes are processed locally in your browser whenever possible and are not stored on our servers.

Your generated secrets and hashes are processed locally in your browser whenever possible and are not stored on our servers.

Overview

Generate random API keys with readable prefixes (atz_live, atz_test, or custom) and a cryptographically secure suffix. Perfect for mock services, integration tests, and documentation examples.

Benefits

  • Prefix dropdown for live vs test keys
  • 32-character secure random suffix
  • Copy-ready format
  • Generated locally — not stored

Use Cases

  • Staging and development API credentials
  • Microservice inter-service keys
  • Demo apps and tutorials
  • CI/CD test fixtures

Users Also Use

How to Use

  1. Choose atz_live, atz_test, or enter a custom prefix.
  2. Click Generate API Key.
  3. Copy the full key into your secrets manager or .env file.

What this API key generator creates

Each key is a prefix followed by 32 random lowercase letters and digits, for example atz_live_k3v9q0x2m7c1b8n4w6d5f0r2t9y1s3p7. The random part is chosen with crypto.getRandomValues() in your browser, which gives about 165 bits of randomness: far more than anyone can guess. Keys are not sent to or stored on our server.

Why API keys have a prefix

A short prefix tells people and tools what a key is at a glance. Separate live and test prefixes stop test keys being used in production by mistake, and a unique prefix lets secret-scanning tools on GitHub and in CI pipelines spot a leaked key in code or logs. The tool offers atz_live_ and atz_test_ as examples; for your own product, pick Custom prefix and enter something unique to you, such as acme_live. Letters, numbers, hyphens and underscores are allowed, and an underscore is added at the end if you leave it out.

Best practices for issuing API keys

  • Show the full key to the customer only once, when it is created.
  • Store only a hash of the key (for example SHA-256) in your database, plus the first few characters so users can recognise it in a list.
  • Send keys only over HTTPS, in a header such as Authorization or X-API-Key, never in a URL where they end up in logs.
  • Let users create several keys, name them, and revoke any of them without downtime.
  • Limit what each key can do and rate-limit requests per key.

API key or another kind of secret?

An API key identifies a client calling your API. To sign tokens or encrypt data inside your own server, use the Secret Key Generator or the 256-bit Secret Generator. For user sessions and short-lived access, signed tokens such as JWTs or OAuth access tokens are usually a better fit than long-lived keys.

FAQ

Are these valid API keys for third-party services?
These are random strings you assign meaning in your own backend. They are not issued by external providers.
Is this a secure API token generator?
Yes. The random portion uses crypto.getRandomValues().
Are API keys stored on your website?
No. Keys are created only in your browser.
How long is the generated API key?
The random part is always 32 characters. The total length depends on the prefix, for example 41 characters with atz_live_.
Can I use my own prefix?
Yes. Choose Custom prefix and type it. Characters other than letters, numbers, hyphens and underscores are removed.
Should I store API keys in plain text?
No. Store a hash of each key, compare hashes when a request arrives, and show the full key to the user only once.
Are generated keys saved anywhere?
No. They are generated in your browser and never transmitted.

Keep exploring