FreeDev Tools

Htpasswd Generator

Generate bcrypt .htpasswd entries for Apache and nginx basic authentication.

Runs locally in your browser. Your input is not uploaded.

How to Use

  1. 1

    Enter credentials

    One user:password pair per line.

  2. 2

    Set the bcrypt cost

    10 is the sensible default; 12+ for higher security.

  3. 3

    Save as .htpasswd

    Copy the entries into the file your server config points to.

Frequently Asked Questions

The password file Apache (and nginx via auth_basic_user_file) reads for HTTP Basic authentication — one user:hashed-password entry per line. This tool generates entries using bcrypt, the strongest scheme htpasswd supports.