SecurityTool 12
Basic Auth Header Generator
Get the exact Authorization header an API client or curl command needs.
Basic Auth Header Generator
168 / 232Result
WaitingRun the tool and the result appears here. Copy it or download it — nothing leaves this tab.
Privacy
Everything you type stays in this tab and is processed by JavaScript on your device. Nothing is uploaded, logged or stored on a server.
How to use it
Add username and password in the field above. Nothing is uploaded while you type.
Press “Build header”. The auth header appears in the result panel instantly.
Copy the auth header or download the file, then close the tab.
When to use it
API testing
Paste a ready header into a REST client during development.
Documentation
Show a concrete example without exposing a real account.
Debugging
Decode or compare a header against known credentials.
Questions
Is Basic auth encrypted?
No. Base64 is encoding, not encryption. Use it only over HTTPS and never in a public URL.
Where is the colon?
The token is username, a colon, then the password. A missing username produces an invalid header.
Does this tool upload my data?
No. Everything runs in this browser tab with JavaScript, so username and password never leaves your device.
Can I put the credentials in the URL instead of a header?
Browsers still accept https://user:pass@host, but the credentials end up in history, logs and referrer strings. A header keeps them out of the URL, and HTTPS is still required because Basic auth encodes the pair without encrypting it.
How do I test the header with curl?
Pass it as a header: curl -H "Authorization: Basic ..." https://api.example.com. The generator produces the value for you, including the space after the colon, so the header is copied correctly.