Encode Credentials to Base 64

Encode Credentials to Base 64

Last Updated On June 11, 2019
You are here:
< Back

Basic Access Authentication requires us to encode our authentication info to base 64. You may run into this requirement when trying to access your API platform of interest.

To encode your credentials, just open up Developer Tools in your browser (F12 on Windows/Linux or option + ⌘ + J on OSX). In the console, type in the following and click enter:

Some platforms may require you to encode slightly different details, e.g. an API key instead of a user name. The platform documentation / support should contain the exact details of what needs to be encoded.

You’ll need to substitute in your own user credentials, like this (don’t forget the plus sign in the middle):

(f you have any problems with the above, you can also try a tool like Basic Authentication Header Generator to generate your header.)


Leave a Reply

Your email address will not be published.