Number Base Converter
Convert between binary, octal, decimal, and hex
Enter a number to convert between bases
About This Tool
Number base conversion is the process of representing a numeric value in different positional numeral systems. The most commonly used bases in computing are binary (base 2, digits 0-1), octal (base 8, digits 0-7), decimal (base 10, digits 0-9), and hexadecimal (base 16, digits 0-9 and A-F). Binary is the fundamental language of computers, representing data as sequences of ones and zeros. Hexadecimal is widely used in programming for memory addresses, color codes, and binary data representation because each hex digit maps neatly to four binary digits. Our free online number base converter lets you instantly convert between binary, octal, decimal, and hexadecimal, with support for large numbers and negative values.
How to Use
- Enter a number in any supported base into the input field. The tool auto-detects the base from common prefixes: 0b for binary, 0o for octal, 0x for hexadecimal, or plain digits for decimal.
- The converted values in all four bases (binary, octal, decimal, hexadecimal) are displayed instantly. Each output includes proper prefix notation and formatted grouping for readability.
- Use the base selector to manually specify the input base if your number uses a non-standard format or if you want to force a specific interpretation.
- Copy any converted value to your clipboard. Binary output is grouped in sets of 4 digits, and hexadecimal output uses uppercase letters by default, both of which are common conventions in programming.