Technology
Binary, Decimal and Hex Converter
Convert a whole number between decimal, binary, hexadecimal and octal formats, useful for programming and networking tasks.
Your results
Selected baseHexadecimal: FF
Binary11111111
Hexadecimal0xFF
Octal377
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.
Related calculators
Subnet CalculatorWork out the network address, broadcast address, subnet mask and usable host range for an IPv4 address and prefix length.IP Address Range CalculatorCalculate the first, last and total number of IPv4 addresses covered by a given network address and prefix length.Unix Timestamp ConverterConvert between a Unix timestamp (seconds since 1 January 1970) and a human-readable date and time in AEST/AEDT or UTC.Password Entropy CalculatorEstimate a password's strength in bits of entropy from its length and the character set used, plus a rough crack-time indicator.Bandwidth CalculatorEstimate the total network bandwidth needed for a number of simultaneous users or devices on a connection.