Start a project

Tool 406 of 425 · Web servers

htpasswd Generator

Creates an htpasswd entry and the Apache and nginx config for basic authentication.

htpasswd Generator

Your input

Result

htpasswd line
Server config

    01

    What it does

    Creates an htpasswd entry and the Apache and nginx config for basic authentication.

    • APR1-MD5 (Apache default)
    • SHA-1 option
    • Custom or random salt
    • Apache and nginx snippets

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    htpasswd line and config, with a Copy and a Download button on every result.

    • htpasswd
    • Basic auth
    • nginx

    Why it matters

    Protecting a staging site or admin folder with basic auth is quick, but you need a hashed password file.

    Hashing runs locally; for bcrypt run htpasswd -B on the server.

    How to use it

    1. Type or paste your input; the example shows the format.
    2. Press Generate. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. Copy or download what you need. Nothing leaves this page.

    FAQ

    Is basic auth secure?

    Only over HTTPS, and only for low-risk areas like staging.

    Does nginx support APR1?

    Yes, nginx reads APR1, SHA and crypt hashes.

    Is my input uploaded?

    No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.

    Can I rely on the result?

    It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk