Code

Password Generator Guide: Character Choices, Randomness and Bit Estimates

·

Password generator creates a batch of ASCII-character passwords using your browser’s cryptographic random source. Choose whole-number length and count, enable the desired character kinds, optionally leave out the six listed look-alikes, then press Generate passwords. Check the destination’s accepted length and characters before using a result.

The displayed bits are an ideal character-pool estimate rather than measured generator entropy or an account-security guarantee. Settings edits do not immediately replace an existing batch. Copy and Download deliberately create external copies, while Clear removes the displayed output and keeps the generation settings.

Password generator

Choose settings and generate a new batch

Set Password length and How many, choose character kinds, and press Generate passwords. Defaults are length 20, count 5, all four character kinds enabled and look-alike exclusion off. Output is read-only and displayed left to right, one password per line.

The generator accepts whole lengths from 4 to 128 and whole batch counts from 1 to 50. At least one character kind must be enabled. These are software limits, not recommendations that a four-character password is suitable for an account. Generate remains available before validation, so an invalid request can produce an error when clicked.

  • Use a distinct password that fits the destination account’s actual constraints.
  • Check the output and its estimate after generating, especially after changing settings.
  • Store needed results deliberately in a trusted password manager rather than treating this page as a vault.

W3C Web Cryptography: getRandomValuesMDN: cryptographic random values in integer arrays

The character pool is a specific ASCII alphabet

Lowercase letters contribute 26 characters, uppercase letters 26, digits 10 and symbols 24. All four together form an 86-character pool. Only enabled sets are used; there is no custom alphabet, Unicode character setting or space-containing word mode.

The exact symbol set is !@#$%^&*()-_=+[]{};:,.?/. It does not mean every possible punctuation character. If the destination forbids some symbols, this workspace cannot exclude an arbitrary subset; choose options that fit the destination or use an appropriate generator that supports its exact requirements.

The character pool is a specific ASCII alphabet
Enabled kindCharactersPool contribution
Lowercasea–z26
UppercaseA–Z26
Digits0–910
Symbols!@#$%^&*()-_=+[]{};:,.?/24
All fourCombined selected alphabet86

Look-alike exclusion removes exactly six characters

Leave out look-alike characters removes O, 0, o, I, l and 1. With all kinds enabled, the pool changes from 86 to 80: lowercase becomes 24, uppercase 24, digits 8 and symbols remain 24. This helps manual reading without adding a broader ambiguous-character detector.

Digits-only with this option uses 2–9. The option does not remove every font-dependent look-alike, define a custom blacklist or create a specialized PIN security mode. It changes the alphabet for the next generated batch; existing output remains until Generate is pressed again.

Every generated password includes each selected kind

Generation first chooses one character from every selected kind, fills remaining positions from the combined pool, then uses a Fisher–Yates shuffle. This guarantees at least one lowercase, uppercase, digit or symbol from each enabled kind, without leaving the seeded characters in a fixed initial order.

The guarantee changes the generated-string distribution compared with choosing every position independently from all N characters. With multiple kinds, the algorithm is not uniform over every string in the full N^L space, because strings lacking a selected kind are not eligible. The tool does not calculate the actual distribution entropy or offer separate minimum-per-kind counts.

W3C Web Cryptography: getRandomValues

Cryptographic random draws and rejection sampling have a defined role

The implementation uses crypto.getRandomValues with a one-element Uint32Array, not a Math.random fallback. To choose an index within a set, it rejects draws outside a complete divisible range before taking the remainder. This avoids the simple modulo bias that would otherwise favor some indices.

Web Crypto specifies cryptographically strong random values, but the specification does not provide a fixed entropy lower bound or certify this application as a cryptographic module. Random-source behavior, browser/device integrity and account defenses are separate questions. The implemented sampling and shuffle are not a guarantee against every attack or a measured security score.

W3C Web Cryptography: getRandomValuesMDN: cryptographic random values in integer arrays

Displayed bits estimate an ideal character-pool space

The numeric calculation is L × log2(N), where L is the requested length and N is the selected pool size. The localized display rounds the value to a whole-number estimate. For 16 characters with all four kinds and exclusions off, 16 × log2(86) is about 102.82 bits, displayed approximately as 103.

The updated metric explicitly calls this an ideal-pool estimate rather than measured entropy. Required category seeding and shuffling mean the full generated distribution differs from the unrestricted full-pool model. The number is not a cracking-time forecast, account-risk assessment, breach check or a guarantee attached to words such as strong or secure.

