Basic Auth Encoder / Decoder
Encode a username and password into an HTTP Basic Authorization header or curl -H flag, or decode a Basic token back to plaintext credentials.
Basic Auth Encoder / Decoder
Base64 token
YWRtaW46c2VjcmV0MTIzAuthorization header
Authorization: Basic YWRtaW46c2VjcmV0MTIzcurl flag
-H "Authorization: Basic YWRtaW46c2VjcmV0MTIz"Security note: Basic Auth encodes credentials as base64 — not encryption. Always use HTTPS to prevent credentials from being intercepted.
Updated . Provided as is. Check the output before you rely on it in production.
Questions and answers
What is Basic Auth Encoder?
HTTP Basic Authentication sends 'username:password', Base64-encoded, in an 'Authorization: Basic <token>' request header. This encoder builds that header and a curl -H flag from your credentials, encoding them as UTF-8 per RFC 7617, and decodes a pasted token or full header back to plaintext.
How does HTTP Basic Authentication work?
Basic Auth combines your username and password as 'username:password', Base64-encodes the result, and sends it in the Authorization request header as 'Authorization: Basic <token>'. Note: Base64 is encoding, not encryption — always use HTTPS.
Is Basic Auth Encoder free?
Yes. Completely free with no account required.
Does it send my credentials to a server?
No. All encoding and decoding uses the browser's built-in btoa()/atob() functions. Your credentials never leave your device.
Is Basic Auth secure?
Basic Auth is only secure over HTTPS. The Base64 encoding is trivially reversible — it is not encryption. Always use HTTPS to prevent credentials from being intercepted in transit.
For AI agents: how to call this tool
Machine-readable contract, endpoints and examples. Humans can ignore this section.
Best Path For Builders
Browser workflow
Runs instantly in the browser with private local processing and copy/export-ready output.
Browser Workflow
This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.
/basic-auth-encoder/
For automation planning, fetch the canonical contract at /api/tool/basic-auth-encoder.json.