Free htpasswd generator

Create a line for an .htpasswd file to password-protect a folder on Apache or nginx.

Runs in your browser. Nothing you type is sent to us · free, no sign-up

htpasswd generator

Loading the tool

Need a hand?

Stuck? Ask an engineer.

Talk to an engineer
Prefer to call?

071 577 0488, any hour, in Sinhala or English.

How to read the result

Enter a username and password and the generator creates a line for an .htpasswd file, used to password-protect a folder with Apache basic authentication or nginx auth_basic. APR1-MD5 is Apache's default format.

Questions people ask

Where do I put the .htpasswd file?

Outside the public web folder if you can, then point AuthUserFile (Apache) or auth_basic_user_file (nginx) to it.

Is the password sent to you?

No. The line is created in your browser.

Is this tool free?

Yes, free with no sign-up, and it runs entirely in your browser.