Basic Auth Generator

Instantly generate HTTP Basic Authentication headers and code snippets.

lock
Security Note: Basic Auth transmits credentials in an easily decoded format (Base64). Always use HTTPS when implementing Basic Authentication to prevent credential sniffing.
visibility
Authorization Header
Authorization: Basic ... content_copy
Base64 Token
... content_copy
.htpasswd Entry
Generating... content_copy
cURL Command
curl -u user:pass http://example.com content_copy
JavaScript Fetch
fetch('http://example.com', { headers: { 'Authorization': 'Basic ...' } }); content_copy
Decoded Verification: