Developer Tools

Number Converter

Convert numbers between decimal, binary, hexadecimal, octal, ASCII, Roman numerals, and locale formats.

ASCIIN/A
RomanCCLV
Formatted255

About the number base converter

Convert between decimal, binary, hex, octal, and any base from 2 to 36. Useful for debugging bitwise operations, reading low-level docs, or understanding why 0xFF equals 255.

Frequently asked questions

Why do programmers use hex?

Each hex digit represents exactly four bits, so a byte fits in two hex digits and a 32-bit color in six. Much shorter than binary, more aligned to byte boundaries than decimal.

What about negative numbers?

The tool shows two's complement for binary and hex, which is the representation used by virtually all modern hardware.