Desert Forge IT — Arizona IT · Field-tested tools & guidesFree consult →

htpasswd Generator

Create Apache htpasswd entries entirely in your browser. Nothing is sent anywhere.

This tool uses Apache's {SHA} format (SHA-1 + Base64). bcrypt and APR1-MD5 require server-side tooling for proper salting; use htpasswd -B on your server when possible.
Output (paste into .htpasswd)

    
Disclaimer: hashing happens locally in your browser via Web Crypto. Your password is never transmitted.

Apache config example

<Directory "/var/www/private">
  AuthType Basic
  AuthName "Restricted"
  AuthUserFile /etc/apache2/.htpasswd
  Require valid-user
</Directory>

How to use

Type a username and password and click Generate. The tool produces an entry in Apache's {SHA} format which is supported natively by mod_authn_file. Copy the line and add it to your .htpasswd file. For higher security, prefer running htpasswd -B directly on your server to use bcrypt.

Related Tools