Basic Auth Header Generator
Build an HTTP Basic Authorization header from a username and password. The credentials are joined with a colon and encoded as Base64, as described in RFC 7617.
1 Fill in the boxes
2 Your answer
Your answer shows here as you type.
How to use the Basic Auth Header Generator
- Type the username for the API or site.
- Type the password or token that goes with it.
- Copy the Authorization header and add it to your request.
Frequently asked questions
What is a Basic auth header?
It is the Authorization header with the word Basic followed by the Base64 encoding of username:password. Servers that use HTTP Basic authentication read this header on each request.
Is Basic auth encrypted?
No. Base64 is an encoding that anyone can decode, so Basic auth should only be sent over HTTPS.
Why can't the username contain a colon?
The first colon separates the username from the password, so a colon inside the username makes the two parts ambiguous. RFC 7617 does not allow it.
Can the password be empty?
Yes. The header then encodes the username followed by a colon and nothing else, though most servers will reject an empty password.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.