Basic auth header generator
Build or decode an HTTP Basic Authorization header from a username and password.
Basic auth header generator
Type a username and password as "username:password" and this tool builds the matching HTTP Basic Authorization header — the credentials joined with a colon and Base64-encoded, wrapped in "Authorization: Basic …". It is a common step when testing an API with curl, wiring up a quick script against a legacy endpoint, or checking that a client is sending the header your server expects.
Switch direction to decode and paste a header back the other way: a full "Authorization: Basic …" line, just the "Basic …" value, or the bare Base64 string all work, since the "Authorization:" and "Basic" prefixes are recognised and stripped automatically. The output option chooses whether you get the complete header line, ready to paste into a request, or only the Base64 value on its own. Turn on the curl example to also see a ready-to-run "curl -H" command using the exact header just built, so you can copy it straight into a terminal.
Basic Auth is not encryption — it is a reversible encoding, and anyone who can read the header can recover the password in one step. The tool repeats that as a standing reminder under every result: always send it over HTTPS, never plain HTTP, or the credentials travel across the network as readable text in all but name.
Everything runs locally in your browser: the username, password and any header you paste are never uploaded anywhere, so it is safe to use with real staging or production credentials while debugging. Copy the result, download it as a .txt file, or send it straight into another tool to keep working.