bcrypt entry (recommended)
Input: Username: admin, Password: s3cret!, Format: bcrypt (cost 12)
Output: admin:$2y$12$Ej3oV8rB2qXkWzP1fN7sBuqLk9.FtQv6Hh3dM8nC2ePr0uV5zKjS6
500+ fast, free tools. Most run in your browser only; Image & PDF tools upload files to the backend when you run them.
Generate bcrypt, MD5-APR, or SHA1 htpasswd entries for HTTP Basic Authentication, compatible with Apache and Nginx.
The htpasswd Generator creates password hash entries in the format used by Apache's htpasswd utility and Nginx for HTTP Basic Authentication. You can generate entries using bcrypt (most secure, recommended for Nginx auth_basic and modern Apache), MD5-APR ($apr1$ format, traditional Apache), or SHA1 (legacy). Enter a username and password and the tool produces a correctly formatted username:hash line ready to paste into your .htpasswd file. bcrypt hashing runs in the browser using a JavaScript implementation — your credentials are never transmitted to any server. The tool also lets you choose the bcrypt cost factor between 4 and 14, so you can balance generation speed against brute-force resistance for your environment.
Input: Username: admin, Password: s3cret!, Format: bcrypt (cost 12)
Output: admin:$2y$12$Ej3oV8rB2qXkWzP1fN7sBuqLk9.FtQv6Hh3dM8nC2ePr0uV5zKjS6
Input: Username: admin, Password: s3cret!, Format: MD5-APR1
Output: admin:$apr1$Mb4xqRfL$cQ7dN8/jK1pV2zX9oY3hL0
Input: Username: admin, Password: s3cret!, Format: SHA-1
Output: admin:{SHA}n8vLmTOI2Gz5ZOrB6Z8OV9MoRiU=
Input: Run twice for admin and editor accounts
Output: admin:$2y$12$... editor:$2y$12$...