Toolbox / Basic Auth header Runs in your browser中文
Web

Basic Auth header

Encode a username and password into an HTTP Basic authorization header.

Ctrl / ⌘ + Enter Run

Ready when you are

Less switching. More focus.Functional build · Validation in progress

Using this tool

Build an HTTP Basic Authorization header from a test username and password.

Actions: Process

Example

Synthetic username demo and demonstration password example; no real credentials.

Example action and settings

Action: Process
Username: demo
Password: example

Input / action

Result / expected behavior

Authorization: Basic ZGVtbzpleGFtcGxl

Available options: Username · Password

Scope and limitations

  • Base64 is reversible, not encryption. Send real credentials only over HTTPS and keep them out of examples and logs.

Common mistakes

  • Usernames cannot contain colons. Generating a header neither signs in nor proves credentials valid.

Related tools

Base64 encode / decode

Privacy and browser support

Input is processed in this browser. Do not use real keys or active sensitive credentials as demonstration data. Device features require browser support and your permission.