BaseForm
BaseForm[expr, n] prints with the numbers in expr given in base n.
Examples
Display a number in binary:
BaseForm[255, 2]
(* 11111111₂ *)Display in hexadecimal:
BaseForm[255, 16]
(* ff₁₆ *)Please visit the official Wolfram Language Reference for more details.