Displayed bits estimate an ideal character-pool space
Configuration at length 16PoolIdeal-pool bits
All four, exclusion off86About 102.82
All four, exclusion on80About 101.15
Lowercase only26About 75.21
Digits only, exclusion off10About 53.15
Digits only, exclusion on848

MDN: the base-two logarithm

Choose length for the account’s rules and threat context

For this random generator, a longer requested length increases the displayed ideal-pool estimate for the same alphabet. Check the destination’s allowed length, characters and input behavior rather than assuming its rules match this tool’s 4–128 range or all-four-category options. Use a unique password for each account and a suitable manager to retain it.

NIST SP 800-63B-4 gives requirements for central password verifiers, including a 15-character minimum for single-factor password use and an 8-character minimum when used as part of multi-factor authentication, along with support for longer passwords. Those requirements do not certify this browser generator or turn its minimum into account guidance.

NIST: SP 800-63B-4 final publicationNIST SP 800-63B-4: passwords, verifier requirements and threat context

Generator options are different from verifier composition rules

Choosing categories here is a generation preference. NIST’s verifier guidance does not permit mandatory character-composition rules and arbitrary periodic password changes, and requires checks against commonly used or compromised values in the verifier’s context. This generator does not perform a destination policy, breach or blocklist check.

A random password alone does not make an account phishing-resistant or protect a compromised device. NIST’s threat discussion distinguishes guessing, phishing and other attacks, and its guidance supports password managers and paste behavior. Use the account’s supported defenses and storage workflow rather than interpreting the bits display as a complete account assessment.

NIST SP 800-63B-4: passwords, verifier requirements and threat context

A batch is not guaranteed to contain unique values

Each requested password is generated independently by the current algorithm, but the app does not deduplicate the batch or promise every value is distinct. Random draws can repeat. Shorter strings and smaller alphabets make collisions more plausible; a batch count is not a number of guaranteed unique account secrets.

Use separate values for separate accounts. The app does not compare results with existing passwords, prevent reuse elsewhere or check whether a value has appeared in a breach. Its one-per-selected-kind guarantee concerns each generated string’s composition, not uniqueness or prior exposure.

Changing options leaves the existing output and estimate visible

Changing length, count, a character kind or the look-alike checkbox updates settings only. The previous batch, displayed pool estimate and notices remain until a new Generate action. The current form controls can therefore differ from the settings that created the visible output.

Press Generate passwords after finishing the settings change. A successful run replaces the output and estimate and clears a prior error. If the new request is invalid, generation clears the old output and estimate and shows the validation error while retaining the settings. Correcting a field alone does not necessarily remove that error until a successful run.

Changing options leaves the existing output and estimate visible
ActionOutput and estimateSettings
Edit a settingKeep the previous valuesChange the requested setting
Successful GenerateReplace with the newly generated batchKeep chosen settings
Invalid GenerateClear output and estimate; show errorKeep invalid/current choices
ClearRemove output and estimate; show cleared noticeKeep all choices
Reload or leaveDiscard transient workspaceA fresh mount uses defaults

Invalid numeric or empty-alphabet requests fail on Generate

Length and count must be integers within their inclusive ranges. Length 3 or 129, count 0 or 51, fractional values and an empty selection of character kinds are invalid. The HTML input bounds do not replace the generator’s validation.

Generate remains clickable for such states. An error clears output and disables Copy, Download and Clear because no batch remains. Select at least one kind and valid whole-number length/count, then generate successfully to recover. There is no automatic correction, cancellation control or asynchronous processing queue.

Copy transfers the whole batch to the clipboard

Copy sends all displayed lines, separated by newline characters, to the system clipboard. It does not copy just the focused line or an automatically selected account secret. If clipboard access is unavailable, the app displays a notice to select and copy the output manually, while leaving the batch available.

Clipboard.writeText can require a secure context or be refused by browser policy. Successful copying creates a copy outside this page’s output field. The tool does not automatically clear the system clipboard, provide secure clipboard storage or know which application later reads it.

MDN: clipboard text writes and access requirements

Download is a plaintext batch file; Clear retains preferences

Download saves toolmellow-passwords.txt containing the displayed newline-separated batch plus a final newline. This is a plaintext file, not an encrypted vault, password-manager database or account import guarantee. Deliberately manage any saved copy under the storage workflow you choose.

Clear removes the visible output and ideal-pool estimate and displays a cleared notice, but keeps length, count, kinds and exclusion preferences. It does not erase the clipboard, previously saved files or copies placed elsewhere. Refreshing or leaving discards the app workspace rather than certifying secure memory zeroization.

