Cuvel.

Htpasswd Generator

Share this page

Htpasswd Generator

Only the page title and URL are shared. Your inputs and results are excluded.

Generate .htpasswd entries in multiple formats.

Format
Username
Password
.htpasswd entry

crypt format output: username:abcdefghijklm

Use this when you want old-style short hashes similar to older online .htpasswd generators. Compatibility depends on the server still supporting traditional crypt.

How to use

  1. 1. Choose the output format that matches your server or existing .htpasswd file.
  2. 2. Enter a username and password, then click Generate to create one .htpasswd line.
  3. 3. Copy the generated line and save it in a .htpasswd file on the server.

.htaccess example

A typical Apache Basic Auth configuration looks like this. Adjust the path to your actual .htpasswd location.

Setup notes

  • Store the .htpasswd file outside the public web root when possible.
  • Use the same hash format your server already supports.
  • If authentication does not work, check file paths, permissions, and server module support.
How to use & examples
Create a .htpasswd line by entering a username and password, then choose the format that matches your server. You can generate classic crypt output like older tools, Apache APR1-MD5, or bcrypt for newer setups.
FAQ

How do you generate a .htpasswd entry online?

Enter a username and password, then choose crypt, APR1-MD5, or bcrypt to generate a .htpasswd line directly in the browser.

Can you paste this output directly into a .htpasswd file?

Yes. The tool outputs a single username:hash entry, so you can paste it into a compatible .htpasswd file as one line.

What format does this .htpasswd generator use?

It supports multiple formats: old-style crypt, Apache APR1-MD5, and bcrypt. Choose the one that matches your server or existing file.