Number Base Converter

Type a number in any base — binary, octal, decimal or hexadecimal — and all other bases update instantly. Supports large integers. Runs entirely in your browser with no data uploaded.

Number Base Reference

DecimalBinaryOctalHex
0000000
1000111
4010044
81000108
10101012A
15111117F
161 00002010
2551111 1111377FF
2561 0000 0000400100

Why Hexadecimal in Programming?

Hex is popular in programming because it maps cleanly to binary: each hex digit represents exactly 4 bits. A full byte (8 bits) is always two hex digits. This makes reading memory addresses, color codes and bitmasks much easier than looking at long binary strings.

How to Convert Manually

To convert decimal to binary, repeatedly divide by 2 and note the remainders. To convert from binary to hex, group the binary digits into groups of 4 from the right and convert each group. For example: 110110011101 1001D 9D9.

Frequently Asked Questions

What is a number base?

The radix defines how many digits a number system uses. Decimal = 10, binary = 2, octal = 8, hexadecimal = 16.

Why do computers use binary?

Binary maps to the two physical states of electronic circuits: on (1) and off (0). All computer data is ultimately binary.

What is hexadecimal used for?

Hex compactly represents binary data — one hex digit = 4 bits, so a byte is two hex digits. Used for memory addresses, colors and bitmasks.

Can I convert negative numbers?

This tool converts positive integers. Negative binary uses two's complement, which requires knowing the word size.