htpasswd Generator

Make a user name and password for basic auth, and get the line and the config to paste into your server. Runs in your browser: the password is not sent anywhere and not saved.

1. User and password

2. Server config

Which hash works where

Tested 2026-11-22 with Apache 2.4.71, nginx (official images on Debian 13 and Alpine 3.24), Caddy 2.10 and Traefik 3.6. nginx and the Kubernetes ingress-nginx controller read bcrypt and SHA-crypt through the system's crypt(), so they depend on the system library.

3. Check a password against a hash

One password and one hash at a time, checked on this computer. Paste a hash, or one user:hash line from a file.

Also in the dev tools: bcrypt hash generator · htpasswd line (both also in pipelines and over MCP) · hash checker.
bcrypt by bcryptjs (BSD-3-Clause). Page views are counted for analytics; nothing you type is. Asra by Bitgeek Technologies · bitgeek.dev