MDN: files and browser data objectsMDN: clipboard text writes and access requirements

Local generation is not a persistent vault or zero-network claim

The generation function makes no request containing the generated passwords; it uses local browser state and the browser random source. The app does not persist the batch as a password vault or provide generator history, encrypted sync, autofill or an account-management service.

Ordinary hosting, page assets and analytics requests are distinct from generation of password values. Copy and Download are deliberate output transfers to the clipboard or a file. Local generation does not certify anonymity, zero logging of page requests, browser integrity or the safety of another application that receives the output.

W3C Web Cryptography: getRandomValuesMDN: files and browser data objects

This tool does not create dictionary passphrases or audit existing passwords

The output alphabet consists of the selected ASCII classes. There is no memorable-word passphrase mode, custom symbol list, Unicode alphabet, username generator or separate PIN mode. Digits-only output uses the same random-character engine rather than a specialized verification workflow.

The page does not accept an existing password for strength measurement, test a breach database, predict attack times or certify compliance with a password standard. Hash, UUID and QR-code tools have their own purposes and do not replace account-secret generation or a trusted storage workflow.

Embed the generator with a visible ToolMellow backlink

Use Add this tool to your website on the localized tool page to copy or download the supplied HTML snippet. Retain the iframe, sizing behavior and visible ToolMellow attribution/backlink with its existing link attributes. Choose the intended language and enough space for controls, the batch output and actions.

Visitors choose their own settings and generate within the same length, count and character limits. The snippet is not a hosted password-generation API, credential vault or account integration. Test the intended browser and layout, keep attribution visible and let visitors deliberately manage any clipboard or downloaded output.

MDN: files and browser data objectsW3C Web Cryptography: getRandomValues

Common questions

How do I generate passwords with my chosen character kinds?

Choose whole length 4–128 and count 1–50, enable at least one ASCII character kind, optionally exclude the six listed look-alikes, then press Generate passwords. Defaults are 20 characters, 5 results and all four kinds.

Does every password include each selected character kind?

Yes. The algorithm chooses one character from each enabled kind, fills remaining positions from the combined pool and shuffles. It does not promise uniformity over every unrestricted full-pool string.

Which exact look-alike characters are excluded?

Only O, 0, o, I, l and 1 are removed. All four classes shrink from 86 to 80 possible characters; digits-only changes from 0–9 to 2–9. There is no arbitrary custom exclusion list.

Why are displayed bits an estimate rather than measured entropy?

The app computes L×log2(N), an ideal-pool figure rounded for display. Required character-category seeding changes the generated distribution, so this is not measured entropy, a cracking-time forecast or an account-security guarantee.

Can a batch contain duplicate passwords?

Yes. There is no batch deduplication or uniqueness guarantee. Generate separate values for separate accounts and do not treat count as a promise of distinct outputs.

Do settings changes replace existing passwords immediately?

No. Existing output and its estimate remain until you press Generate again. Those displayed values can correspond to earlier settings than the current controls.

What happens with invalid lengths, counts or no character kinds?

The error appears on Generate and clears previous output and estimate while keeping your settings. Choose valid whole-number bounds and at least one kind, then generate successfully to recover.

Does Clear erase passwords already copied or downloaded?

No. Clear removes displayed output and estimate while retaining settings. It cannot erase clipboard contents, downloads or copies in other applications.

Are generated passwords sent during generation or stored in a vault?

Generation makes no request containing the passwords, and this page provides no persistent password vault. Normal hosting/assets/analytics and deliberate user clipboard/file transfers are separate.

How should I choose a length for the destination account?

Use a unique password that fits the destination’s rules and your storage workflow. Longer length increases this generator’s ideal estimate, but its 4-character software minimum is not account guidance or standards certification.

Does this provide passphrases, custom symbols or a breach check?

No. It provides random selected ASCII characters, not dictionary passphrases, arbitrary symbol/Unicode sets, a breach check or a password-input security audit.

Can I embed the generator with a visible credit link?

Yes. Copy or download the provided HTML snippet, preserving the visible ToolMellow attribution/backlink and sizing behavior. Visitors generate their own output; this is not a hosted credential API.

Does the page generate a batch automatically when reloaded?

No automatic generation occurs on mount. Reloading creates an empty output with the default length 20, count 5 and all-four-kinds settings and exclusion off.

Are the tool’s character choices mandatory NIST account rules?

No. NIST’s central-verifier rules address how accounts accept and handle passwords. This app’s character switches are generation choices, and its bit estimate does not certify account policy or security.

Sources and further reading

Put it into practice.

Related guides