Number Base Converter
This number base converter handles binary, octal, decimal, hexadecimal, and Roman numerals alongside deeper systems including balanced ternary, negabinary (base -2), factorial base, and the complex bases quater-imaginary and twindragon. A High Precision tab converts between any two arbitrary radixes using exact big-integer math, so extremely large integers never lose precision, and an IEEE 754 tab breaks a number down into its 32-bit and 64-bit floating-point representation. Everything runs entirely in your browser, with no numbers sent to a server.
Convert between binary, hexadecimal, decimal, Roman numerals and thousands more — including balanced ternary, negabinary, factorial base, and the complex bases quater-imaginary and twindragon. Enter a value in any field to see it converted across every enabled system, instantly, in your browser.
Frequently asked questions
What number ranges does the converter support?
The Converter and High Precision tabs support integers of arbitrary size, positive or negative, with no upper limit like a spreadsheet would impose. The two complex bases — quater-imaginary and twindragon — are capped to the JavaScript safe-integer range, and Roman numerals only cover 1 through 3999.
What is negabinary?
Negabinary is base -2, a positional number system that uses only the digits 0 and 1 but represents both positive and negative integers without a separate minus sign, because place values alternate in sign moving left: 1, -2, 4, -8, 16, and so on.
What are quater-imaginary and twindragon?
Quater-imaginary (base 2i) and twindragon (base -1+i) are number systems that represent ordinary integers using a complex number as the radix instead of a real one — a genuine curiosity from number theory that this converter supports alongside practical bases like binary and hex.
What does the High Precision tab add over the main converter?
The High Precision tab lets you pick any two radixes, not just the built-in systems, and converts between them using exact big-integer arithmetic, so extremely large numbers keep full precision instead of rounding the way floating-point math would.
How do I see a number’s IEEE 754 floating-point representation?
Switch to the IEEE 754 tab and enter a decimal number to see its exact 32-bit (single-precision) and 64-bit (double-precision) breakdown — sign bit, exponent bits, and mantissa bits — the same layout used internally by most programming languages.
What is factorial base and how does it differ from balanced ternary?
Factorial base represents a number as a sum of multiples of factorials (1!, 2!, 3!, and so on), with each digit bounded by its position, and it is commonly used in combinatorics to enumerate permutations; balanced ternary instead uses base 3 with digits -1, 0, and 1, which lets any integer be represented without a separate sign.