Htpasswd Generator
Generate bcrypt .htpasswd entries for Apache and nginx basic authentication.
Runs locally in your browser. Your input is not uploaded.
How to Use
- 1
Enter credentials
One user:password pair per line.
- 2
Set the bcrypt cost
10 is the sensible default; 12+ for higher security.
- 3
Save as .htpasswd
Copy the entries into the file your server config points to.
Frequently Asked Questions
- The password file Apache (and nginx via auth_basic_user_file) reads for HTTP Basic authentication — one user:hashed-password entry per line. This tool generates entries using bcrypt, the strongest scheme htpasswd supports.
Related Tools
Password Strength CheckerCheck password strength and crack time estimateAES EncryptionEncrypt and decrypt text with AES-256 in your browserTOTP / 2FA GeneratorGenerate TOTP codes from a secret key (Google Authenticator compatible)SHA-256 GeneratorGenerate SHA-256 hashes from any textMD5 GeneratorGenerate MD5 hashes for checksums and fingerprintingSalt GeneratorGenerate cryptographic salt values for password hashingJWT BuilderBuild and sign JWT tokens with a custom payload and secretXOR CipherEncrypt or decrypt text with a XOR key