Tool UI
Number Tool
Hex Binary Octal Decimal Converter
Enter a hexadecimal, binary, octal, or decimal value and the other numeric bases update immediately in the browser without needing a convert button.
This is useful for bitmask debugging, low-level programming, embedded work, systems tooling, and quick numeric base translation.
About the base converter
This page converts between hexadecimal, binary, octal, and decimal representations instantly. It is useful when different parts of a system or codebase represent the same value in different numeric formats.
Because the fields update as you type, it works well for checking small values from logs, constants, bitmasks, permissions, protocol notes, and examples in technical documentation.
How to use the tool
- Type a value into the hex, binary, octal, or decimal field.
- The other three fields update automatically as you type.
- Use Clear to empty all fields and start over.
What are hex, binary, octal, and decimal?
Binary is base 2 and uses only 0 and 1. Octal is base 8 and uses digits 0 through 7. Decimal is base 10 and uses digits 0 through 9. Hexadecimal is base 16 and uses digits 0 through 9 plus letters A through F.
These formats are common in programming, debugging, memory inspection, file permissions, networking, and hardware-oriented workflows.
Why use a base converter?
Numeric bases are easy to confuse when converting by hand. A live converter helps verify values quickly and avoids mistakes in debugging or documentation.
Where base conversion shows up
Hexadecimal is common for bytes, colors, addresses, checksums, and low-level constants. Binary is useful when you need to see individual bits. Octal still appears in Unix-style file permissions, where a value like 755 represents read, write, and execute bits.
For example, decimal 42 is hexadecimal 2a, binary 101010, and octal 52. Seeing all four forms together makes it easier to compare documentation, logs, and source code that use different conventions.
Input rules
- Binary input accepts only
0and1. - Octal input accepts digits
0through7. - Decimal input accepts whole-number digits.
- Hexadecimal input accepts digits and letters
athroughf, with or without a0xprefix.