.htpasswd Generator

Enter username and password to generate a ready-to-paste .htpasswd line.

Configure

Note: Apache md5crypt ($apr1$) requires server-side generation. Showing SHA1-based htpasswd instead.

Output

Summary

Enter username and password to generate a ready-to-paste .htpasswd line.

How it works

  1. Enter the username
  2. Enter the password
  3. Choose hash format (bcrypt recommended)
  4. Copy the generated htpasswd line

Use cases

  • Password-protecting Apache directories
  • Generating Nginx basic auth entries
  • Securing staging environments with HTTP basic auth

Frequently Asked Questions

Last updated: 2026-06-09 · Reviewed by Nham Vu