メインコンテンツへスキップ
MakeMyPasswords
Tool 14 of 18Text & ListsMakeMyPasswords

Random String Generator

Generate random strings from any character set — alphanumeric, hex, base58, or your own custom charset. Every character is picked with equal probability.


Charset

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789

62 unique characters in pool

Length: 16
1128
Count: 1
150
Strength

95 bits of entropy per string

How to use this random string generator

A random string is exactly what it sounds like — a sequence of characters picked uniformly at random from a charset you pick. This is the raw material for API keys, invite codes, short tokens, session IDs, test fixtures, filler content, and anywhere else you need a one-off opaque identifier. This generator draws every character in your browser using rejection sampling, so every character has exactly equal probability.

  1. Pick a preset or type a custom charset. Alphanumeric (62 characters) is the default for invite codes. Hex (16 characters) is compact and shell-safe. Base58 (58 characters) drops ambiguous lookalikes (0, O, I, l) — used by Bitcoin addresses and Stripe IDs. Alpha drops the digits; digits-only is for numeric codes.
  2. Set a length. Longer = more entropy. For invite codes a 10-character alphanumeric string gives 59 bits — more than enough to prevent brute-force enumeration. For security tokens use 32 characters or more.
  3. Batch generate. Generate up to 50 strings in one pass for seeding fixtures, populating a test database, or issuing a batch of access codes.
  4. Copy all. One click copies the full batch to your clipboard, one per line, ready to paste into a CSV, SQL query, or code editor.

Entropy quick reference. For an N-character string from a charset of size C, entropy is N × log₂(C). A 12-character alphanumeric (62) string is about 71 bits. A 20-character hex string is 80 bits. A 10-character base58 string is about 58 bits. Anything above 60 bits resists offline brute force for the foreseeable future.

See also— pick a related tool
4 tools