HTTP Basic Auth Generator & Decoder

Build or decode an HTTP Basic Authorization header locally. Supports UTF-8 credentials and passwords containing colons.

How to use

Generation joins username and password with a colon, encodes them as UTF-8, and adds the Authorization: Basic prefix. In decode mode, paste a full header, Basic token or bare Base64 value in the first field.

The first colon separates the username from the password. A username cannot contain a colon; a password can. Control characters are rejected. UTF-8 requires compatible server charset handling; older Latin-1 credentials may not decode here.

Behavior and limits

Base64 is reversible encoding, not encryption. Send Basic credentials only over HTTPS and avoid sharing generated headers. No authentication request is sent and credentials are not saved in local storage.

Questions & answers

Does decoding prove the password works?

No. It only decodes the header structure. It never contacts the server or verifies an account.

Is my input uploaded?

No. Processing runs in your browser. This tool does not send your input to an API or save it in local storage. Text tools accept up to 200,000 characters.

Other Languages

HTTP Basic Auth Generator & Decoder — Base64.sh

HTTP Basic Auth Generator & Decoder

Build or decode an HTTP Basic Authorization header locally. Supports UTF-8 credentials and passwords containing colons.

Share:

References

How we make sure

We check this tool with the automated test suites linked below. Example checks are shown in their original language.

Verification method
Compare the standard username/password example and check UTF-8, empty values and password colons.
Comparison reference
The RFC 7617 Aladdin / open sesame vector.
Verification scope
These samples and boundaries do not prove correctness for every input.
Test source and cases (select a file to read it)
  • workbench.test.js
    • Basic Auth handles UTF-8 and password colons with RFC 7617 example

These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.