.htpasswd Generator

// Generate .htpasswd entries for Apache basic auth

#About .htpasswd Generator

Free online .htpasswd generator. Create Apache basic authentication password entries with SHA-256 or SHA-1 hashing. This tool runs entirely in your browser — your data is never sent to a server. Just paste your input, get instant results, and copy with one click. No sign-up or installation required.

#FAQ

What is a .htpasswd file?
A .htpasswd file stores usernames and hashed passwords for Apache HTTP Server basic authentication. Each line contains a username and password hash separated by a colon. The file is referenced by the AuthUserFile directive in your Apache configuration.
Which hashing algorithm should I use for .htpasswd?
SHA-256 is recommended for better security. SHA-1 is supported for compatibility with older systems. Avoid plaintext or MD5-based schemes as they are considered insecure. For production use, bcrypt (via the htpasswd command-line tool) is the strongest option.
</> Embed this tool

Copy this code to embed the tool on your website. Adjust the height to fit your layout.

<iframe src="https://www.browserutils.dev/embed/htpasswd-generator" width="100%" height="500" frameborder="0" title=".htpasswd Generator"></iframe>

#Related