Generate a random password using your browser’s cryptographic random source.
Use this tool for creating fresh passwords where a site allows independently selected characters. Choose a length within the supported range. Select letters and digits when a service rejects punctuation, or include symbols when allowed.
How to use the password generator
Choose a length within the supported range. Select letters and digits when a service rejects punctuation, or include symbols when allowed.
The form starts with a demonstration you can run immediately. Its starting inputs are Length = 20; Character set = Letters digits and symbols. Replace these values with your own and select Generate. Results appear underneath the buttons. Select Reset to restore the example. If you receive a validation message, check the field formats and try again.
What the calculation measures
The browser draws each character using its cryptographic random source. Rejection sampling keeps accepted character positions uniformly distributed.
A wider pool gives more possible values per character, while a longer length adds another independent choice at every position. Neither compensates for reusing one password across accounts.
Character-set mode permits those character types and does not guarantee that every type appears. If a service enforces a minimum mix, generate a fresh value until it meets that rule.
Worked example and comparison cases
The examples below specify test settings. The generated text or sequence changes between runs, so use the stated input rules to check the output.
Starting example
Enter Length 20; Character set Letters digits and symbols. Check that the generated password contains 20 characters and uses the selected character pool. This is the starting scenario shown in the form.
The default chooses a longer password from a pool including symbols. Independent selection allows the same character to appear more than once. Regenerate if a particular service rejects a character used in the output.
Comparison 1
Enter Length 12; Character set Letters digits and symbols. Check that the generated password contains 12 characters and uses the selected character pool. Compared with the starting example, this case changes Length.
Use the shorter example to check the generator’s minimum accepted length. A longer option is preferable when the service and password manager allow it, particularly for accounts where you cannot enable additional protections.
Comparison 2
Enter Length 20; Character set Letters and digits only. Check that the generated password contains 20 characters and uses the selected character pool. Compared with the starting example, this case changes Character set.
The letters-and-digits pool avoids punctuation restrictions found on some forms. Length still matters because each additional position expands the number of possible strings.
Comparison 3
Enter Length 32; Character set Letters digits and symbols. Check that the generated password contains 32 characters and uses the selected character pool. Compared with the starting example, this case changes Length.
The 32-character example increases length without changing the character pool. A password manager removes the need to memorize the result or write it down somewhere others can see.
Comparison 4
Enter Length 64; Character set Letters and digits only. Check that the generated password contains 64 characters and uses the selected character pool. Compared with the starting example, this case changes Length, Character set.
For a service that accepts a 64-character secret, check that it stores the entire value and does not silently truncate it before relying on it. Generate a separate credential for every account.
Check the inputs against your source
Write down where the inputs came from before relying on the result. If you copied numbers from two records, make sure the records describe the same person, transaction, period or dataset. Work from the original values if possible. A rounded amount shown in a report may be adequate for a quick check, but reusing several rounded values can move the final answer enough to matter.
For this calculation, start by checking length, character set. A wider pool gives more possible values per character, while a longer length adds another independent choice at every position. Neither compensates for reusing one password across accounts. If a source uses a different definition, record the two calculations separately so that you can explain any discrepancy. Before sharing the result, include the inputs alongside it so the next reader can reproduce it without guessing what you entered.
Compare scenarios without losing the baseline
Save the starting inputs and outputs before editing a value. Change one assumption, then read the result against your baseline. When several inputs need to change together, write down the reason for those changes and treat them as a separate scenario. This is especially useful when two people are comparing results from different documents or when the source data might be revised later.
Character-set mode permits those character types and does not guarantee that every type appears. If a service enforces a minimum mix, generate a fresh value until it meets that rule. It helps to choose a realistic alternative, such as an actual quoted figure, a measurement in the correct unit, or another value supported by your dataset. Compare the magnitude of the difference as well as its direction. Small differences can be down to rounding. Larger differences are a reason to review whether the two scenarios started from comparable inputs.
Common questions
What should I do if I get a different answer elsewhere?
Replicate the inputs shown in the worked example first. If the result agrees there, check your own entry against the source values and compare the two methods. Pay particular attention to units, inclusions and any rounding convention. The browser draws each character using its cryptographic random source. Rejection sampling keeps accepted character positions uniformly distributed.
How much precision should I keep?
Keep source values unrounded when you can. Choose the precision you report based on the question you are answering. For example, a figure you are using in a later calculation may need more digits than a figure you are giving in a quick summary. If a policy or quote supplies a rounding rule, compare your result using that rule.
Can I reuse the result when an input changes?
Recalculate when the measurement, quote or assumption changes. Record the prior result if it was part of a decision or report. A dated record makes it possible to compare the two runs accurately and see which difference came from a new input rather than an earlier entry mistake.