Basic Auth Header Generator

Build or decode an HTTP Basic Authorization header.

Support
Works Offline
Privacy First
No Login
No API

Credentials

Result

Shell
curl -u "admin:secret123" https://api.example.com/resource
CSS
fetch("https://api.example.com/resource", {
  headers: { Authorization: "Basic " }
});

About the Basic Auth Header Generator

Encode a username and password into an HTTP Basic Authorization header, or decode an existing header back into its username and password. Includes ready-to-copy curl and fetch snippets.

Examples

Encode credentials

admin:secret123

Output

YAMLAuthorization: Basic YWRtaW46c2VjcmV0MTIz

Keyboard shortcuts

  • Copy the main outputCtrl / ⌘ + Shift + C
  • Download the resultCtrl / ⌘ + S
  • Share this toolCtrl / ⌘ + Shift + S
  • Reset the inputsAlt + R
  • Open the tool search paletteCtrl / ⌘ + K

Related tools

Frequently asked questions

Comments

No login needed. Comments appear after a quick review.

Protected by an on-site captcha — no third-party trackers.

Optional: get an alert when your comment is published or replied to, plus new tool announcements. No sign-up.

Loading comments…

Version 1.0.0 · Updated 2026-08-10 · Runs entirely in your browser