HTTP Basic Auth Encoder

Enter a username and password to instantly generate the Base64-encoded Authorization header for HTTP Basic Auth.

Credentials

Output

Enter credentials to generate header

Copied!

Summary

Enter a username and password to instantly generate the Base64-encoded Authorization header for HTTP Basic Auth.

How it works

  1. Enter your username in the first field.
  2. Enter your password in the second field.
  3. The tool immediately combines them as "username:password" and Base64-encodes the result.
  4. Copy the full Authorization header value or just the encoded token.
  5. Paste it into curl, Postman, Insomnia, or any HTTP request tool.

Use cases

  • Generate Authorization headers for REST API testing in Postman or Insomnia.
  • Build curl commands that require Basic Auth credentials.
  • Debug authentication issues by inspecting the encoded value.
  • Quickly encode credentials when setting up basic-auth-protected services.
  • Verify that a manually constructed Basic Auth token is correct.
  • Onboard new developers by showing exactly what the header should look like.

Frequently Asked Questions

Last updated: 2026-06-09 · Reviewed by Nham Vu