HTTP Basic Auth Generator
Generate RFC 7617 compliant HTTP Basic Authentication headers with full UTF-8 support. Includes code snippets for cURL, JavaScript, Python, and Go.
How to Use
HTTP Basic Authentication is a simple challenge-response mechanism that allows a client to provide credentials (username and password) to a server. These credentials are combined and encoded into a Base64 string, which is then sent in the Authorization header.
Generating Credentials
- Enter Username: Note that per RFC 7617, usernames cannot contain a colon (
:). - Enter Password: Passwords can contain any characters, including colons and emojis.
- Select Encoding: Choose UTF-8 for modern applications or ISO-8859-1 if you are working with legacy infrastructure.
- Copy Header: Use the generated header in your HTTP request or copy one of the provided code snippets.
About This Tool
RFC 7617 and UTF-8 Support
The original Basic Authentication specification (RFC 2617) used the ISO-8859-1 character set. This often led to issues when passwords contained non-English characters or symbols.
The updated RFC 7617 standard officially introduced support for UTF-8. Our generator uses a custom encoding pipeline to ensure that UTF-8 characters are correctly translated into Base64, matching the behavior of modern browsers and server-side libraries.