Tool guide
About this tool.
HTTP Basic authentication puts a Base64-encoded username:password value in the Authorization request header.
Base64 is reversible encoding, not encryption; the generated header contains reusable credentials and must be treated like a password.
- Prepare a header for a test API that explicitly accepts HTTP Basic authentication over HTTPS.
- Create a reproducible request fixture using demo credentials rather than a real account.
- Compare the generated value with a request builder or the Base64 text converter when troubleshooting authentication.
Enter the Username exactly as the server expects it; it cannot contain a colon, and leading or trailing spaces are kept.
Enter the Password; spaces and colons are allowed, or apply a sample such as Demo credentials to try the tool with fake values.
Run the generator and copy the complete Authorization header into your HTTP client or request builder.
Clear the inputs when finished; this tool generates text locally and does not test the credentials or contact the server.
- Username demo + password secret → Authorization: Basic ZGVtbzpzZWNyZXQ=
- Username user + password pass → Authorization: Basic dXNlcjpwYXNz
- Username Aladdin + password open sesame → Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
- Username user + password a:b → Authorization: Basic dXNlcjphOmI= (user:a:b; only the first colon separates the username)
- Use HTTPS and avoid sharing the output in logs, screenshots or public examples; anyone with the header can recover the credentials.
- This generator requires non-empty fields and uses UTF-8; the server must accept that character encoding for non-ASCII credentials.
- Usernames cannot contain a colon, and neither field can contain ASCII control characters; leading and trailing spaces are not trimmed.
- Password fields are not saved or restored in VS Code drafts; use Clear to remove the current form values and result.