Math
Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal instantly.
Instant Results
100% Free
Mobile Ready
Number Base Converter
8-bit view
—Binary (Base 2)
—Octal (Base 8)
—Decimal (Base 10)
—Hexadecimal (Base 16)
Number Systems
Computers work in binary (base-2). Programmers regularly work with hexadecimal (base-16) as a compact binary representation. Octal (base-8) is used in Unix file permissions.
Conversion Method
To convert from decimal to any base, repeatedly divide by the target base and collect remainders from bottom to top.
To convert from any base to decimal, multiply each digit by its positional power of the base and sum the results.