Category: Developer tools

Basic Auth Header Generator

System ideaMissing a tool?

Turn a username and password into an Authorization header

Enter a username and password and get the Authorization: Basic header HTTP Basic authentication expects, base64-encoded in your browser and never sent anywhere.

Output
Authorization: Basic Og==

Everything on this page is processed in your browser. Nothing is uploaded.

What this tool does

HTTP Basic authentication sends credentials as base64(username:password) inside an Authorization header — encoded, not encrypted, so it only offers real protection over HTTPS. This tool builds that header locally so you can paste it into curl, Postman or a request library without hand-encoding the pair yourself.

How to use it

  1. Enter the username and password.
  2. Copy the generated Authorization header.
  3. Paste it into your request tool or code.

Privacy

This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.

Frequently asked questions

Are my credentials sent anywhere?
No. The header is built with JavaScript running in the page; nothing is transmitted or stored.
Is base64 the same as encryption?
No. Base64 is reversible by anyone, so Basic auth only protects credentials in transit when the request itself is sent over HTTPS.
What if my username or password contains a colon?
A colon in the password is fine, since only the first colon separates the two parts. A colon in the username is ambiguous per the HTTP Basic spec and best avoided.