How to Convert Numbers Between Bases
Number Base Conversion
When to Convert Number Bases
Convert between decimal, binary, hexadecimal, and octal when debugging low-level code, reading memory addresses, interpreting bitmask flags, or verifying color hex values against decimal RGB components during systems programming and hardware troubleshooting.
Supported Conversions
Enter a number in one base and see equivalent representations in others. Binary output helps inspect bit patterns. Hexadecimal is standard for memory dumps and color channels. Octal appears in legacy Unix file permissions.
Developer Tips
- Prefix hex with
0xin code — the tool accepts common input formats - Watch for overflow when converting very large integers beyond safe JavaScript range
- Use binary view to verify individual flag bits in permission or status masks
Frequently asked questions
Are negative numbers supported?
Yes. Two's complement representation is used for negative values in binary and hex output.
What is the maximum value?
Very large integers may lose precision beyond JavaScript's safe integer range (2^53 - 1). Use BigInt-aware tools for larger values.