Htpasswd Generator
Generate .htpasswd lines using SHA-1 or plain text.
Credentials
Generated .htpasswd lines
SHA-1 format ({SHA} — supported by Apache & Nginx)
Plain text (for reference only — never deploy this)
{SHA} is a fast, unsalted hash — fine for quick internal use but weak against offline cracking. For production basic-auth files prefer bcrypt (htpasswd -B), which isn't available via Web Crypto and must be generated with the Apache htpasswd CLI or an equivalent bcrypt library.
About the Htpasswd Generator
Create .htpasswd entries for HTTP Basic Authentication using the Web Crypto SHA-1 digest format supported by Apache and Nginx, plus a plain-text reference line. Bcrypt output isn't available via Web Crypto — use the Apache htpasswd CLI for production-grade hashing.
Examples
Generate a line
admin / hunter2Output
admin:{SHA}bNsgu5C8...Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
JWT Inspector
Security
Decode a JWT and audit its claims for common issues.
Password Policy Generator
Security
Generate password policy rules, regex and copy for NIST or PCI presets.
Password Strength Checker
Security
Estimate password entropy, crack time, and get actionable advice.
TOTP Generator
Security
Generate time-based one-time passcodes from a Base32 secret.
CORS Config Generator
Security
Generate CORS headers/config for Nginx, Apache, Express, or Workers.
CSP Builder
Security
Build a Content-Security-Policy header from per-directive sources.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser