Network

Build a Basic Authorization value from exact bytes

·

Basic authentication joins a user ID and password with a colon and encodes the resulting bytes as Base64. With non-ASCII characters, the byte encoding must agree with the receiving service.

Basic Auth Header Generator

Check the UTF-8 value for the example

Choose Load example. It supplies café as the user ID and orchard:7 as the invented password. Generate header, then Reveal header. The UTF-8 representation of é is C3 A9 and the joined credential has 15 bytes.

The first colon in the decoded bytes separates user ID and password. The later colon stays in orchard:7. Copy field value for an interface that already provides the Authorization field name.

Invented credentials written as a full header line
café:orchard:7

RFC 7617, the Basic HTTP authentication schemeRFC 4648, Base64 encoding

Compare the same example with ISO-8859-1

Choose ISO-8859-1 and generate again. The byte for é is E9, so the joined input is 14 bytes and the Base64 token becomes Y2Fm6TpvcmNoYXJkOjc=. The colon positions are unchanged.

UTF-8 mode applies Unicode NFC as requested by a Basic challenge with charset UTF-8. ISO-8859-1 encodes its own code-point range directly. Characters beyond U+00FF require a different encoding.

RFC 7617, the Basic HTTP authentication scheme

Handle the result as a credential

Base64 can be decoded to the original credential bytes. Use only the value appropriate to your service. RFC 7617 describes protecting Basic credentials with an external secure channel such as HTTPS.

The generator holds the current result in the workspace and offers separate actions to reveal and copy. Reset clears the fields and result in the workspace. Clipboard data follows your device’s clipboard behavior.

RFC 7617, the Basic HTTP authentication schemeRFC 4648, Base64 encoding

Common questions

Why is there no charset in the generated value?

Under RFC 7617, charset appears in the server's challenge. A Basic Authorization value is the Basic scheme followed by one credential token.

Can I use a colon in the user ID?

The first colon marks the user ID boundary, so the tool rejects a colon in the user ID. Later colons in the password are preserved.

Sources

Put it into practice.

Related guides