Basic auth generator
Build an HTTP Basic Authorization header from a username and password.
Loading tool…
About the basic auth generator
Builds the Authorization header for HTTP Basic authentication from a username and password, and shows the matching curl commands. Credentials are joined with a colon and Base64-encoded, exactly as RFC 7617 specifies.
Frequently asked questions
Is Basic auth encrypted?
Not at all. Base64 is trivially reversible, so the password is effectively sent in the clear. It is only acceptable over HTTPS, where TLS provides the confidentiality.
What if my password contains a colon?
A colon in the password is fine — only the first one separates the fields. A colon in the username is not allowed by the specification and will break parsing.