Productivity and Utilities

HTTP Basic Auth Header Tool

Enter a user name and password to build the header, or paste a header to read it.

Your numbers

What to do

Example name. It cannot contain a colon.

Example password. Use a made up one; it is not sent anywhere, but keep real passwords out of shared links and screenshots.

Result

Authorization header

Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

Base64 value
QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Bytes before encoding
19
Characters in the header
49
How this was calculated
  1. The user name, a colon and the password are joined into user:password and written as UTF-8 bytes.
  2. Those bytes are encoded with standard Base64 (with = padding), and Basic and a space are put in front of the result.
  3. Base64 is only a way to write bytes as text. Anyone who sees the header can decode it, so use it only over HTTPS.
  • A Basic header is a password in disguise. Do not paste real credentials into chats, tickets or logs.

Calculated using SumPanda.com · https://sumpanda.com/http-basic-auth-header-tool/

Results are estimates for general information. Verify important figures before relying on them.

Next step

How to use the http basic auth header tool

  1. Choose Build a header to make one, or Read a header to decode one.
  2. To build, type the user name and the password. The user name cannot contain a colon.
  3. To read, paste the whole header line, just the part after Basic, or only the Base64 text.
  4. Copy the header, or read the user name and password the Base64 text holds.

Formula

credentials = user name + ":" + password, as UTF-8 bytes

header = "Authorization: Basic " + Base64(credentials)

reading: Base64 decode, then split at the first colon

Only the first colon splits the pair, so a password may contain colons but a user name may not. Standard Base64 with = padding is used.

The example from RFC 7617

The user name Aladdin and the password open sesame are joined as Aladdin:open sesame, which is 19 bytes. Base64 turns those bytes into QWxhZGRpbjpvcGVuIHNlc2FtZQ==.

The header is therefore Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==. Reading it back splits at the first colon to give the user name Aladdin and the password open sesame. A password with accents or emoji is written as its UTF-8 bytes first.

This is encoding, not protection

Anyone who sees the header can read the password, because Base64 only changes how bytes are written. Basic authentication is acceptable only over HTTPS, and never in a link, a log file or a screenshot you share. Whenever you can, prefer tokens that expire. To see inside a token, use the JWT Decoder.

For other text, the Base64 Encoder and Decoder works with any content, and the curl to Code Converter turns a request with this header into code.

Details that cause trouble

Servers differ on non-ASCII characters; RFC 7617 recommends UTF-8, which is what this page uses. A trailing newline or space in a pasted header breaks Base64 decoding on some systems, so the page trims spaces for you. The word Basic is not case sensitive.

Assumptions and limits

  • Values are encoded as UTF-8 and standard Base64 with = padding is produced.
  • When reading, padding is optional and spaces and line breaks are ignored.
  • A decoded value that is not valid UTF-8, or has no colon, is reported instead of guessed.
  • Control characters such as tab and line break are rejected in the user name and password.
  • Use made up credentials here. Nothing is sent anywhere, but real passwords should stay out of shared screens.

Formulas reviewed October 10, 2026. See the calculation methodology for how SumPanda rounds, tests and sources its formulas.

Frequently asked questions

Why can the user name not contain a colon?

The colon separates the two parts, and the receiver splits at the first one. A colon in the user name would make the split come out wrong.

Is a Basic header safe to send?

Only over an encrypted HTTPS connection, since the header holds the password in a form anyone can decode.

What happens with an empty password?

It is allowed. The credentials end in a colon, and reading such a header shows (empty) for the password.

Why does the page strip the word Authorization?

Copying from a tool often brings the whole header line. The page accepts that, or just Basic and the code, or the bare code.