DevMate
Back to Toolverse

Web

Basic Auth Generator

Create the Basic authorization value from a username and password without sending a request.

Local processing
Loading tool workspace...

About this tool

When to use it

Create the Basic authorization value from a username and password without sending a request.

How to use it

Enter test credentials and select Generate header. Copy the result into an Authorization header in your own client. Confirm the target supports Basic authentication and uses an encrypted transport.

Guide updated . Examples checked against this implementation.

Worked examples

A simple ASCII fixture

Input

Username: user; Password: pass

Expected output

Basic dXNlcjpwYXNz

The encoded bytes are user:pass. The output is the header value; the HTTP header name Authorization is supplied separately.

Errors and unsupported input

Username: team:user

A username cannot contain a colon because the first colon separates username and password in the credential string.

Continue this workflow

Questions

Frequently asked questions

Does generating a header verify the password?

No. This page does not contact a server. Only the authentication service can accept or reject the credentials.