User Rating 0.0
Total Usage 0 times
Entropy: 0 bits
# = 0-9 A = A-Z a = a-z * = Any ! = Special
0 IDs Generated
Is this tool helpful?

Your feedback helps us improve.

About

The CRM ID Generator is a precision-engineered utility designed for developers, QA engineers, and database administrators who require rigorous data seeding capabilities. Unlike standard random number generators which rely on Math.random (a pseudo-random process vulnerable to statistical bias), this tool leverages the browser's Crypto API to access the underlying entropy pool, ensuring cryptographically secure uniqueness suitable for production keys and session tokens.

Database integrity relies on the non-collision of primary keys. When simulating large-scale imports into systems like Salesforce or HubSpot, using low-entropy identifiers can lead to silent overwrite failures. This utility calculates the theoretical entropy H of your configuration in real-time, allowing you to gauge the collision resistance of your dataset against the Birthday Paradox. It supports complex masking patterns for legacy system compatibility, standard UUID v4 generation, and sequential logic for indexing scenarios.

id generator uuid mock data sql seed random string dev tools

Formulas

The security of a random identifier is measured by its Entropy (E), expressed in bits. It represents the unpredictability of the string.

E = log2NL = L × log2N

Where L is the length of the ID and N is the size of the available character pool. For a pool N = 62 (Alphanumeric) and length L = 20:

E 20 × 5.95 = 119 bits

To avoid collisions, we aim for E > 100. The total combinatorics space is C:

C = NL

Reference Data

StandardLength (Chars)Charset / FormatEntropy (bits)Collision Probability (at 1B items)
UUID v4 (RFC 4122)36Hexadecimal + Dashes122≈ 0% (Negligible)
Salesforce ID15 or 18Alphanumeric (Base62)≈ 90Extremely Low
MongoDB ObjectID24HexadecimalN/A (Time + Machine)Zero (Distributed)
Stripe API Key24+Prefix + Alphanumeric> 128Negligible
NanoID (Default)21URL-Safe Alphanumeric126≈ 0%
MD5 (Mock Format)32Hexadecimal128N/A (Hash)
ISBN-1313NumericN/AN/A (Registry)
Credit Card (PAN)16Numeric (Luhn Check)50-60High if Random

Frequently Asked Questions

Math.random() is a Pseudo-Random Number Generator (PRNG). It is deterministic and not cryptographically secure, meaning patterns can repeat. This tool uses window.crypto.getRandomValues(), a Cryptographically Secure PRNG (CSPRNG), which uses OS-level entropy (mouse movements, thermal noise) to ensure unpredictability and significantly lower collision risk.
This filter removes characters that look visually identical in many fonts. Specifically: "I" (capital i), "l" (lowercase L), "1" (one), "O" (capital o), and "0" (zero). Excluding these prevents user error when IDs must be manually transcribed or read over the phone.
Pattern mode uses a masking syntax: "#" is replaced by a digit (0-9), "A" by an uppercase letter, "a" by a lowercase letter, "*" by an alphanumeric character, and "!" by a special character. Any other character (dashes, underscores, static text) is preserved.
In "Random" mode, no system can mathematically guarantee uniqueness without checking against a history, but with high entropy settings (Length > 12), the probability of collision is astronomically low. However, this tool includes an internal "Collision Check" during generation that discards and regenerates any duplicates within the current batch.
Yes. Select the "SQL INSERT" output format. You can customize the table name and column name. The tool formats the output as a valid SQL statement: INSERT INTO table (col) VALUES ('id1'), ('id2');.