Basic Auth Header Generator
Build or decode an HTTP Basic Authorization header.
Credentials
Result
curl -u "admin:secret123" https://api.example.com/resource
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:secret123Output
YAMLAuthorization: Basic YWRtaW46c2VjcmV0MTIzKeyboard 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
Base64 Encoder
Encoders & Crypto
Encode or decode text to/from Base64, UTF-8 safe.
Base32 Encoder
Encoders & Crypto
Encode or decode text using RFC 4648 Base32.
File Base64 Encoder/Decoder
Encoders & Crypto
Convert any file to a Base64 data URI, or decode Base64 back to a file.
HTML Entity Encoder
Encoders & Crypto
Encode or decode HTML entities in text.
JWK ↔ PEM Converter
Encoders & Crypto
Convert JSON Web Keys to PEM and PEM keys back to JWK.
JWT Decoder
Encoders & Crypto
Decode a JWT's header and payload, and check expiry.
Frequently asked questions
Comments
No login needed. Comments appear after a quick review.
Loading comments…
Version 1.0.0 · Updated 2026-08-10 · Runs entirely in your browser