Converts a number from one base to another. Supports bases from 2 to 36.
VARCHARDiperbarui: 13 Jun 2026CONV(num, from_base, to_base)The number to convert (as a string)
The source base (2–36)
The target base (2–36)
1 SELECT CONV(10, 10, 2) AS binary_str;
Converts the decimal number 10 to binary.
1 SELECT CONV('FF', 16, 10) AS decimal_str;
Converts the hex value FF to decimal.
1 SELECT CONV('11111111', 2, 8) AS octal_str;
Converts a binary number to octal.
Sudah paham CONV? Latih langsung di browser
Latihan interaktif, langsung di browser.