HTTP Basic Auth Header Generator & Decoder

Build Authorization: Basic headers locally · Supports user:pass and API token: formats

HTTP Authorization Header

          
cURL Snippet

          
Reverse Decode Existing Basic Header
Generated locally
0 BRFC 7617 UTF-8
Advertisement
Reserved fixed-height slot (CLS = 0.00) 728×90 320×100 300×50

Generating RFC 7617 Basic Authentication Headers Safely

HTTP Basic Authentication concatenates the username, a single colon (:), and the password into a UTF-8 byte sequence, encodes that sequence with standard Base64, and sends it in the Authorization: Basic <token> request header. Many developer APIs (such as Stripe, Jira, and Elastic) accept an API key as the username with an empty password, which still requires the trailing colon (token:) prior to encoding.

Pasting real API tokens into third-party websites leaks credentials into access logs and analytics pipelines. ByteHelpers computes and decodes Basic headers completely offline in your browser and outputs clean cURL -H and JavaScript fetch headers ready for local testing.

  • SpecificationRFC 7617 HTTP Basic Authentication Scheme: Authorization: Basic Base64(username:password).
  • Colon SeparatorExactly one literal colon joins user-id and password; API-key-only services like Stripe use api_key: with an empty password.
  • Transport SecurityBasic Auth is cleartext Base64—always enforce HTTPS/TLS and never log Authorization headers.
Why does Stripe or GitHub Basic Auth require a trailing colon when there is no password?

RFC 7617 requires a colon delimiter between user-id and password. Omitting the trailing colon produces a different Base64 string that compliant HTTP parsers reject with 401 Unauthorized.

Can the password contain a colon character?

Yes. RFC 7617 specifies that the username cannot contain a colon, so servers split only on the first colon; any subsequent colons belong to the password.

How is Basic Auth different from Bearer token authentication?

Basic Auth sends Base64-encoded user:pass credentials on every request, whereas Bearer Auth sends an opaque or JWT access token issued by an OAuth 2.0 / OIDC authorization server.