Skip to content
LovelyTools
EN

htpasswd Generator

Create .htpasswd entries with APR1-MD5 or SHA-1 hashes.

Processed locally on your device — nothing is uploaded.

About the htpasswd Generator

Basic authentication in Apache and Nginx reads users from a .htpasswd file. Enter username:password pairs, one per line, and get hashed lines ready to paste: APR1-MD5 with a random salt (the Apache htpasswd default, also understood by Nginx) or the older {SHA} format.

Hashing happens in your browser, so passwords never reach a server. Results match openssl passwd -apr1.

How to use the htpasswd Generator

  1. Enter username:password lines.
  2. Choose the hash type.
  3. Paste the lines into your .htpasswd file.

Features

  • Batch files: run the tool on up to 200 files with the same settings and download every result as one ZIP
  • APR1-MD5 with random salt
  • {SHA} option
  • Several users at once
  • Runs locally

Supported formats

  • Plain text

Frequently asked questions

Is this secure enough?

Basic auth is fine over HTTPS for simple protection. Where supported, bcrypt (htpasswd -B) is stronger.

Is my text sent anywhere?

No. Everything runs in your browser, so nothing you paste is uploaded or stored.