Htpasswd Generator

Generate one htpasswd line for a .htpasswd Basic Auth file from a username and password.

⌘ Runs in browser ◴ No data stored ⌁ Free

Htpasswd Generator htpasswd generator workspace

Generated htpasswd entry

How to use

  1. 1 Choose the {SHA} or {PLAIN} generation format. bcrypt and APR1-MD5 are shown only as support-limited choices.
  2. 2 Enter the username and password.
  3. 3 Generate the htpasswd entry and copy the result into your .htpasswd file.
  4. 4 Confirm whether {SHA} is acceptable for your server because it is a legacy compatibility format.

Common use cases

  • Basic Auth .htpasswd user entries
  • Legacy Apache-compatible {SHA} entries
  • Test-only {PLAIN} entries

Frequently asked questions

Which htpasswd formats can I create?

This browser-only htpasswd generator creates {SHA} SHA-1 Base64 entries and {PLAIN} plain text entries. It does not generate bcrypt or APR1-MD5.

Can I copy the generated entry?

Yes. You can copy the username:hash value from the result field and clear the input or output fields separately.

What should I watch out for?

Usernames cannot contain a colon. {SHA} is a legacy compatibility format and is not recommended for strong password storage. htpasswd format support differs by server environment, so check compatibility before applying the result.

Related workflow