English

Number Base Converter

Type a number, choose the base it is written in, and see it in binary, octal, decimal and hexadecimal, with the working shown.

Binary111 1110 1010
Octal3752
Decimal2,026
Hexadecimal7EA
Show the working
DivideQuotientRemainder (digit)
2026 ÷ 210130
1013 ÷ 25061
506 ÷ 22530
253 ÷ 21261
126 ÷ 2630
63 ÷ 2311
31 ÷ 2151
15 ÷ 271
7 ÷ 231
3 ÷ 211
1 ÷ 201
Read the remainders from the bottom up: 11111101010

How it works

  • A base (or radix) says how many digits a number system uses: binary uses 0 and 1, octal 0 to 7, decimal 0 to 9, and hexadecimal 0 to 9 plus A to F (10 to 15).
  • To read a number in any base, multiply each digit by the base raised to its position (counting from 0 on the right) and add the results.
  • To write a decimal number in another base, divide by the base repeatedly and read the remainders from the last to the first.
  • Prefixes 0b (binary), 0o (octal) and 0x (hex) are accepted, and spaces or underscores between digits are ignored. Very long numbers stay exact.

Frequently asked questions

Why do programmers use hexadecimal?

One hex digit stands for exactly four binary digits, so a byte (8 bits) is always two hex digits. 1111 1111 in binary is FF in hex and 255 in decimal.

Can I convert negative numbers?

Yes, with a minus sign. The tool shows the signed value, not a two's complement bit pattern.

Calculations run in your browser. Nothing you enter is sent anywhere or added to a searchable page address. How we calculate