Basic Auth Generator
Generate an HTTP Basic Authentication header from a username and password, or decode an existing Authorization header back to its credentials. The output is the full header value (Basic dXNlcjpwYXNz) ready to paste into an API request, curl command, or Postman header.

What it does
- ▸Generates a Basic Auth header from username:password
- ▸Decodes a Basic Auth header back to its plaintext credentials
- ▸Outputs the full Authorization header value (Basic <base64>)
- ▸Handles Unicode characters in usernames and passwords
- ▸Shows the base64-encoded credential string separately
Use cases
- ▸Generating an Authorization header for an API that uses Basic Auth
- ▸Decoding a Basic Auth header from a captured HTTP request
- ▸Testing API authentication with different credentials
- ▸Adding a Basic Auth header to a curl command or fetch request
How it works
Enter a username and password (or paste an existing Authorization header to decode)
The tool base64-encodes the credentials as user:pass
The full header value is displayed: Basic <base64-string>
Copy the header value for use in your API request
Frequently asked questions
1Is Basic Auth secure?
Basic Auth sends credentials as base64-encoded text, which is not encryption. It's only secure when used over HTTPS, which encrypts the entire request. Never use Basic Auth over plain HTTP — the credentials can be easily decoded.
2Can it handle special characters in passwords?
Yes. The tool handles Unicode characters correctly. The credentials are encoded as UTF-8 before base64 encoding, which is the standard for HTTP Basic Auth.
3How is this different from the Base64 tool?
The Base64 tool encodes/decodes arbitrary text. This tool specifically formats the output as an HTTP Authorization header (Basic <base64>) and handles the user:password concatenation. It also decodes existing headers back to credentials.
Related tools

Base64 String Encode/Decode
Encode and decode Base64 strings (unicode-safe)

JWT Debugger
Decode JWT tokens, inspect claims, verify signatures, and sign new tokens

TOTP Generator
Generate time-based one-time passwords (RFC 6238) from a base32 secret or otpauth URI

Hash Generator
MD5 / SHA / CRC32 / Blake hashes and HMACs of the input text
Use Basic Auth Generator offline in Devinity
All 95 tools run locally on your Mac. No internet required, no data sent to servers.
Download Devinity →