All tools

Basic Auth Header Generator

Build and decode HTTP Basic Authorization headers.

Authorization header
Authorization: Basic YWRtaW46aHVudGVyMg==
cURL
curl -H "Authorization: Basic YWRtaW46aHVudGVyMg==" https://api.example.com
fetch()
fetch('https://api.example.com', {
  headers: {
    'Authorization': 'Basic YWRtaW46aHVudGVyMg=='
  }
})

Basic auth is base64 of "user:password". It is reversible, not encrypted - send only over HTTPS. Modern APIs prefer Bearer tokens or API keys, but Basic is still common for legacy services and HTTP test endpoints.

About

Type a username and password. Get the base64-encoded Authorization header plus ready-to-paste cURL and fetch() snippets. Also decodes existing headers back to user/password.

How to use

  1. Type the username and password.
  2. Copy the header or snippet.

FAQ

Is this safe?+

Basic auth is base64, not encryption. Reversible by anyone who sees the header. Only send over HTTPS. The encoding happens in your browser - nothing is uploaded.