Basic Auth Generator

Generate and decode HTTP Basic Auth Authorization headers from a username and password.

The Basic Auth Generator runs entirely in your browser. The username, password, and tokens you paste never leave your device and nothing is uploaded to ArrayKit.

Open the Base64 Encoder / Decoder

About Basic Auth Generator

The Basic Auth Generator builds an HTTP Basic Auth header from a username and password so you can authenticate API calls in seconds. It Base64-encodes username:password, then shows you the raw token, the full Authorization: Basic value, and a ready-to-run cURL snippet you can copy. Switch to Decode mode to paste a token or a complete Authorization header and recover the original user and password. It is handy when you are testing a REST endpoint, wiring up a webhook, configuring a reverse proxy, or debugging a 401 and need to confirm what credentials a header actually carries. Built for developers, QA engineers, and DevOps folks who build and inspect requests right in the browser. Everything runs locally — no credentials are uploaded.

Features

How to use the Basic Auth Generator

  1. Keep the Generate tab selected
  2. Type your username and password into the two fields
  3. Copy the Authorization: Basic header or the cURL snippet
  4. Switch to Decode and paste a token or header to recover user:pass

Example

Input

username: aladdin
password: opensesame

Output

Authorization: Basic YWxhZGRpbjpvcGVuc2VzYW1l

base64("aladdin:opensesame") becomes the Basic credential.

Common errors & troubleshooting

Frequently asked questions

What is a Basic Auth Generator?
It is a tool that turns a username and password into an HTTP Basic Auth credential — Base64 of 'username:password' — and gives you the full 'Authorization: Basic' header to send with a request. It also decodes a token back to user and password.
Is HTTP Basic Auth secure?
Basic auth only Base64-encodes the credentials; it does not encrypt them. Anyone who sees the header can decode it, so always use it over HTTPS and avoid it on untrusted networks.
How do I use the header with curl?
Copy the generated cURL snippet, which already includes -H "Authorization: Basic <token>". You can also let curl build it for you with curl -u username:password.
Can I decode an existing Authorization header?
Yes. Switch to Decode and paste either the bare token or the whole 'Authorization: Basic <token>' line. The tool strips the prefix and shows the username and password.
Are my username and password sent anywhere?
No. The Basic Auth Generator runs entirely in your browser. The credentials you type or paste never leave your device and are not uploaded to ArrayKit.
What if my username or password has special characters?
Encoding and decoding are UTF-8 safe, so accented letters and other non-ASCII characters round-trip correctly. The split always happens on the first colon.

Related tools

All ArrayKit tools