Skip to content

Basic Auth Header Generator

Creates an HTTP Basic Authorization header from a username and password, and decodes existing ones.

Your credentials stay on this device

This tool runs entirely inside your web browser. Your credentials are processed on your own device and are never sent to our servers. How this works

Create a header

Decode a header

This shows why Basic authentication must only be used over HTTPS: anyone who sees the header can read the password.

Basic Auth Header Generator is a free tool that creates the HTTP Authorization header for Basic authentication from a username and password, and decodes existing headers back into credentials. It works in your browser, so nothing you type is sent anywhere.

How to create a Basic auth header

  1. Enter the username and password.
  2. Copy the full header (Authorization: Basic …) or just its value.
  3. Add it to your request, API client or configuration.

How Basic authentication works

The client joins the username and password with a colon, encodes the result withBase64, and sends it in the Authorization header. For example,Aladdin:open sesame becomes Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==. If credentials are missing, the server answers 401 Unauthorized with a WWW-Authenticate header.

Security

Troubleshooting a 401 response

Frequently asked questions

How is the header built?

The username and password are joined with a colon, encoded as UTF-8 and then Base64, and prefixed with “Basic ”: user:pass becomes Basic dXNlcjpwYXNz.

Is Basic auth secure?

Only over HTTPS. Base64 is not encryption, so anyone who can see the request can read the password, as the decoder on this page shows.

Are my credentials sent anywhere?

No. The header is built in your browser and nothing is transmitted.

Last updated

Missing a feature, or need a tool we don’t have? Suggest it.