Skip to main content

Basic Auth Generator

New

Generate HTTP Basic Authentication headers from username and password.

basic-authhttpauthorizationheader
Read the guide
Shortcuts:⌘ KSearch

Decoded username

Decoded password

Frequently Asked Questions

Is Basic Auth encrypted?

No. This tool only Base64-encodes username:password into an Authorization: Basic header. Anyone who can see the header can decode it unless you send it over HTTPS.

Can it decode a full header line, or do I need to paste only the token?

Either works. The decoder strips an optional Authorization: prefix and an optional Basic prefix before Base64-decoding the value.

What happens if my password contains a colon?

The decoded string is split at the first colon. Everything after that first colon stays in the password field, which matches the usual Basic Auth username:password layout.

Will it handle non-ASCII usernames and passwords?

Yes. The generator and decoder use a UTF-8-safe Base64 path, so characters outside plain ASCII round-trip better than a raw btoa/atob call.

Can I copy ready-made curl, fetch, and axios examples?

Yes. Generating a header also fills example snippets for curl, fetch, and axios, and each output area has its own Copy button.

Related Tools