Htpasswd Generator

Generate .htpasswd lines using SHA-1 or plain text.

Support
Works Offline
Privacy First
No Login
No API

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 / hunter2

Output

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

Frequently asked questions

Comments

No login needed. Comments appear after a quick review.

Protected by an on-site captcha — no third-party trackers.

Optional: get an alert when your comment is published or replied to, plus new tool announcements. No sign-up.

Loading comments…

Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser