Back to home

Basic Auth Header Generator

Convert username and password into an Authorization Basic header.

Coding Waiting for result
Report issue

Credential input

Authorization: Basic base64(username:password)

Password strength

Fair

Request examples

curl

curl -X GET "https://api.example.com/v1/items" \
  -H "Authorization: Basic Z29nb3RlbTp1c2VmdWwtdG9vbHM="

fetch

await fetch("https://api.example.com/v1/items", {
  method: "GET",
  headers: {
    Authorization: "Basic Z29nb3RlbTp1c2VmdWwtdG9vbHM="
  }
})

HTTPie

http GET "https://api.example.com/v1/items" "Authorization: Basic Z29nb3RlbTp1c2VmdWwtdG9vbHM="

Before you use it

Processed in your browser

The username and password are not sent to the server. This page only displays the Base64 string created in the browser.

  • Basic Auth does not encrypt the password. Without HTTPS, the credential can be read in transit.
  • Do not paste the token into public logs, screenshots, or issues. Base64 can be decoded back to the original value.
  • Regenerate the header whenever the password changes. For long-lived services, consider API keys or OAuth.

How to use

Convert username and password into an Authorization Basic header.

Usage notes

  • Add your input, run the tool, and review the result below.
  • Copy or download the result for blog posts, work documents, and content production.
  • Review the result once more before using it in important public materials.

Frequently asked questions

Are files uploaded to the server?expand_more

Files and text are processed in your browser and are not uploaded to the server.

Keep exploring

More tools to try next

Jump into related tools from the same category and popular picks across Gogotem.

View all tools arrow_forward