Number Base Converter

Convert between binary, octal, decimal, and hexadecimal instantly. Type in any field and the others update live.

base 2
base 8
base 10
base 16

Binary Bit Display

Enter a number above to see its binary representation

Custom Base Converter

Convert to or from any base between 2 and 36. Type a value here to update all fields above, or type above to see the result here.

Understanding Number Bases

A number base (or radix) determines how many unique digits are used to represent numbers. We use base 10 (decimal) in everyday life because we have 10 fingers, but computers work in base 2 (binary) since transistors have two states: on and off.

Common Number Bases

BaseNameDigitsUsed For
2Binary0-1Digital circuits, low-level programming
8Octal0-7Unix file permissions, legacy systems
10Decimal0-9Everyday counting, mathematics
16Hexadecimal0-9, A-FMemory addresses, colors, byte values

Quick Reference

DecimalBinaryOctalHex
0000000
81000108
10101012A
15111117F
16100002010
25511111111377FF

Common Use Cases

CSS Colors: Hex values like #FF5733 represent RGB color channels (255, 87, 51 in decimal).

IPv4 Addresses: Each octet is a decimal number 0-255 (one byte, or 8 binary digits).

File Permissions: Unix chmod uses octal, e.g., 755 means rwxr-xr-x.

Memory Addresses: Displayed in hexadecimal for compact representation of large binary values.

This tool supports arbitrarily large numbers using BigInt. Your data never leaves your browser.