Free Online Tool

Number Base Converter

Convert between Binary, Octal, Decimal, and Hexadecimal

No data is sent to any server — everything runs client-side

Type in any field — the others update in real-time. Supports large numbers via BigInt.

BinaryPrefix: 0bBase 2
OctalPrefix: 0oBase 8
DecimalBase 10
HexadecimalPrefix: 0xBase 16

Understanding Number Bases

A number base (or radix) defines how many unique digits are used to represent numbers. We use base-10 (decimal) in everyday life because we have 10 fingers. Computers use base-2 (binary) because transistors have two states (on/off). Hexadecimal (base-16) is a convenient shorthand for binary — each hex digit maps to exactly 4 binary digits.

Quick Reference

DecimalBinaryOctalHex
0000
1111
21022
410044
81000108
10101012A
15111117F
16100002010
321000004020
64100000010040
12711111111777F
1281000000020080
25511111111377FF
256100000000400100

When to Use

CSS Colors

Hex color codes (#FF5733) are base-16 RGB values. Convert to decimal to find the exact R/G/B values (255, 87, 51).

Bitwise Operations

Debug bit flags, permissions (chmod 755 = 111 101 101), and bitwise AND/OR/XOR operations by viewing values in binary.

Memory Addresses

Memory addresses and pointers are displayed in hex. Convert to decimal for offsets or binary for bit-level analysis.

Network & IP

Subnet masks (255.255.255.0 = 11111111.11111111.11111111.00000000), IPv6 addresses (hex), MAC addresses (hex).

Related Tools

Built by JDApplications