Basic Auth generator
Generate the HTTP Authorization: Basic header from a username and password.
🔒 100% client-side — no data sent
HTTP Basic Auth header generator that builds the Authorization: Basic header from a username and password, Base64-encoded. Great for testing an API with curl, Postman or your own requests, with encoding done locally in the browser so your credentials never leave your machine.
FAQ
How does HTTP Basic authentication work?
The client sends an Authorization: Basic header followed by the username:password string encoded in Base64, which the server decodes to verify access.
How do I generate the Authorization Basic header?
Enter the username and password; the tool joins them as user:password, Base64-encodes the result and shows the full header value ready to paste into your requests.
Is Base64 secure for passwords?
No, Base64 is reversible encoding, not encryption. Basic Auth must always be used over HTTPS to protect credentials in transit.
How do I use Basic Auth with curl?
You can pass the generated header via -H "Authorization: Basic ...", or let curl build it for you with the -u user:password option.