16

…

—

Generated entirely in your browser with the Web Crypto API (crypto.getRandomValues) — nothing is sent to any server, and nothing is stored. Around 80+ bits of entropy is comfortably strong for anything you self-host; length matters more than symbols, so when in doubt, slide it right.

How password entropy works

Password strength is measured in bits of entropy: length × log2(pool_size). Using lowercase, uppercase, and digits gives a character pool of 62 (~5.95 bits per character), while adding symbols pushes it to ~6.5 bits per character. At 16 characters you exceed 95 bits of entropy; at 24 characters you pass 140 bits—far beyond realistic brute-force cracking.

This tool relies strictly on your browser's built-in window.crypto.getRandomValues() CSPRNG rather than Math.random(), so passwords are generated cryptographically locally in memory and never touch any network request.

Step-by-step example: creating a safe PostgreSQL password for a .env file

You are deploying Immich or Nextcloud and need a rock-solid DB_PASSWORD inside Docker Compose without characters that accidentally trigger variable expansion.

  1. Drag the length slider to 24 characters.
  2. Enable uppercase, lowercase, and numbers, and uncheck symbols (avoiding $ or quotes that Compose .env parsers try to expand).
  3. Verify the entropy score sits well above 128 bits, then click copy and paste straight into .env and your password manager.

Result: A 24-character alphanumeric secret delivers roughly 142 bits of entropy—cryptographically unguessable and 100% immune to shell or Docker Compose parsing bugs.

Frequently Asked Questions

Is it truly safe to generate server passwords in a web browser?

Yes, when generation happens strictly client-side via Web Crypto API. You can even disconnect from WiFi after loading this page and click Generate—nothing leaves your device.

What entropy score is enough for a homelab database or admin login?

Aim for at least 80–100 bits (14–16 random characters) for web logins, and 128+ bits (22–24 characters) for database secrets, API keys, or LUKS disk encryption passphrases.

Why do symbols like $ sometimes break Docker Compose .env files?

Docker Compose interprets $VAR inside .env files as variable substitution unless escaped as $$. Using 24+ alphanumeric characters removes that headache completely while keeping strength higher than short symbol passwords.