CONVERT · SEE THE BITS · LEARN

Binary Converter

Convert binary, decimal, hexadecimal and octal in one place, then inspect the bits and the math behind the answer.

2 · 8 · 10 · 16live bases
8–64 bitsigned lab
localno API
NUMBER CONVERTER

Type in any base

Unsigned42
Signed42
Hex0x002A
Bits used6
BIT VIEW

Toggle a bit to see every base update

16-bit unsigned · 0 to 65,535
WHY THIS VALUE?

Place-value breakdown

QUICK REFERENCE

Bits that are worth memorizing

TEXT / UTF-8

See how text becomes bytes

UTF-8 · local
Number systems guidebinary · hex · two’s complement · UTF-8

Binary

Each position is a power of two. The rightmost bit is 2⁰, then 2¹, 2² and so on. A 1 includes that weight; a 0 does not.

Hexadecimal

One hex digit maps to exactly four binary bits. That is why developers often group binary into nibbles: F₁₆ = 1111₂.

Signed two’s complement

With a fixed word size, the top bit is the sign bit. If it is set, subtract 2^bits from the unsigned pattern to get the signed value.

Text bytes

Text is encoded as bytes. This lab uses UTF-8, then displays each byte in binary, hex and decimal. Non-ASCII characters can use more than one byte.