Converts a number into a text representation with the given radix (base).
This function works the same in Google Sheets as it does in Excel — same syntax and arguments.
BASE(number, radix, [min_length])The BASE function converts a decimal number into a string representation in a specified base. It supports bases ranging from 2 to 36, allowing for easy conversion between decimal, binary, hexadecimal, and other numeral systems.
=BASE(7, 2)Result: 111
Converts the decimal number 7 to binary.
=BASE(255, 16, 4)Result: 00FF
Converts 255 to hexadecimal with a minimum length of 4.
The BASE function supports a maximum radix of 36.