Password Generator
Generate strong random passwords with a configurable character set
What is Password Generator?
A random password generator uses the browser's cryptographically secure random source to build a password of the length and character set you specify, can exclude visually ambiguous characters, and rates its strength instantly. The password exists only in this page's memory, and is never logged or uploaded.
How to use Password Generator
- 1Drag the slider to set the length; 16 characters is a sensible minimum.
- 2Tick the character classes you need: uppercase, lowercase, digits, symbols.
- 3If the password has to be written down by hand, enable "exclude ambiguous characters" to drop O/0, l/1, and the like.
- 4Copy the password and save it into your password manager immediately.
How do I do this in code?
Use the tool above for one-off work; for anything you repeat, move it into a script or your project.
const pick = (alphabet, length) => {
const bytes = new Uint32Array(length);
crypto.getRandomValues(bytes);
return [...bytes].map((n) => alphabet[n % alphabet.length]).join('');
};Frequently asked questions
How long does a password need to be to count as secure?+
With uppercase, lowercase, digits, and symbols in the mix, 16 characters already resists offline brute force, and 20 or more is advisable for accounts tied to money or administrative access. Length contributes more to strength than character variety, so adding characters beats forcing in extra symbols.
Does the server ever see the generated password?+
No. Generation uses the browser's local crypto.getRandomValues, the page has no upload logic at all, and the password is never written to localStorage or cookies. You can confirm in the Network panel that no request carries it.
Why exclude ambiguous characters?+
When a password has to be transcribed by hand or read aloud, O versus 0, l versus 1, and I versus | are easy to confuse and lead to failed logins. Excluding them shrinks the character space slightly, but the effect is negligible for passwords of 16 characters or more.
Related tools
All toolsUUID Generator
Generate UUID v4 or v7 in bulk, with optional hyphen removal
ULID Generator
Generate ULIDs and decode the timestamp embedded in each one
NanoID Generator
Generate NanoIDs at an adjustable length
ObjectId Generator
Generate ObjectIds and decode their timestamps
Random String Generator
Generate random strings in bulk from a character set of your choice
Lorem Ipsum Generator
Generate Latin or Chinese placeholder text by paragraph or sentence