Skip to content
CalcWorld

Browse all tools

Number System Converters

Number system converters for binary, octal, decimal and hexadecimal. A number system, or base, writes numbers with a fixed set of digits: everyday counting uses base 10, computers store everything in base 2, and programmers shorten long binary strings with base 8 (octal) or base 16 (hexadecimal), where A to F stand for 10 to 15.

The same two methods cover every conversion. To go from another base to decimal, multiply each digit by its place value, a power of the base, and add the results. To go from decimal to another base, divide by the base again and again and read the remainders from last to first.

Binary, octal and hexadecimal convert to each other by grouping bits: three binary digits make one octal digit, and four make one hexadecimal digit.

For one tool that does everything, use the base converter, which works between any two bases from 2 to 36. The single-purpose pages are quicker when you know what you need: binary to decimal, decimal to binary (including fractions), hex to decimal and decimal to hex.

The grouping converters are binary to hex, hex to binary and binary to octal. The hex converter handles ten conversion pairs between hexadecimal, decimal, binary and octal and shows its steps.

The number 255 written in four number systems: 11111111 in binary (8 digits), 377 in octal (3 digits), 255 in decimal (3 digits) and FF in hexadecimal (2 digits).
The bigger the base, the fewer digits a number needs.

All number system converters

Sources