๐Ÿ”ข Number Base Converter

Binary โ†” octal โ†” decimal โ†” hex โ€” type in any field, the others update instantly. Handles numbers of any size.

About number bases

๐Ÿ”Ÿ What a base is

The base (or radix) is how many digit symbols a number system uses. Decimal uses ten (0โ€“9); binary uses two (0โ€“1); hex uses sixteen (0โ€“9 then Aโ€“F, where A=10 and F=15).

๐Ÿ’ป Why computers use binary

Hardware stores everything as on/off states, so all data is ultimately binary. Hex is popular with programmers because each hex digit maps to exactly 4 bits โ€” FF is 11111111.

๐ŸŽจ Everyday hex: colors

A web color like #667EEA is three hex bytes โ€” red 66 (102), green 7E (126), blue EA (234). Converting hexโ†”decimal is exactly what this tool does.

๐Ÿ˜ Any size number

This converter uses arbitrary-precision integers, so 100-digit numbers convert exactly โ€” no rounding at 15 digits like calculators that rely on floating point.

๐Ÿ”ค Bases up to 36

Beyond 9, digits continue with letters: base 36 uses 0โ€“9 plus Aโ€“Z. Base-36 strings are the densest identifiers that stay case-insensitive and URL-friendly.

โž– Negative numbers

A leading minus sign works in every field. (Note this shows mathematical negation, not two's-complement bit patterns used inside CPUs.)