0x

Number Base Converter

Convert between binary, octal, decimal & hex

πŸ”’ 100% client-side β€” your data never leaves this page
Enter a value in any field β€” others update instantly
Binarybase 2
Octalbase 8
Decimalbase 10
Hexadecimalbase 16
Try:

About this tool

Convert any number between the four most common bases: binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). Enter a value in any field and all others update instantly.

Frequently Asked Questions

What is hexadecimal used for?

Hexadecimal (base 16) is widely used in programming to represent binary data more compactly. It appears in color codes (#FF5733), memory addresses, and encoding schemes.

What is binary?

Binary (base 2) uses only 0 and 1. It is the fundamental language of computers, as electronic circuits naturally represent two states: on and off.

How do I convert decimal to binary?

Repeatedly divide the number by 2 and record the remainders from bottom to top. For example, 13 in binary is 1101. This tool does it instantly for you.