Basic Auth Generator
Mode
Username
Password
How to Use
Generate a header
- Select "Encode" mode
- Enter username
- Enter password
- Click "Generate" button
- Copy the generated Authorization header
Decode a header
- Select "Decode" mode
- Paste an Authorization header (e.g.
Authorization: Basic xxx) or a raw Base64 string - Click "Decode" button
- View the decoded username and password
Usage Example
Generated authentication header format:
Authorization: Basic <base64_encoded_credentials>
Use in HTTP requests:
curl -H "Authorization: Basic YWRtaW46c2VjcmV0" https://api.example.com
Security Tips
- Basic Auth encodes username and password in Base64, but this is not encryption
- Always use Basic Auth over HTTPS connections
- Do not transmit Basic Auth credentials over insecure networks
Similar tools
Share this tool