Binary, Decimal and Hex Converter
Convert a whole number between decimal, binary, hexadecimal and octal formats, useful for programming and networking tasks.
Your results
Calculation breakdown
- Binary
- decimal converted to base 2
- Hexadecimal
- decimal converted to base 16
- Octal
- decimal converted to base 8
Worked example
The decimal number 255 is 11111111 in binary, FF in hexadecimal, and 377 in octal.
Assumptions
- Accepts non-negative whole numbers only.
- Accurate for values up to 2^53 − 1, the safe integer limit in JavaScript.
How this calculator works
Enter a decimal number and choose an output base to instantly see it in binary, hexadecimal and octal — a quick reference tool for programming, networking and electronics work.
Frequently asked questions
What is hexadecimal used for?
Hexadecimal (base 16) is commonly used to represent memory addresses, colour codes and MAC/IP-related values compactly.
Can I convert negative numbers?
This converter works with non-negative whole numbers; negative and fractional values are outside its scope.
What is the largest number supported?
Values are handled as standard JavaScript numbers, safely accurate up to 2^53 − 1.
Editorial review and responsibility
Reviewed by the CalcAussie editorial team on 21 September 2026. Review scope: Method, Australian terminology, material assumptions, source links and user-facing limitations.
Calculator results remain estimates based on the figures entered. Check material decisions against current official information and report a suspected error so it can be reproduced and corrected.