Binary

Base 2 · Digits 0-1

0b

4-bit unsigned (fits in uint8)

Octal

Base 8 · Digits 0-7

0o

4-bit unsigned (fits in uint8)

Decimal

Base 10 · Digits 0-9

4-bit unsigned (fits in uint8)

Hexadecimal

Base 16 · Digits 0-9, A-F

0x

4-bit unsigned (fits in uint8)

Binary grouped by nibble (4 bits)

1010

Tip

Paste a value with its standard prefix and we will recognize it: write 0b1010 for binary, 0o12 for octal, or 0xA for hex. Negative numbers also supported (BigInt precision).