DEV

Number System Converter

Type a number into any field and the other three update immediately — binary, octal, decimal and hexadecimal.

How it's calculated

Each field is parsed in its own base and converted internally using arbitrary-precision integer math, so very large numbers stay exact instead of losing precision. A leading - for negative numbers and common prefixes (0x, 0b, 0o) are accepted on input and stripped automatically.

Reference

DecimalBinaryOctalHex
10101012A
16100002010
25511111111377FF

Frequently asked

Why does typing an invalid digit show an error instead of just ignoring it?

Silently dropping an invalid character could leave you looking at a number you didn't actually type. An explicit error — naming the exact invalid digit — is safer for something you might copy into code.

Does this handle negative numbers?

Yes — a leading minus sign is preserved across all four bases.