htpasswd generator
Type a username and password, pick a hashing algorithm, and copy the user:hash line for your Apache .htpasswd file. Hashing happens in your browser — your password is never uploaded.
Username
Password
Hashing algorithm
bcrypt cost10
Work factor (4–16). Higher = slower & stronger. 10–12 is typical.
Your .htpasswd line
Append this line to your .htpasswd file (one user per line), e.g.:
Everything runs in your browser. No upload, no sign-up.
How it works
STEP 1
Enter user & password
Type the username and the password you want to protect a folder or site with. Both stay on your device.
STEP 2
Pick an algorithm
Choose bcrypt (recommended), Apache MD5 (APR1) or SHA-1. A fresh random salt is generated for bcrypt and APR1.
STEP 3
Copy the line
Copy the user:hash line and append it to your .htpasswd file. One line per user — nothing leaves your browser.