代码、数据与二维码工具

基础认证生成器

按参数生成基础认证结果。

优先本地处理无需注册隐私说明 ↗

The credentials stay in this browser tab. Do not use this tool on a shared or recorded screen with real credentials.

使用步骤

如何使用

  1. Enter the username and password for your request.
  2. Generate the header locally.
  3. Copy the Authorization value into your development request or API client.

What this generates

The result follows the HTTP format Authorization: Basic <base64 credentials>. The encoded value contains the username, a colon, and the password.

Use HTTPS

Basic authentication is Base64 encoding, not encryption. Always send the header over HTTPS and avoid committing it to source code, logs, or public URLs.

Local and ephemeral

Encoding runs in your browser. Credentials are not uploaded or saved by this page; clear the fields after copying when working on a shared device.

常见问题

你可能还想知道

Does Base64 protect my password?

No. Base64 is reversible text encoding. Use HTTPS and treat the header as a secret.

Can I use this with an API?

Yes. Copy the complete Authorization header into a secure HTTPS request or your API client’s Basic Auth setting.

Are my credentials sent anywhere?

No. This page performs the encoding locally and does not send or store the entered values.

Can I encode non-English credentials?

The generator encodes the username and password as UTF-8 before Base64 encoding. Confirm that your server expects UTF-8 Basic authentication.