htpasswd generator
Adds/removes in-memory and prints text only
Action
Print only (echo valid lines)
Add / Replace user
Delete user
Algorithm
bcrypt (Apache 2.4+)
apr1 (MD5, legacy)
Username
Password (only for add)
Current .htpasswd content (optional)
When adding, the same username is replaced. When deleting, matching user is removed. Non-entry lines (comments/errors) are ignored server-side.
Run
Clear
Result appears below. You can copy & paste it back to your file.
Result (text output)