htpasswd Generator

Create Apache .htpasswd lines for HTTP basic authentication, using the Apache MD5 ($apr1$) or SHA-1 format.

Processed on your device. Files are not uploaded

How to make a .htpasswd file

  1. Enter the logins

    One per line as user:password.

  2. Choose the format

    Apache MD5 is the usual.

  3. Save the result

    Copy it into a file named .htpasswd.

When to use htpasswd Generator

You want to put HTTP basic authentication on a staging site or an admin folder served by Apache.

You need several user lines for an .htpasswd file without running the htpasswd command.

Tips for a better htpasswd Generator result

Enter one user:password per line, choose Apache MD5, and save the result in a file named .htpasswd.

Keep the file outside the web folder if you can, and point AuthUserFile at it.

htpasswd Generator: limits and what to check

Each user gets a fresh random salt, so the same password produces different lines.

Apache MD5 is only moderate in strength. bcrypt is stronger and can be made with the htpasswd tool on your server.

About htpasswd Generator

Create the password lines for Apache HTTP basic authentication. Each user gets a fresh random salt. The Apache MD5 ($apr1$) format works on every Apache server, and SHA-1 is offered for old systems.

FAQs

Where do I put the file?

Outside the web folder if you can, and point AuthUserFile at it in your Apache config or .htaccess.

Is the password sent anywhere?

No. Hashing runs in your browser.

Is $apr1$ strong?

It is moderate. bcrypt is stronger and can be made with the htpasswd tool on your server.

Related tools