HTTP Basic Authentication Encoder & Decoder
Generate or decode HTTP Basic Authentication values.
Username
Password
Result
Build an HTTP Authorization value
Worked example
Enter the demonstration username user and password pass, then encode them. The Base64 token is dXNlcjpwYXNz; an HTTP header uses Authorization: Basic dXNlcjpwYXNz. Decoding the token recovers user:pass, demonstrating that it is not encrypted.
What to check
HTTP Basic authentication must be used over HTTPS. Never paste production credentials into a public example or share the resulting token. A username cannot contain a colon in the Basic scheme; passwords can contain colons. Character encoding must match what the server expects.