Skip to main content

Basic Auth Generator

Mode

Username

Password

How to Use

Generate a header

  1. Select "Encode" mode
  2. Enter username
  3. Enter password
  4. Click "Generate" button
  5. Copy the generated Authorization header

Decode a header

  1. Select "Decode" mode
  2. Paste an Authorization header (e.g. Authorization: Basic xxx) or a raw Base64 string
  3. Click "Decode" button
  4. 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
Share this tool