Skip to content
LovTools
EN

Basic Auth Header Generator

Build an HTTP Basic Authorization header from a username and password.

Processed locally on your device — nothing is uploaded.

About the Basic Auth Header Generator

HTTP Basic authentication sends “username:password” encoded in Base64 inside the Authorization header. Enter the two values and get the header ready to paste into Postman, a config file or your code, plus curl and JavaScript fetch examples.

The credentials are UTF-8 encoded as RFC 7617 recommends, and a username containing a colon is rejected because the protocol cannot represent it. Remember that Base64 is not encryption, so only use Basic auth over HTTPS.

How to use the Basic Auth Header Generator

  1. Enter the username and password.
  2. Copy the Authorization header.
  3. Use the curl or fetch example to test.

Features

  • Generation history: the last 10 results of your visit stay one click away
  • RFC 7617 compliant
  • UTF-8 credentials
  • curl and fetch examples
  • Runs locally

Supported formats

  • Plain text

Frequently asked questions

Is my password sent anywhere?

No. The header is built in your browser and nothing you type is uploaded.

Is my text sent anywhere?

No. Everything runs in your browser, so nothing you paste is uploaded or stored.

Added · Last reviewed · Maintained by Sohail Khax · How we test tools