Apache .htpasswd Generator
Generate a bcrypt or legacy SHA-1 password file entry locally.
htpasswd-generatorLOCAL WORKSPACE
Enabling local controls…
Settings
Inputs stay in this page’s memory. Export only what you choose to copy or download.
References checked on 2026-11-21 · Apache HTTP Server · Password Formats · htpasswd Generator · .htpasswd Generator
Result
Run the tool to see the result.
How to use this tool
Enter a username and test password, choose a format, then copy or download the entry.
When not to use it
Use bcrypt with cost 4–14 and a username up to 193 UTF-8 bytes. Use unsalted SHA-1 only for legacy compatibility; its username limit is 220 UTF-8 bytes.