Basic Auth Header Generator
Turn a username and password into an RFC 7617 HTTP Basic authentication header. The Base64 token, full Authorization header, and ready-to-run curl commands update live — nothing ever leaves your clipboard.
Credentials
Username
Password
Quick starts
Base64 token
dXNlcjpwYXNzAuthorization header
Authorization: Basic dXNlcjpwYXNzcurl (-H header)
curl -H "Authorization: Basic dXNlcjpwYXNz" https://api.example.comcurl (-u user:pass)
curl -u "user:pass" https://api.example.comDecode a header
Header or token to decodeaccepts an Authorization header, Basic <token>, or raw Base64
About HTTP Basic authentication
Basic auth joins a username and password with a single colon, Base64-encodes the result, and sends it as Authorization: Basic <token>. Base64 is encoding, not encryption — it is trivially reversible — so always use HTTPS to protect the credentials in transit. Because the first colon separates the username from the password, a password may contain colons but a username may not. All computation happens in your browser.