htpasswd Generator — Create .htpasswd Entries Online

Free online htpasswd generator. Create Apache .htpasswd entries with bcrypt, APR1 MD5 or SHA1 hashes. Perfect for HTTP basic auth.
Credentials

Hashes are generated locally in your browser; your password is never uploaded to our server.

About htpasswd

bcrypt is recommended by Apache—slow, salted, and resistant to brute force.

APR1 is Apache's MD5 variant. Faster but less secure than bcrypt.

SHA1 is provided for legacy systems only. Avoid it for new setups.

.htpasswd line
Enter a username and password to generate the htpasswd line.
Paste this line into your .htpasswd file.
Tool Introduction

This free online htpasswd generator produces valid lines for Apache's .htpasswd file, used to password-protect directories with HTTP basic authentication.

Choose bcrypt for new projects, APR1 for compatibility with older Apache setups, or SHA1 when you must support legacy systems. All hashing runs locally in your browser—your password never leaves the page.