Generators

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.

Basic Auth Generator — Build or decode an HTTP Basic Authorization header from user:password

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

1

Enter a username and password (or paste an existing Authorization header to decode)

2

The tool base64-encodes the credentials as user:pass

3

The full header value is displayed: Basic <base64-string>

4

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

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 →