Basic Auth Encode / Decode
Local ProcessingBuild a Basic Auth header from a username and password, or decode one.
How It Works & Processing Standards
Build a Basic Auth header from a username and password, or decode one.
Tool processing runs in your browser. If you create a calculator or conversion share link, its values are included in the URL. See the privacy policy for account, analytics and advertising data.
Current Limits
- Maximum input length: 100,000 characters
Choose decode, build header or check header under "Task". Build headers for API tests, or see which account a logged header belongs to.
Basic auth is only Base64 encoding, not encryption. Always use it over HTTPS.
What You Can Do
- Build header
- Base64-encodes user:password into an Authorization header.
- Decode
- Shows the username and password length.
How to Use Basic Auth Encode / Decode
- 1Choose a taskBuild, decode or check.
- 2Enter valuesUsername and password, or the header.
- 3CopyUse the header or result.
Examples
Build a header
Input: user / pass
Result: Authorization: Basic dXNlcjpwYXNz
Decode
Input: Basic dXNlcjpwYXNz
Result: user user, password length 4
Common Use Cases
- Testing APIs with curl or Postman
- Seeing which account a logged auth header uses
Frequently Asked Questions (FAQ)
Why is the password not shown when decoding?
Only its length is shown to avoid displaying it on screen. Anyone holding the header can still decode it.
