APACHE · NGINX · BASIC AUTH

.htpasswd Generator

Generate secure password hashes for .htpasswd files. Supports bcrypt, MD5, SHA‑1, and crypt. 100% private, right in your browser.

lockGenerate .htpasswd Entry

admin:$2y$10$...

lock All hashing is performed locally in your browser. Your password never leaves your device.

verified_user

100% Private & Secure: Password hashing is performed entirely in your browser using CryptoJS and bcryptjs. No data is ever sent to a server.

Frequently Asked Questions

What is a .htpasswd file?
.htpasswd is a flat file used by Apache and Nginx to store usernames and password hashes for HTTP Basic Authentication. Each line contains a username and a hashed password.
Which algorithm should I choose?
bcrypt is the most secure and recommended for modern Apache and Nginx installations. MD5 ($apr1$) is widely compatible. SHA‑1 and crypt are legacy options.
How do I use the generated entry?
Copy the line and append it to your .htpasswd file. If the file doesn't exist, create it. Then configure your web server to use this file for authentication.

Explore Other Developer Tools

link

URL Encoder/Decoder

Encode and decode URLs safely.

Try Tool
code

JSON Formatter

Pretty print and validate JSON.

Try Tool
key

Base64 Encoder

Encode and decode Base64 strings.

Try Tool