Htpasswd Generator
Generate one htpasswd line for a .htpasswd Basic Auth file from a username and password.
Htpasswd Generator htpasswd generator workspace
Generated htpasswd entry
How to use
- 1 Choose the {SHA} or {PLAIN} generation format. bcrypt and APR1-MD5 are shown only as support-limited choices.
- 2 Enter the username and password.
- 3 Generate the htpasswd entry and copy the result into your .htpasswd file.
- 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
Htpasswd GeneratorCreate a username:{SHA} or username:{PLAIN} entry in the browser and check server compatibility before using it.
→
Chmod CalculatorWhen placing the auth file, review the mode so read access is not broader than intended.
→
CIDR CalculatorIf needed, pair authentication with calculated IP ranges to narrow the access scope.