To convert large binary to hex use this code
const binaryData:=
{
'0000': '0',
'0001': '1',
'0010': '2',
'0011': '3',
'0100': '4',
'0101': '5',
'0110': '6',
'0111': '7',
'1000': '8',
'1001': '9',
'1010': 'A',
'1011': 'B',
'1100': 'C',
'1101': 'D',
'1110': 'E',
'1111': 'F',
};
export function binaryToHex(bin: string)
{
let hex = '';
for (let i = 0; i < bin.length;)
{
hex = hex + binaryData[bin.substr(i, 4) + ''];
i += 4;
}
return hex;
}
INPUT
00100000001110000000000000000000000000101000000000000000000000000000000000000000000000000000000000000000000000000000000000000010 OUTPUT
20380000028000000000000000000002
Catch: Input should be multiple of 4. Else prefix with zeros.