Hash & checksum · Apache htpasswd

Apache htpasswd generator

Generate one bcrypt entry for an Apache password file. Save a single password line in a plain text file; the file's base name supplies the username. The download contains a username followed by a bcrypt record, not a server configuration.

Ready◎ This file never leaves your device⌁ .txt · text/plain
Processing locallyThis file never leaves your device

Working with several files? Add the files you need, then keep this tab open until processing finishes. Large batches use more device memory.

Drag and drop files here

Supported files: .txt, text/plain

1Choose your file→2Set the result→3Convert and download

Local workflow

How it works

01

Choose your file

Pick a supported file from your device or drop it into the tool.

02

Set the result

Choose the output, quality, or size options that matter for this job.

03

Convert and download

Your browser processes the file locally and prepares a fresh download.

Tool-specific guide · Reviewed October 18, 2026

01

Prepare the username intentionally

For a disposable test, name the input reviewer.txt and use a made-up test password. The generated line starts with reviewer followed by a colon. Only letters, digits, periods, underscores, and hyphens are retained from the base name, so inspect the result if your filename contains spaces or other characters.

02

Recognize the generated record

The implementation uses a random salt, cost factor 10, and an Apache-style $2y$ bcrypt prefix. Repeating the conversion with the same password normally produces a different record because the salt changes. Keep the input to one line: this tool removes one trailing newline, but it is not an importer for a list of accounts.

03

Verify in the actual authentication setup

Add the record through your normal server administration workflow, then test the intended user with the correct and an incorrect password. The generator does not enable authentication on a directory or configure Apache directives. Apache's documentation also advises keeping password files outside the area that visitors can fetch through the web server.

Help

Frequently asked questions

Why is a long password rejected?+

This implementation rejects input above bcrypt's 72-byte limit. Bytes are not the same as characters: a non-ASCII character can occupy several UTF-8 bytes. Shorten a test input without assuming that a character count alone is sufficient.

Format references