.htpasswd Generator
Enter username and password to generate a ready-to-paste .htpasswd line.
Configure
Note: Apache md5crypt ($apr1$) requires server-side generation. Showing SHA1-based htpasswd instead.
Output
Summary
Enter username and password to generate a ready-to-paste .htpasswd line.
How it works
- Enter the username
- Enter the password
- Choose hash format (bcrypt recommended)
- Copy the generated htpasswd line
Use cases
- Password-protecting Apache directories
- Generating Nginx basic auth entries
- Securing staging environments with HTTP basic auth
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu