API Key Generator
Generate cryptographically-secure API keys and tokens — provider presets, base62/58/64/hex/UUID encodings, optional checksum, with a live entropy readout.
About this ToolHow it works, benefits & use casesTap to collapse
Generate cryptographically-secure API keys and tokens in the shape your provider expects. Keys are produced with the Web Crypto API entirely in your browser — nothing is sent to a server. Start from a provider preset (generic 256-bit token, Stripe sk_live/sk_test/pk_live, GitHub PAT, OpenAI sk-, Slack bot xoxb, Google AIza, or AWS AKIA) and it sets the prefix, separator, encoding, and entropy to match, or switch to Custom and dial everything yourself. Choose an encoding — Base62, Base58 (no look-alike 0/O/I/l), URL-safe Base64, hex, or UUID v4 — set the bytes of entropy (8–256), add a prefix and separator, and optionally append an 8-character SHA-256 checksum for typo detection. A live readout shows the entropy in bits, a strength rating, and the expected key length, and you can mint up to 256 keys at once, reveal or mask them, and copy individually or all at once.
How to Use
- 1Pick a Provider preset to match a known key shape, or choose Custom to configure freely.
- 2Select an Encoding (Base62, Base58, Base64 URL-safe, hex, or UUID v4) and set the Entropy in bytes.
- 3Optionally set a Prefix, Separator, and the Number of keys to generate, and tick Append checksum for typo detection.
- 4Watch the live entropy/strength/length readout update as you adjust options.
- 5Press Generate keys, then Reveal to unmask, and copy a single key or use Copy all.
Key Benefits
- Keys generated locally with the Web Crypto API — never sent to a server
- Provider presets for Stripe, GitHub, OpenAI, Slack, Google, AWS, and a generic token
- Five encodings including Base58 with no look-alike characters and UUID v4
- Configurable entropy from 8 to 256 bytes with a live bits/strength/length readout
- Optional 8-character SHA-256 checksum suffix for detecting copy-paste typos
- Batch-generate up to 256 keys, with reveal/mask and copy-one or copy-all
- Custom prefix and separator to match any in-house key format
Common Use Cases
- Creating realistic Stripe- or GitHub-shaped test keys for local development and fixtures
- Generating a high-entropy generic token for a new service's API authentication
- Producing a batch of unique keys to seed a database or load-testing run
- Choosing Base58 for keys that will be read aloud or transcribed without ambiguity
- Adding a checksum so mistyped keys can be rejected before hitting your backend
Test-only values. Keys are generated in your browser with the Web Crypto API and are not registered with any provider. Store and validate real credentials server-side.
Options
8-char SHA-256 suffix for typo detection
••••••••••••••••••••••••Was this tool helpful?
Share Your Experience
Help others discover this tool!
Related tools
- Base64 Encoder/DecoderEncode and decode Base64 strings
- Hash GeneratorGenerate MD5, SHA-1, SHA-256, SHA-512 hashes
- Changelog GeneratorGenerate changelog from Git commit history
- Component Name GeneratorTurn a description into ranked, kind-aware component names with a file scaffold and a name validator (casing, collisions, clarity)
- Heroku Procfile GeneratorBuild a Heroku Procfile and matching app.json — process types, env vars, addons, dyno formation — plus a Procfile parser and audit
- Markdown TOC GeneratorGenerate table of contents for Markdown
The randomness is cryptographically secure (Web Crypto's getRandomValues / randomUUID), but a generated value is not registered with any provider — the presets only mimic the shape of, say, a Stripe or GitHub key. Treat output as test or development values and issue and validate real credentials through your provider's own systems server-side.
Base62 (alphanumeric), Base58 (Bitcoin alphabet, omitting 0/O/I/l so keys survive being read aloud or copied), URL-safe Base64, hexadecimal, and UUID v4. Base58 and Base62 use unbiased big-integer encoding, hex can be uppercased, and UUID v4 produces a fixed 36-character value.

