Category: Developer tools
Basic Auth Header Generator
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
- Enter the username and password.
- Copy the generated Authorization header.
- 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.