Number Base Converter

Convert numbers between binary, octal, decimal and hexadecimal. Free, fast and easy to use.

DECBINOCTHEX
0000000
1000111
2001022
3001133
4010044
5010155
6011066
7011177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F
16100002010

How it works

Type a number in any field and the other number systems update instantly. Binary uses the digits 0 and 1, octal 0–7, decimal 0–9 and hexadecimal 0–9 plus A–F. The converter works with whole numbers of any size, including negative numbers.

Calculations run locally in your browser. Results are for information only — for engineering, electrical or financial decisions, verify the assumptions and applicable standards.

Frequently asked questions

How do I convert a decimal number to binary?

Divide the number by 2 repeatedly and write the remainders in reverse order. For example 13 → 1101, because 13 = 8 + 4 + 1.

What is hexadecimal used for?

One hex digit represents exactly 4 bits, so it is a compact way to write binary data – for colours (#FF8800), memory addresses or MAC addresses.