API Key Format Generator
Format-realistic fake API keys for 13 real services (Stripe, GitHub, AWS, Google, Slack, SendGrid, OpenAI, npm, Twilio, UUID) or a fully custom format -- for test fixtures and demos, never real/active credentials.
What this tool does
Generates format-realistic fake API keys matching the publicly documented key shape of 13 real services -- useful for seeding test fixtures, redacting examples in documentation, or populating a demo UI without using (or accidentally leaking) a real credential. A generated key is never valid or active against the real service -- it matches the public format only, not the private issuance process that actually activates a real key.
Formats included
Stripe (sk_live_/pk_live_),
GitHub classic (ghp_) and fine-grained
(github_pat_) personal access tokens, an AWS Access
Key ID (AKIA...) and Secret Access Key, a Google API
key (AIza...), a Slack bot token
(xoxb-...), a SendGrid key (SG....), an
OpenAI-style key (sk-...), an npm token
(npm_...), a Twilio Account SID
(AC...), a standard UUIDv4-based key, and a fully
custom prefix/length/character-set format.
Unbiased randomness
Every character is drawn via crypto.getRandomValues()
with rejection sampling against each format's actual alphabet
size -- not a plain modulo, which is measurably biased toward
lower alphabet indices whenever the alphabet size doesn't evenly
divide 256.
Why these aren't real keys
A real API key is only valid because the issuing service's servers recognize it -- it's not derived from the format alone. These generated values match the public shape (prefix, length, character set) each provider documents, but have never been issued by anything, so they will always fail authentication against the real service. That's the point: safe-to-paste-anywhere placeholder values that still look like the real thing for a screenshot, a test fixture, or a code example.
Bulk generation and entropy
Generate several keys at once for seeding multiple test accounts or fixtures, with the real entropy (bits) of the random portion shown for whichever format is selected.
Privacy
Every key is generated entirely in your browser. Nothing is uploaded, and nothing is kept once you leave the page.