consolelog.tools

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 cases

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

  1. 1Pick a Provider preset to match a known key shape, or choose Custom to configure freely.
  2. 2Select an Encoding (Base62, Base58, Base64 URL-safe, hex, or UUID v4) and set the Entropy in bytes.
  3. 3Optionally set a Prefix, Separator, and the Number of keys to generate, and tick Append checksum for typo detection.
  4. 4Watch the live entropy/strength/length readout update as you adjust options.
  5. 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

Entropy256 bitsVery strong43 chars••••••••••••••••••••••••

Was this tool helpful?

Share Your Experience

Help others discover this tool!

Related tools