Htpasswd Generator

Generate Apache .htpasswd password hashes online. Enter username and password to produce an MD5 or bcrypt htpasswd hash for basic HTTP authentication.

Used 12.2K times today

This tool generates htpasswd-format entries for testing. For production use, generate hashes server-side with Apache's htpasswd utility or a proper bcrypt library. All computation happens in your browser.

How to Use Htpasswd Generator

  1. 1

    Enter username and password

    Type the username and the password you want to hash.

  2. 2

    Select hash algorithm

    Choose MD5 (APR1) for broad compatibility or bcrypt for stronger security.

  3. 3

    Copy the htpasswd entry

    Copy the generated user:hash line and add it to your .htpasswd file.

Frequently Asked Questions

Which hash format is more secure?
Bcrypt is significantly more secure than MD5/APR1 and is the recommended choice for new setups.
Is my password sent to a server?
No. All hashing is performed in your browser using JavaScript. Your credentials are never transmitted.

Embed This Tool

Add this tool to your website for free. Just copy and paste the code below:

<iframe src="https://utilko.com/embed/htpasswd-generator/" width="100%" height="500" frameborder="0" title="Htpasswd Generator"></iframe>

About Htpasswd Generator

The Htpasswd Generator on Utilko creates properly formatted Apache .htpasswd entries for HTTP basic authentication — choose MD5 or bcrypt hashing, all computed client-side for privacy.

More Category Tools