ficklestudio26

Decimal to Binary Converter

Turn a decimal number into binary.

Quick answer: Type a decimal number to get binary. For example 10 is 1010, 255 is 11111111 and 1024 is 10000000000.

—

How to use it

  1. Type your number. Hex may use the letters A to F.
  2. Choose the base it is written in and the base you want.
  3. The answer appears in large type, with all four bases shown below.

Quick reference

DecimalBinaryOctalHex
1111
21022
81000108
10101012A
15111117F
16100002010
321000004020
64100000010040
100110010014464
1281000000020080
25511111111377FF
256100000000400100
1000111110100017503E8
1024100000000002000400

The repeated division method

Divide the number by 2 and write down the remainder. Divide the result by 2 again, and keep going until you reach 0. Read the remainders from the last to the first. For 13: 13 ÷ 2 = 6 remainder 1, 6 ÷ 2 = 3 remainder 0, 3 ÷ 2 = 1 remainder 1, 1 ÷ 2 = 0 remainder 1. Reading backward gives 1101.

A quick reference

Powers of two are the easy cases: 1 is 1, 2 is 10, 4 is 100, 8 is 1000, 16 is 10000. Any number is a sum of them, so 22 = 16 + 4 + 2 = 10110.

Binary to Decimal Converter

Quick reference

DecimalBinaryOctalHex
1111
21022
81000108
10101012A
15111117F
16100002010
321000004020
64100000010040
100110010014464
1281000000020080
25511111111377FF
256100000000400100
1000111110100017503E8
1024100000000002000400

The place values method

Write the powers of two under the digits, from the right: 1, 2, 4, 8, 16, 32 and so on. Add the ones where the binary digit is 1. For 1101: 8 + 4 + 0 + 1 = 13. For 10110: 16 + 0 + 4 + 2 + 0 = 22. For a byte of eight ones, 11111111, the total is 255, the largest value a byte can hold.

Checking your work

A binary number that ends in 0 is even, and one that ends in 1 is odd. Each extra digit on the left doubles the largest value you can write, so 8 digits reach 255 and 16 digits reach 65,535.

Decimal to Hex Converter

Quick reference

DecimalBinaryOctalHex
1111
21022
81000108
10101012A
15111117F
16100002010
321000004020
64100000010040
100110010014464
1281000000020080
25511111111377FF
256100000000400100
1000111110100017503E8
1024100000000002000400

The repeated division method

Divide the number by 16 and note the remainder, using A for 10 up to F for 15. Repeat with the result until it is 0, then read the remainders from the last to the first. For 255: 255 ÷ 16 = 15 remainder 15, and 15 ÷ 16 = 0 remainder 15, so the answer is FF. For 300: 300 ÷ 16 = 18 remainder 12 (C), 18 ÷ 16 = 1 remainder 2, 1 ÷ 16 = 0 remainder 1, so 300 is 12C.

Where hex is used

Web colours, memory addresses, error codes and MAC addresses are written in hex because two hex digits are exactly one byte.

Hex to Decimal Converter

Quick reference

DecimalBinaryOctalHex
1111
21022
81000108
10101012A
15111117F
16100002010
321000004020
64100000010040
100110010014464
1281000000020080
25511111111377FF
256100000000400100
1000111110100017503E8
1024100000000002000400

The place values method

Each hex digit is worth 16 times the one to its right. Write the digits as numbers (A is 10, B is 11, up to F is 15), multiply by 1, 16, 256, 4096 from the right and add. For 2F: 2 × 16 + 15 × 1 = 47. For 1A3: 1 × 256 + 10 × 16 + 3 = 419. FF is 15 × 16 + 15 = 255.

Tips

The prefix 0x (such as 0xFF) or a # in front of a colour only tells a program that the number is hexadecimal. The letters can be upper or lower case.

What people use it for

Questions

What is 255 in binary?

255 is 11111111.

What is FF in decimal?

FF is 255.

What digits does hexadecimal use?

0 to 9 and A to F, where A is 10 and F is 15.

How large a number can it convert?

Whole numbers of any size.

Is it free?

Yes. No sign-up, no install and no limit.

Is anything saved or sent?

No. Everything runs in your browser. Only your own best score, where a page shows one, is kept on your device.

Last updated 2026-10-25. Free to use, no sign-up. Made by ficklestudio26.