Skip to content

Names and numbers from a short list

Write a Basic Authorization header

The user and password are joined with a colon and encoded as Base64.

A colon in the user name, or a line break in either field, is rejected.

The work stays in this tab.

This tool runs in your browser. Turn on JavaScript to use it.

Basic header

The sample is fixed. It uses the same rule as the form.

User
ada
Password
secret
Result
Authorization: Basic YWRhOnNlY3JldA==

How to use it

  1. 1Fill in the fields.
  2. 2Read the result.
  3. 3Copy the line you need.

Good to know

  • This builds the header text. It does not send it.
  • This page does not upload the text.
  • Text longer than one hundred thousand characters is rejected.

Questions

Does the result leave this browser?

No. The calculation finishes in the current tab.

What does this page leave out?

This builds the header text. It does not send it.

What if the input is huge?

Past one hundred thousand characters, the page stops and asks you to shorten it.

Related tools

  • Base64 encode and decode

    Base64 writes bytes as letters, digits, plus, and slash. It is how a token or a file preview survives a text field. It does not hide the contents from anyone who can read the alphabet.

  • Join a header name and value

    The name must be a token. The value cannot contain a line break.

  • Generate a random password

    A password from a coin-flip source is stronger than a word you adapted. This page draws each character from the sets you leave on, and then forgets it when you leave.