Apache .htpasswd Basic Auth Generator

Generate encrypted .htpasswd basic authentication entries (Bcrypt, SHA-1, MD5).

Runs in your browser. Files never leave your device.
Credentials Config
Generated .htpasswd Line
admin:{SHA}U2VjcmV0UGFzc3dvcmQx=
Nginx / Apache Server Config Example:
# Nginx Config:
auth_basic "Restricted Area";
auth_basic_user_file /etc/nginx/.htpasswd;

# Apache .htaccess Config:
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /var/www/.htpasswd
Require valid-user

How to use Apache .htpasswd Basic Auth Generator

  1. Enter Username & Password

    Type basic auth credentials.

  2. Select Algorithm

    Choose SHA-1, Bcrypt, or MD5.

  3. Copy .htpasswd Line

    Copy string or download .htpasswd file.

Frequently asked questions

Is the password sent to any backend?

No. Password hashing runs entirely in your browser memory.

This tool runs entirely in your browser. Your files and text are processed on your device and are never uploaded to our servers.