๐Ÿ—๏ธ htpasswd Generator

Generate an APR1-MD5 hash (compatible with htpasswd -m) for your Apache .htpasswd file.

The result will appear here

How to use

  1. Enter a username and password.
  2. Click "Generate".
  3. Paste the result directly into your .htpasswd file.

๐ŸŽฏ Use Cases

Example

Input
Username: admin
Password: s3cret42
(salt: Xy7bQ2mZ)
Output
admin:$apr1$Xy7bQ2mZ$Po1ThYwGdFdSdS54NPlWa/

This is the APR1-MD5 hash of the password s3cret42 with salt Xy7bQ2mZ, matching the output of openssl passwd -apr1 exactly. The live tool uses a random salt each run, so its hash will differ.

FAQ

What format does this tool generate?
It generates the same APR1-MD5 format ($apr1$...) as Apache's htpasswd -m option. Modern Apache also supports bcrypt (-B), but this tool only supports APR1-MD5.
Is the password sent to a server?
No. It's computed in your browser with a self-implemented MD5 that has been verified against real openssl output.
Why does the result change every time I generate it?
Because a new random salt (8 characters) is generated each time. The hash differs for the same password when the salt differs โ€” this is expected behavior.

๐Ÿ—๏ธ Learn more: How to Create an Apache .htpasswd File for Basic Auth

Generate an APR1-MD5 hashed .htpasswd file

More Security Tools

๐Ÿ”‘
Password Generator
Generate strong random passwords
#๏ธโƒฃ
Hash Generator
Generate MD5, SHA-1, SHA-256 hashes
๐Ÿ“ฑ
QR Code Generator
Turn text/URLs into a QR code
๐Ÿ”
SSL Certificate Viewer
Check issuer, validity & SANs
๐Ÿ“œ
CSR Viewer
Check CSR subject & public key info
โ™ป๏ธ
SSL Certificate Converter
Convert PEM โ†” DER (HEX)
๐Ÿค
Cert/Key Pair Checker
Verify a certificate matches its private key
๐Ÿฉบ
SSL Checker
Check HTTPS connectivity & trust
๐Ÿช„
Self-Signed Certificate Generator
Generate a self-signed SSL cert & key
๐Ÿ”
Base64 Encode/Decode
Convert text โ†” Base64
๐Ÿ”‘
HTTP Auth Header Generator
Build Basic/Bearer Authorization headers
๐Ÿชช
JWT Decoder
Inspect JWT header/payload, verify HS256
๐ŸŽซ
Random Token Generator
Generate Hex/Base64/UUID tokens
๐Ÿ”’
Jasypt Encrypt/Decrypt
Encrypt/decrypt Spring Boot ENC(...) values