Number Base & Roman Numeral Converter
Results
Bases 2–36 and Roman numerals are supported, with exact BigInt arithmetic for very long integers.
You read hex when you debug, octal when you check file permissions, base 36 in short links, and Roman numerals on copyright pages or Super Bowl logos. This tool puts decimal, binary, octal, hexadecimal and base 36 on one screen: enter any of them and the other four appear instantly, with the Roman numeral underneath. The maths uses JavaScript's BigInt rather than floating point, so a 100-digit or 300-digit integer converts digit for digit with no trailing zeros invented. The 0x, 0b and 0o prefixes are understood, spaces, commas and underscores are ignored, and negatives take a leading minus sign. It handles integers only; for fractional values use the hexadecimal converter instead. Everything runs locally in the browser.
Use Cases
- Learning bases: type 255 and see 1111 1111, 377, FF, 73 and CCLV line up at once
- Debugging memory addresses: turn 0x7ffee3a into decimal to check an offset
- Reading Unix permissions: see 755 as 111 101 101 and understand rwxr-xr-x bit by bit
- Bitmask checks: convert 0b1010_1100 against 0xFF to confirm which bits are set
- Colour codes: split the FF, 57 and 33 of #FF5733 into decimal to get RGB(255, 87, 51)
- Short links and invite codes: turn an auto-increment ID of 1295 into base 36 zz so URLs stay short and IDs are not enumerable
- Protocol fields: convert hex lengths and flag bytes from a packet capture into decimal for the spec
- 64-bit IDs: convert 18446744073709551615 to hex to prove nothing overflowed
- Subnet masks: write 255.255.255.0 as 24 ones and check the /24 prefix length
- Roman numerals in the wild: read MMXXVI on a copyright page as 2026, or Super Bowl LVIII as 58
- Homework and marking: generate binary, hex and Roman questions and check the standard answers
- Teaching: show one value in five bases side by side to make the point that a base is only a spelling
How to Use
- Pick the notation you have
- Enter the value
- Read the five results
Features
- Six input sources: decimal, binary, octal, hexadecimal, base 36 and Roman numerals, each parsed according to its own rules
- Five results on one screen: whichever base you type in, you get decimal, binary, octal, hexadecimal and base 36 at the same time
- BigInt arithmetic: beyond JavaScript's 53-bit safe integer limit, so 4294967295, 18446744073709551615 and 300-digit numbers stay exact instead of losing their last digits
- Tolerant input: 0x for hex, 0b for binary, 0o for octal, and spaces, commas or underscores anywhere in the string
- Binary grouped in nibbles: 11111111 displays as 1111 1111, matching how memory dumps, bitmasks and permission bits are read
- Two-way Roman numerals: numbers become standard subtractive notation, and Roman input parses back to a value; non-standard spellings are rejected rather than guessed
- Local only: the value you type never reaches a server, and the page uses no cookies or localStorage
FAQ
How large a number can I convert?
In practice the limit is browser memory. Values are held as BigInt, never as a double, so 2 to the 200th power or a 300-digit decimal converts exactly, and the 32-bit and 64-bit boundaries (4294967295 and 18446744073709551615) are routine. The classic trap is using Number above 9007199254740991, where the last digits quietly turn into zeros; this page does not do that.
Can I convert fractions such as 10.5 to binary?
Not here. This page is integer-only and a decimal point is reported as an invalid character. Fractional base conversion involves repeating expansions and a rounding decision (0.1 is infinite in binary), which needs a different algorithm, so use the hexadecimal converter on this site: it runs on Decimal.js and keeps a fixed number of fractional digits. Integers are better here, fractions are better there.
Why are there spaces in the binary result?
Readability. Binary is grouped in fours from the right, and each group maps to exactly one hex digit: 1111 is F, 1111 1111 is FF. Strip the spaces before pasting into code, or copy the hex result instead. For bitwise work, masks and permission bits the nibble grouping is the fastest way to read a value.
Can I paste something like 0xFF directly?
Yes. With the source set to hexadecimal the leading 0x is dropped, with binary 0b is recognised and with octal 0o. A prefix that does not match the selected base is not treated as a prefix but as an invalid character, so 0x10 is never silently read as decimal. Spaces, commas and underscores can appear anywhere, for example 1_000_000.
Why do Roman numerals stop at 3999?
Because standard Roman notation has only I, V, X, L, C, D and M, so the largest number is MMM (3000) plus CM (900) plus XC (90) plus IX (9), which is 3999. Beyond that you need an overline to mean multiply by 1000, an extension that fonts, keyboards and web pages cannot represent reliably, so this tool stays within 1–3999. Enter larger values in decimal and convert them to binary or hex instead.
Why is IIII rejected?
Standard Roman numerals use subtractive notation: 4 is IV, not IIII, and 9 is IX, not VIIII. The IIII seen on clock faces is a dial-making tradition, not the standard. This tool parses the input, writes the value back and requires the two strings to match, so IIII, VX, IC and MMMM are all rejected rather than turned into a plausible but non-standard number.
Can Roman numerals be converted straight to binary?
Yes, through the numeric value: set the source to Roman, type MCMXCIV, and the tool parses 1994, then shows binary 11111001010, octal 3712, hex 7CA and base 36 1JQ. The reverse works too: decimal 2024 becomes MMXXIV. Roman numerals are not a positional base at all, just another way of writing the same number.
How are negatives and zero handled?
Negatives keep a leading minus sign in binary, octal, hex and base 36, so -255 is -ff in hex. That is not two's complement: two's complement depends on word width (8, 16 and 32 bits all differ), so convert bit patterns yourself if that is what you need. Zero is 0 in every base, while Roman numerals have no zero or negative, so that field stays empty for 0 and below.
What is base 36 actually used for?
It uses the 36 characters 0–9 and a–z, so a value takes far fewer characters than in decimal. That makes it popular for short links, invite codes, order numbers and obfuscated database IDs. Decimal 1295 is zz in base 36 and 1000000 is lfls. Characters are case-insensitive and this tool always outputs lowercase.
How is this different from your hexadecimal converter?
The hex converter accepts any base from 2 to 36 and handles fractions with Decimal.js; this page fixes five common bases plus Roman numerals and focuses on exact conversion of very large integers with a side-by-side view. For everyday 0x values and bitwise work this page is faster; for arbitrary bases or a fractional value such as 10.5 to binary, use the hex converter.
Privacy & Security
This converter runs entirely in your browser. Values you type are never sent to a server, logged or stored, and the page uses no cookies, no localStorage and no external API, so closing the tab clears everything from memory.
- Length Converter
- Mass/Weight Converter
- Area Converter
- Volume Converter
- Time conversion
- Speed Converter
- Wire Gauge Converter / Sizing Tool
- Force Converter
- Pressure conversion
- Energy Converter
- Power Converter
- Density Converter
- Torque conversion
- Temperature Converter
- Angle Converter
- Currency Converter
- Frequency Converter
- Voltage Converter
- Current Converter
- Resistance Converter
- Capacitance Converter
- Inductance Converter
- Charge Converter
- Concentration Converter
- Illuminance Converter
- Lumens to Candela Converter
- Data Storage Converter
- Data Transfer Rate Converter
- Fuel Consumption Converter
- Shoe Size Converter
- Cooking Measurement Converter
- Number Base & Roman Numeral Converter
- Sound Pressure Level Converter
- Acceleration Converter
- Blood Sugar Converter
- Metric Prefix Converter
- Paper Size Converter
- Ring Size Converter
- Angular Velocity Converter
- Magnetism Converter
- Specific Heat Converter
- Thermal Conductivity Converter
- Tire Size Converter
- Height & Weight Converter
- Clothing Size Converter
- Number to Words Converter
- Time Zone Converter
- Flow Rate Converter
- Amount of Substance Converter
- Kinematic Viscosity Converter
- Surface Tension Converter
- Heat Flux Converter
- Heat Transfer Coefficient Converter
- Thermal Resistance Converter
- Hardness Converter
- Radiation dose conversion
- Radioactivity Converter
- Flow Rate Converter
- Viscosity Converter
- Temperature Difference Converter
- Font size unit conversion
- Unit Converter