What is Basic Auth Header Generator?
Basic Auth Header Generator builds an HTTP Basic Authorization header from a username and password, or decodes one back. A username cannot contain a colon. Text is encoded as UTF-8, which is what current servers expect. Use test credentials, not real passwords you reuse elsewhere.
How It Works
- Enter a username and password, or an Authorization header or Base64 string to decode in the input fields on this page.
- Press the button to run Basic Auth Header Generator.
- Read the header, the Base64 value and a curl command in the result area, and copy or download it.
Common Uses
- Testing an API from curl or a REST client.
- Checking what credentials a header contains.
- Debugging a 401 error.
Good to Know
Basic auth only encodes, it does not encrypt. Always use it over HTTPS.
How it works
Enter a username and password to get the Authorization header, the Base64 value and a curl command. Switch to decode mode to paste a header, a Basic value or a Base64 string and see the username and password.
Worked example
Encoding and decoding were compared with Python base64 on 120 random credentials (symbols, colons in passwords, accents, emoji, empty parts) in four paste forms, including URL-safe Base64. The curl command was parsed back with shlex.
Limits
Basic authentication is encoding, not encryption, so use HTTPS. A username cannot contain a colon, because the first colon separates it from the password. Text is UTF-8; older Latin-1 values are decoded with a note.
Frequently Asked Questions
Is Basic auth secure?
Only over HTTPS. Anyone who sees the header can decode it.
Why can't the username have a colon?
The first colon splits username from password, so it would be ambiguous.
Are my credentials uploaded?
No. They are processed in your browser.
What does Basic Auth Header Generator do?
Basic Auth Header Generator builds an HTTP Basic Authorization header from a username and password, or decodes one back. A username cannot contain a colon. Text is encoded as UTF-8, which is what current servers expect. Use test credentials, not real passwords you reuse elsewhere.
What do I need to enter in Basic Auth Header Generator?
A username and password, or an Authorization header or Base64 string to decode.
Is my data private in Basic Auth Header Generator?
Everything stays in your browser and is not uploaded.
Is MyToolDock Basic Auth Header Generator free to use?
Yes, MyToolDock Basic Auth Header Generator is 100% free with no registration, subscriptions, or limits. All features are fully unlocked.