Htpasswd Generator

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

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...

Related tools

Frequently asked questions

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