Generate an Authorization: Basic header
All computation runs locally in your browser

The Basic Auth Generator creates an HTTP header you can paste into tools like curl, Postman, or your API client. It takes a username and password, combines them, Base64-encodes the result, and formats the header string.
Basic Auth is not encryption.
Base64 is an encoding (easy to decode), so only use Basic Auth over HTTPS and prefer stronger auth methods when possible.
If youre working with Base64 often, the Base64 String Encoder/Decoder is a handy companion for debugging values.
Enter your username
This is usually the API user, email, or service account name.
Enter your password
Often an API token, app password, or plain password (depending on the system).
Copy the Authorization header
Paste it into your request headers exactly as shown.
Suppose your username is and your password is .
In other words, the header you send is literally the word followed by a space and the Base64 token.
If you see an empty output like , it usually means you entered neither username nor password.
Background: You want to verify that your staging endpoint is up.
Inputs: username , password .
How you use it: Paste the header into your curl command or request tool.
Background: A service behind a reverse proxy is protected by Basic Auth.
Inputs: username , password .
Result: The generator outputs a full header you can paste directly into Postmans Headers tab.
Background: Requests return 401 even though credentials look right.
What to check: Decode the token using the Base64 String Encoder/Decoder to confirm the string is exactly .
Common fix: Make sure theres no extra whitespace and that you didnt swap the fields.
Background: Some APIs accept a token in the password slot.
Inputs: username , password .
How it helps: You avoid formatting mistakes and keep the header consistent across tools.
When this tool might not be appropriate:
Pro tip: verify with decoding
Copy only the Base64 part, decode it, and confirm it matches your expected string. If you want a quick decoding workflow, open our Base64 String Encoder/Decoder in a second tab.
(the token is the Base64 encoding of username + colon + password)
The core steps are:
Base64 is designed to represent bytes as printable characters, not to keep secrets. If someone can see your header, they can decode it.
The payload is strictly . If the username contains a colon, it becomes ambiguous and may break authentication.
If youre constructing URLs that include credentials (not recommended), our URL parser can help you inspect the username/password fields.
Its only as secure as your transport. Basic Auth uses Base64 encoding, so it must be protected by HTTPS. Think of it as a convenient header format, not encryption.
Base64 encodes the full string . Any change in input changes the encoded output.
is Base64 for . That typically means both username and password are empty.
Often yes. Many services treat the password field as some secret which can be a token.
Copy the Base64 part and decode it in our Base64 String Encoder/Decoder to confirm it equals .
This tool formats headers and encodes text with Base64. It does not validate credentials, perform authentication, or provide security guarantees.
Avoid using Basic Auth over plain HTTP, and avoid sharing generated headers in public places (screenshots, tickets, chat logs).
Use a simple chronometer (stopwatch) to track elapsed time down to milliseconds. Runs locally in your browser.
Normalize email addresses to a standard format for easier comparison. Useful for deduplication and data cleaning. Runs locally in your browser.
Estimate the time needed to consume a total amount at a constant rate, and get an expected end time. Runs locally in your browser.
Parse and decode your JSON Web Token (JWT) and display its content. All computation runs locally in your browser.
Know which file extensions are associated to a MIME type, and which MIME type is associated to a file extension. Includes a full MIME types table.
Generate random Lorem Ipsum placeholder text with customizable paragraphs, sentences, and word counts. Runs locally in your browser.