Tested tool guide
Tested browser tools
Checked August 16, 2026
What Basic Auth Header Generator does, with a checked example
This tool builds an HTTP Authorization header for Basic authentication by encoding a username and password pair as Base64, and it can also reverse the process: paste a Basic Auth token to recover the username and password. You enter the credentials, and it outputs the header value plus a ready-to-use cURL command. The common surprise: the Base64 encoding is not encryption, so anyone who sees the header can trivially decode it. Always send such headers over HTTPS to prevent casual interception.
Worked example
A concrete input and expected output from the current implementation.
Input
username: hunter2
password: hunter2
->
Expected output
Authorization: Basic aHVudGVyMjpodW50ZXIy
The string 'hunter2:hunter2' is encoded to Base64, producing 'aHVudGVyMjpodW50ZXIy'. The Basic scheme requires this value to be prefixed with 'Basic ' and used as the Authorization header.