crypto.getRandomValues

Random String Generator

Cryptographically secure random strings, generated in your browser. Pick length, batch size, and character sets, or bring your own alphabet.

Pool
62
Bits/char
5.95
Entropy
190

190 bits per string · Token-grade

    FAQ

    Is this random string generator cryptographically secure?

    Yes. Every character is picked with crypto.getRandomValues and rejection sampling, so each symbol in the alphabet is equally likely and there is no modulo bias. Math.random is never used.

    Are the generated strings sent anywhere?

    No. Strings are generated in your browser and never leave the page. Copy and download happen locally too.

    How long should a random string be?

    For tokens and secrets aim for at least 128 bits of entropy: about 22 characters from a 62-character alphanumeric alphabet, or 32 hex characters. For passwords, 80+ bits is a good floor.

    What does excluding ambiguous characters do?

    It removes look-alikes such as 0/O, 1/l/I and | so strings are easier to read aloud or type from paper. The entropy readout accounts for the smaller alphabet.

    Can I use my own alphabet?

    Yes. Enable the custom alphabet and enter any characters, for example 0123456789ABCDEF for hex or a Crockford Base32 set. Duplicates are removed so the distribution stays uniform.

    Passlock for Mac · $14 lifetime

    Done. Now lock it down for real.

    The browser is fine for one-off checks. The app keeps your passwords, passkeys, and notes locked behind your Mac — offline by default, no cloud account, no subscription.

    • Master lock for your whole vaultLock everything behind one Mac-native gate when you step away.
    • 4 lock types, including Touch ID & passkeysPick the unlock method per item — password, Touch ID, passkey, or master.
    • Offline & native macOS KeychainNo subscription, no cloud account, no sync server reading your secrets.
    See all featuresOne-time payment · macOS 14+ · Works offline
    Passlock

    Vault

    All items

    Unlocked

    Bank · login

    [email protected]

    GitHub

    @you

    Email · personal

    [email protected]

    Master lock activeOffline · iCloud Keychain