Number Base Converter (binary, octal, hex)
Private by design — runs entirely in your browser
Convert numbers between binary, octal, decimal, and hexadecimal in your browser. Toova shows all four representations side by side, supports negative numbers and large values, and runs entirely on your device.
Where each base shows up
Binary appears in flags, bitmasks, and low-level protocols. Octal is rare today but still used for Unix file permissions. Decimal is universal in everyday use. Hexadecimal dominates in colors, memory addresses, hash digests, and any context where you want a compact representation of binary. Toova converts between all four in one paste, with the full result visible side by side.
Bit width and signed integers
When dealing with signed integers, the bit width matters. -1 as a 32-bit two's-complement integer is 0xFFFFFFFF; as a 64-bit integer it is 0xFFFFFFFFFFFFFFFF. Toova lets you pick the bit width (8, 16, 32, 64) and the signedness, so you can see exactly how a value would appear in a register or a binary protocol. Useful when debugging serial protocols, embedded systems, or low-level networking.
Local-only
Every conversion runs in your browser. The numbers you paste never leave the page, which matters when they are addresses, IDs, or anything that could leak context about your system. The Network tab will stay empty during use, and the page works offline after first load.
Frequently Asked Questions
- Why is hex so common in programming?
- Each hex digit represents exactly four bits, so two hex digits cover one byte exactly. That makes hex the most compact human-readable representation of binary data. Memory addresses, color codes, and hash digests all use hex for the same reason.
- How are negative numbers represented?
- Toova uses two's-complement representation, which is what every modern CPU and programming language uses. Pick the bit width that matches your context — for example, a 32-bit signed integer wraps differently than a 64-bit one.
- Can I convert very large numbers?
- Yes. Toova handles arbitrary-precision integers, so numbers larger than 64 bits convert correctly. There is no overflow at JavaScript's Number.MAX_SAFE_INTEGER boundary.
- What about floating-point numbers?
- This converter focuses on integers. For exploring the binary representation of floating-point values (IEEE 754), look for a dedicated float-bits tool.
- Is my data sent anywhere?
- No. Conversion runs entirely in your browser.