Free Basic Auth Header Generator
Turn a username and password into a ready Authorization: Basic header · encoded locally, never transmitted.
100% client-side · nothing you enter is ever sent to a server or stored.
Preview · sign in with a free account to run it
Basic auth is Base64-encoded, not encrypted · only use it over HTTPS.
How to use it
- Enter the username and password. A username can't contain a colon.
- Copy the Authorization header, or the ready-made curl command.
- Send it only over HTTPS.
Example
Input
Username admin Password secret
Result
Authorization: Basic YWRtaW46c2VjcmV0 curl -H "Authorization: Basic YWRtaW46c2VjcmV0" https://example.com
How the header is built
- username:password
- The two values are joined with a colon, which is why a username can't contain one.
- Base64 (UTF-8)
- The pair is Base64-encoded as UTF-8, so accented characters work. Base64 isn't encryption: anyone who sees the header can decode it.
- Only over HTTPS
- Over plain HTTP, the password crosses the network readable on every request.
Go deeper
Page updated
Frequently asked questions
Is Basic Auth secure?
Only over HTTPS · the credentials are just Base64-encoded, not encrypted, so anyone who sees the request can decode them. Use it for internal tools and API testing, and prefer tokens for production APIs.
Is my password sent anywhere when I use this tool?
No. The Base64 encoding runs entirely in your browser with JavaScript. Nothing you type is transmitted, logged, or stored.
Is Basic Auth OK for a staging site?
Yes, as a gate in front of a staging or preview site over HTTPS. For real user accounts, use proper sign-in with sessions or tokens.
Want the full picture?
This tool covers one narrow check. A full SimplyScan runs 60 checks across 14 categories · exposed keys, RLS, XSS, auth, and speed · in 30 seconds.
Run a full security scanRelated tools
CSP Generator
Build a Content-Security-Policy header from scratch · pick directives and sources, and get a copy-ready header with the risky options explained.
Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes from any text · instantly and entirely in your browser.
SRI Hash Generator
Generate a Subresource Integrity hash for any script or stylesheet · paste the content or upload the file · so a compromised CDN can't tamper with it.