htpasswd Generator

Generate Apache and Nginx .htpasswd credentials with APR1 (MD5), SHA-1, or plaintext. Salted, standards compliant, and computed entirely in your browser with no upload.

htpasswd Generator

Create Apache and Nginx .htpasswd credentials in your browser

Apache MD5 ($apr1$). Salted and portable, the recommended default for Apache and Nginx.

Enter a username and password to generate the credential line

Everything is computed locally with no network request. APR1 (MD5) is the most portable format and works with Apache and Nginx out of the box. Append one line per user to your .htpasswd file.

What is an htpasswd Generator?

An htpasswd generator creates the user:hash lines used by Apache and Nginx for HTTP Basic Authentication. The .htpasswd file protects a directory or endpoint behind a username and password without a database.

CodeHelper's htpasswd Generator supports the APR1 (Apache MD5) format, which is salted and the most portable choice, plus SHA-1 and plaintext. The APR1 implementation produces output identical to the htpasswd and openssl passwd -apr1 commands, and everything is computed in your browser so the password is never transmitted.

Key Features

  • APR1 (MD5): salted Apache MD5, works with Apache and Nginx out of the box.
  • SHA-1: base64 {SHA} format for compatibility.
  • Random salt: generated with the browser crypto API, regenerate any time.
  • Copy or download: get a ready to paste line or a .htpasswd file.
  • Private: no network request, the credential is built locally.

How to use the htpasswd Generator

  1. Enter the username and password.
  2. Choose APR1, SHA-1, or plaintext.
  3. Copy the line into your .htpasswd file, one line per user.

Use it to protect staging environments, admin panels, and internal tools with Apache or Nginx Basic Auth.

Free forever, no ads, no tracking. Support the project