Decode Base64 to Hexadecimal string with javascript

Why not try the following code?:

const buffer = Buffer.from(rawData, 'base64');
const bufString = buffer.toString('hex');

Leave a Comment