ShotMark
Skip to Content

Random Password Generator

Generate secure passwords with configurable length and character sets.

Options
864

What is Random Password Generator?

A password generator is a tool that produces random strings of characters intended to be used as passwords, drawing from configurable character sets such as uppercase letters, lowercase letters, digits, and symbols. Strong, machine-generated passwords resist dictionary attacks, credential stuffing, and brute-force cracking far better than human-chosen passwords, which tend to cluster around predictable patterns.

This password generator builds each value in your browser using the crypto.getRandomValues API, the same cryptographically secure source recommended by NIST SP 800-63B for authenticator generation. Security engineers, developers seeding test accounts, and anyone rotating credentials after a breach use it to produce keys that meet length and character-class policies in seconds.

Why use a password generator?

  • Resist guessing attacks at scale. A 16-character password with mixed character sets has more than 95 bits of entropy, which is well outside the reach of GPU brute-force on stolen hashes.
  • Eliminate predictable patterns. Humans cluster around birthdays, dictionary words, and keyboard walks. Random generation breaks every pattern that credential-stuffing lists rely on.
  • Match site-specific policies. Toggle character classes and length to satisfy “must include a symbol” or “16 characters minimum” rules without manually padding a memorable phrase.
  • Rotate credentials in bulk. Generate dozens of unique values in one click when rotating service accounts, seeding test users, or provisioning shared infrastructure.
  • Keep generation private. Every password is produced locally in the browser tab, so secrets never traverse a network you do not control.

How to use the Password Generator

  1. Drag the Length slider between 8 and 64 characters. Aim for 16 or more for any account you care about.
  2. Toggle the character-set chips (A-Z, a-z, 0-9, !@#) to match the target site’s policy.
  3. Set Count to the number of passwords you need in one batch, up to 50.
  4. Click Generate to produce the list.
  5. Click the copy icon next to a single password, or use the top-right Copy button to copy every value at once.

A typical 16-character output with all classes enabled looks like this:

k7$Qm2!nLp9Vx#Wt P3@yR8nH&fB6jZ#u

How entropy and password strength work

Entropy measures how many guesses an attacker must try on average to find your password. It is calculated as log2(charset_size ^ length) and reported in bits. Each additional bit doubles the search space. NIST SP 800-63B treats memorized secrets of 64-bit entropy or more as resistant to online attacks, and 80 bits or more as adequate against offline cracking on modern hardware.

LengthLower + Upper + Digits + SymbolsEntropy (bits)Online-attack resistance
894 characters52Weak
1294 characters78Acceptable
1694 characters104Strong
2094 characters131Very strong
2494 characters157Excessive for most accounts

Dropping a character class shrinks the alphabet and reduces entropy quickly. A 16-character lowercase-only password has only 75 bits, which a well-funded attacker can crack offline. Keep at least three of the four classes enabled whenever the site allows it.

Security considerations

Cryptographically random output is only half the story. The other half is how you store and reuse the result. Save each generated password in a reputable password manager rather than a text file or a sticky note. Use a unique password per site so a breach at one provider does not unlock the rest. For high-value accounts, layer the password with a second factor: a TOTP code, a hardware security key (FIDO2/WebAuthn), or push-based confirmation.

The generator runs on crypto.getRandomValues, which proxies to the operating system entropy pool (/dev/urandom on Unix, BCryptGenRandom on Windows). It does not seed Math.random(), which is not cryptographically secure and must never be used for credentials.

Common use cases

  • Security engineers rotating service accounts. Generate batches of 32-character secrets to swap into config maps and secret managers during quarterly rotations.
  • Developers seeding test users. Produce unique passwords for staging accounts so test fixtures do not share a common password that leaks into screenshots.
  • IT admins provisioning new hires. Issue a one-time, strong initial password the user is forced to change on first login.
  • QA engineers reproducing auth flows. Generate passwords that match real-world policies (mixed classes, 16+ chars) to test password-strength meters and validators.
  • Anyone resetting credentials after a breach. Replace a leaked password with one that has no relation to your previous patterns.

Password Generator vs alternatives

ToolBest forOfflineCostLimitations
OS keychain generator (macOS, Windows)Single account, browser-integratedYesFreeLimited customization, no bulk output.
1Password / Bitwarden generatorDaily use, auto-fill, vault syncPartialPaid / free tierTied to a vault account.
openssl rand -base64 24 (CLI)Scripted secrets in deploy pipelinesYesFreeSymbol set limited to Base64, requires shell.
This Password GeneratorQuick, no-install, bulk batchesYes (runs in browser)FreeNot stored; copy to a manager immediately.

Frequently asked questions

Is this password generator secure?

Yes. Every value is produced with crypto.getRandomValues, the W3C Web Crypto API that draws from the operating system’s cryptographically secure random number generator. The same API backs many production password managers. As long as you copy the result into a vault and do not screenshot or paste it into a chat log, the output is safe for production credentials.

Are passwords sent to a server?

No. The page loads once, then all generation happens in your browser tab. No HTTP request is made when you click Generate, no telemetry records the output, and closing the tab discards the values. You can confirm this by opening DevTools and watching the Network panel while you generate.

What entropy does this provide?

A 16-character password with all four character classes enabled provides about 104 bits of entropy, which exceeds the NIST SP 800-63B threshold for offline-attack resistance. A 12-character password with the same classes provides about 78 bits. Disabling a class reduces the alphabet from 94 to 62, 36, or 26 characters and lowers entropy accordingly.

How long should my password be?

For routine accounts, 16 characters with three or more character classes is a strong baseline. For accounts protecting financial data, source code, or production infrastructure, use 20 characters or more. Length matters more than complexity beyond a point: a 20-character lowercase passphrase often beats a 10-character symbol-heavy password against modern crackers.

What is the difference between a password and a passphrase?

A password is a short string of mixed characters. A passphrase is a longer string of words, often separated by spaces or dashes (correct-horse-battery-staple). Passphrases are easier to remember and can hit high entropy through length alone. This tool generates passwords; for passphrases, use a Diceware-style word list.

Can the same password be generated twice?

In theory, yes. In practice, the search space for a 16-character mixed-class password is roughly 94^16, or 4 x 10^31 possibilities. Generating one duplicate per second would take longer than the age of the universe. For practical purposes, every value the tool produces is unique.

Should I include symbols if a site rejects them?

If a site silently strips or rejects symbols, disable the symbols toggle and increase length by 4 to 6 characters to maintain entropy. Some legacy systems also reject specific symbols (', ;, <); generate, then trim manually if you hit one.

Where should I store generated passwords?

In a dedicated password manager such as 1Password, Bitwarden, KeePassXC, or your browser’s built-in manager. Do not save them in plain text files, screenshots, sticky notes, or shared documents. The password manager also lets you regenerate and rotate the value later without losing access.

Like this tool?

ShotMark captures what you do here, in one click.

The traces, payloads, and tests you run by hand? ShotMark grabs the whole bug and hands it to your AI agent.

Private beta accessFounding pricing lockNo spam ever