htpasswd Generator
Create a bcrypt .htpasswd line for Apache or nginx basic auth.
Using htpasswd for basic auth
A .htpasswd file holds user:hash lines that Apache or nginx use for HTTP Basic Authentication. This generator uses bcrypt (the modern, secure choice) and emits the $2y$ identifier Apache expects. Hashing happens in your browser — your password is never sent anywhere.
Related: the bcrypt generator, the Basic Auth header generator, and the password generator.
Related Cryptography & Security tools
Password Generator
Generate strong, random passwords locally.
Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes locally.
JWT Decoder
Decode JSON Web Tokens instantly and offline.
Bcrypt Generator
Generate and verify Bcrypt hashes with custom salt rounds.
MD5 Hash Generator
Generate an MD5 hash from any text.
SHA-1 Hash Generator
Generate a SHA-1 hash from any text.
SHA-256 Hash Generator
Generate a SHA-256 hash from any text.
SHA-512 Hash Generator
Generate a SHA-512 hash from any text.