htpasswd Generator — free online tool

You want to lock a folder on your Apache web server with a password, and you need that special .htpasswd line. Writing it by hand means hashing the password the right way, and one wrong character locks you out. We added a free tool that does it for you — htpasswd Generator — right in your browser.

What it does

You type a username and a password, and it builds the matching .htpasswd line for you. You can choose how the password is hashed: bcrypt ($2y$) or Apache MD5. Copy the line, drop it into your .htpasswd file, and the protected folder is ready.

Nothing leaves your device

The whole thing runs inside your browser. Your username and password are never uploaded and never saved anywhere. When you close the tab, nothing is left behind — the line you made is yours alone.

How to use it

  1. Open htpasswd Generator and type the username and password you want.
  2. Pick the hash type: bcrypt or Apache MD5.
  3. Copy the finished line and paste it into your .htpasswd file.

It's free with no limit. There are more small tools on the Apps page.

Get new posts

Soon you'll be able to drop your email and get new posts — no account, no spam.

Email sign-up isn't live yet — nothing is collected for now.