Loading tool…
Build the Authorization header for HTTP Basic Auth from a username and password, or decode an existing header back to credentials.
Loading tool…
Basic … header (or just the Base64 part) to reveal the username and password.Privacy: this tool runs entirely in your browser. Your input is never sent to, received by, or stored on any server — there are no uploads and no tracking of what you enter.
HTTP Basic Authentication is the simplest way to send credentials to a server. The username and password are joined with a colon, Base64-encoded, and placed in an Authorization header as 'Basic <encoded>'.
This tool joins your username and password as user:password, Base64-encodes the result and prefixes it with 'Basic '. Decoding reverses the process to reveal the original credentials.
Base64 is encoding, not encryption — anyone who sees the header can decode it. Always use Basic Auth over HTTPS, and never reuse important passwords for it.
HTTP Basic Authentication is the simplest standard way for a client to send a username and password to a server. The credentials are combined, encoded and placed in an Authorization header with each request. This tool generates that header from a username and password, and decodes an existing header back into its credentials.
The mechanism is straightforward: the username and password are joined with a colon (user:password), the result is Base64-encoded, and the word Basic is prefixed - producing Authorization: Basic dXNlcjpwYXNz. Decoding simply reverses these steps. The tool shows exactly what the server receives, which is invaluable when debugging APIs.
A critical point: Base64 is encoding, not encryption. Anyone who intercepts the header can decode it instantly back to the plain username and password (as the decode mode here demonstrates). Basic Auth therefore provides no confidentiality on its own and must always be used over HTTPS, which encrypts the whole request in transit.
Despite its simplicity, Basic Auth is widely used for internal tools, server-to-server API calls, quick prototypes, and protecting staging environments. It is easy to implement and supported everywhere. For public, user-facing authentication, token-based schemes (like JWTs or OAuth) are usually preferred, but Basic Auth remains a common, practical choice behind HTTPS.
Choose generate or decode, enter the credentials or paste an existing header, and the result updates instantly. Everything happens in your browser, so the credentials are never transmitted - making it safe for constructing and inspecting auth headers while you develop and debug.