We use cookies to understand how DevToolsHub is used and to improve your experience. You can choose which types of cookies to allow.
Convert numbers between binary, octal, decimal, hexadecimal, and custom bases.
Loading...
Loading...
Number base conversion is the process of translating a number from one positional numeral system to another. While humans typically use the decimal system (base 10) β with ten digits from 0 to 9 β computers fundamentally operate in binary (base 2), using only 0 and 1. Other bases like octal (base 8) and hexadecimal (base 16) serve as convenient shorthand for representing binary data in a more compact, human-readable form. Each base defines a set of valid digits: base 2 uses 0-1, base 8 uses 0-7, base 10 uses 0-9, and base 16 extends to 0-9A-F. Bases up to 36 are standardized using the digits 0β9 and letters AβZ, where A=10, B=11, and so on up to Z=35.
Converting between bases is a fundamental skill in computer science, electrical engineering, and low-level programming. Whether youβre configuring network masks in hexadecimal, setting register values in binary, or debugging memory addresses, you need to quickly and accurately translate numbers between representations. Doing this by hand is error-prone, especially with large numbers or uncommon bases like base 32 or base 36. A reliable converter tool eliminates the guesswork and lets you focus on the problem at hand.
0x for hexadecimal, 0b for binary, 0o for octal, and no prefix defaults to decimal.chmod 755).#FF5733), MAC addresses, and machine code.Loading...