

You can replace this value with a reference to a cell that contains a base64 string to decode it to hex format.
Hex to text converter code#
This should display the hex value of the base64 string "oAAABTUAAg=" in the selected cell. Hexadecimal (hex) to text conversion is a process of converting hexadecimal code into plain text. History/origin: The term hexadecimal is derived from the prefix 'hexa' from Greek for 'six' and. As can be seen, although the symbols occupying the three positions shown are the same, 'A,' the magnitude of each is one power of 16 apart. In the formula bar, type =base64ToHex("oAAABTUAAg=") and press Enter. For example, using the hex number AAA: AAA 10 × 16 2 + 10 × 16 1 + 10 × 16 0 2560 + 160 + 10 2730. In your Google Sheets document, select the cell where you want to display the hex value of a base64 string. In the Script Editor, create a new function called base64ToHex and paste the code you provided: python Copy code function base64ToHex(str) Save the script and close the Script Editor. Hello Martin, To use the base64ToHex function in Google Sheets, you can create a custom function by following these steps: Open your Google Sheets document and go to Tools > Script editor. Guru A virtual teacher who reveals to you the great secrets of Base64
