0b0o0xuint8, byte, ASCIIuint16, shortuint32, intuint64How CPUs store negative integers. To negate: flip all bits (one's complement) then add 1. -1 in 8-bit = 11111111 (0xFF).
Type a negative number and enable the toggle above.
Web colors are 24-bit hex: #RRGGBB.
If your decimal value is 0–16,777,215 a live color swatch appears on the Hex panel.
Try (pure red, #FF0000).
About
The Number Base Converter translates any integer simultaneously across five number systems: binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16), and Roman numerals. All five representations update in real time as you type in any field — no submit button, no direction lock. Roman numeral input and output supports the full classical range I–MMMCMXCIX (1–3999), and only canonical forms are accepted, so IIII is correctly rejected in favour of IV. A live bit-pattern visualizer shows each bit as a lit or dim cell, grouped into nibbles (4 bits, one hex digit) and bytes. Select 8, 16, 32, or 64-bit width, enable Two's Complement to see how CPUs encode negative integers, and watch the cells update instantly. When the decimal value fits in 24 bits the hex panel shows a live colour swatch — ideal for CSS and design work. Quick-step buttons (+1, −1, ×2, ÷2) let you navigate values without retyping. All logic runs in your browser using JavaScript's native BigInt — no external libraries, no server, no data collection.
How to use
- 1 Type a number into any field (binary, octal, decimal, hex, or Roman) and all other fields update immediately.
- 2 Enter a Roman numeral such as XLII or MMXXIV in the pink Roman panel — the tool validates canonical form and converts.
- 3 Use the example pills in the toolbar to quickly load preset values like 42, 255, or 65535.
- 4 Click the step buttons (+1, −1, ×2, ÷2) to walk through values without retyping.
- 5 Select a bit width (8, 16, 32, or 64) in the bit visualizer to inspect the binary layout; enable Two's Complement for negative numbers.
- 6 Enter a number from 0 to 16,777,215 and look at the hex panel for a live colour swatch.
- 7 Click the copy icon next to any panel to copy that representation to your clipboard.
- Can I type directly into any field, including Roman numerals?
- Yes — all five fields are live inputs. Edit binary and hex updates. Edit the Roman panel and all number-base fields update. The only constraint on Roman input is that it must be a valid canonical form (I, IV, V, IX, X, XL, L, XC, C, CD, D, CM, M combinations) in the range 1–3999.
- Why does my Roman numeral get rejected?
- The tool only accepts canonically correct Roman numerals. For example, IIII is not accepted — the canonical form is IV. Similarly, VV is invalid (use X), and MMMM is invalid (3999 = MMMCMXCIX is the maximum). The validation round-trips: it converts your input to decimal and back to Roman, then checks that the result matches your input exactly.
- What is the range for Roman numeral conversion?
- Standard Roman numerals cover 1 to 3999 (MMMCMXCIX). Zero and negative numbers have no Roman representation and the Roman panel shows "Out of range". Numbers 4000 and above also exceed the classical system.
- What does the bit visualizer show for numbers larger than the selected width?
- If the value requires more bits than the selected width (for example, 256 in an 8-bit view), an overflow warning appears and the value is shown truncated to the selected width — just like an integer overflow in a CPU register.
- How does the hex colour preview work?
- Web colours are 24-bit RGB values in the range 0–16,777,215 (0x000000–0xFFFFFF). If the current number fits in 24 bits, the hex panel shows a small colour swatch and the CSS hex code. Try typing 16711680 (0xFF0000, pure red) or 65535 (0x00FFFF, cyan).
- Is my data sent to a server?
- No. All conversion, validation, and visualization runs entirely in your browser using JavaScript's native BigInt. No external libraries are loaded and no network requests are made — your numbers never leave your device.