What is pwgen?
pwgen is made by Theodore Ts'o. Command-line utility for generating human-memorable (pronounceable) or fully random passwords, with controls over length, quantity, and inclusion/exclusion of character classes for use interactively or in scripts.
What pwgen does
Command-line utility for generating human-memorable (pronounceable) or fully random passwords, with controls over length, quantity, and inclusion/exclusion of character classes for use interactively or in scripts.
- Generates passwords designed to be easily memorized by humans (pronounceable mode)
- Secure mode to generate completely random, hard-to-memorize passwords (-s, --secure)
- Can require at least one special character (-y, --symbols)
- Options to control inclusion of numerals and capitalization (e.g., --no-numerals, --no-capitalize, --numerals, --capitalize)
- Can generate multiple passwords at once and format output (e.g., one per line or columns via -1 and -C; quantity via -N)
- Option to avoid ambiguous characters that are easily confused when printed (-B, --ambiguous)
Category: Password Management Tools. pwgen is open source and free to use.
What teams use it for
- Generating initial passwords for new local user accounts during provisioning
- Producing random machine passwords or secrets for scripts and automation (secure mode)
- Creating more memorable passwords for human use where offline brute-force resistance is not the primary risk
- Generating passwords that must include specific character types (e.g., symbols, numerals, capitalization)
What it overlaps with
These tools do similar work and turn up in the same large estates. Owning more than one is common, and it is often where the savings are.
Questions buyers ask
What does pwgen do?
Command-line utility for generating human-memorable (pronounceable) or fully random passwords, with controls over length, quantity, and inclusion/exclusion of character classes for use interactively or in scripts.
How common is pwgen in large enterprises?
Samplify finds pwgen in about 1 in 10 of the large enterprise software estates it has analysed.
Is pwgen free?
pwgen is open source and free to use.
What can replace pwgen?
Other tools in the same category include KeePass Password Safe, 1Password, KeePassXC, Bitwarden.
Do we already own something that does what pwgen does?
Often, yes. Large estates commonly hold several tools that overlap. Samplify compares every tool you own at feature level, across every category, and decides which one stays.
Paying twice for the same job?
Most large estates own several tools that do the same thing, often without anyone knowing. Samplify compares every tool you own at feature level and decides which one stays, with the evidence attached.
Where this comes from
Samplify's software catalogue and the large enterprise estates it has analysed, as at 2 Dec 2026. Features and use cases are Samplify's own reading of the product. Check anything important with Theodore Ts'o.