ILOMRAHomeStudy topicsFree toolsTest zoneSearch any topic
Free online tool

Binary, Decimal, Octal and Hex Converter

Type a number, choose its base, and see it in binary, octal, decimal and hexadecimal at the same time. Useful for computer science homework.

Last updated: 24 November 2026

How it works

Computers store numbers in binary, which uses only 0 and 1. Each binary digit is a power of 2, so 1101 is 8 + 4 + 0 + 1 = 13. Hexadecimal uses 0 to 9 and A to F and is a short way to write binary, because one hex digit equals four binary digits.

To convert decimal to binary by hand, divide by 2 again and again and read the remainders from bottom to top. Example: 13 gives remainders 1, 0, 1, 1, so 13 = 1101.

In British exams, decimal is often called denary, so this page is also a binary denary converter: choose Decimal (base 10) as the base of your number and read off the binary result.

Frequently asked questions

How do I convert binary to decimal?

Multiply each digit by its power of 2 and add them. For 1101: 1×8 + 1×4 + 0×2 + 1×1 = 13.

How do I convert to binary or to decimal?

Type the number, choose its base, and the result shows it in binary, octal, decimal and hexadecimal at once.

How do I convert decimal to binary?

Keep dividing by 2 and write down the remainders, then read them from last to first.

What is 255 in binary?

11111111, and in hexadecimal it is FF.

What do the letters A to F mean in hex?

A to F stand for 10 to 15.

Does the binary converter handle very large numbers?

Yes, it uses exact big-number arithmetic, so long values are converted without rounding.

More free tools

All free tools

Studying this topic?

Free notes and MCQs: Python Programming Basics.