Routelearn.net
Calculators

Binary / Hex / Decimal Converter

Switch a number between binary, octal, decimal, and hexadecimal, or turn a full IPv4 address into binary and hex.

How it works

Every whole number can be written in any base: binary (base 2), octal (base 8), decimal (base 10), or hexadecimal (base 16). They all show the exact same value. Only the digits and place values look different.

In IPv4 mode, the address is first read as four 8-bit octets joined into one 32-bit number. Then that number is converted. This is the same math the Subnet Calculator uses for its binary breakdown and network identifiers.

FAQ

Why would a network engineer need binary/hex conversion?
Subnet masks, wildcard masks, and IP addresses are all just 32-bit binary numbers underneath their dotted-decimal notation. Being able to read them in binary is what makes subnetting math make sense. Hex shows up too, in MAC addresses, IPv6, and packet captures.
What does "IPv4 address" mode do differently?
Instead of converting one plain number, it takes a full dotted-decimal address (like 192.168.1.10). It turns that into a single 32-bit number, then shows that number in binary and hex. This is the same form used in the Subnet Calculator's binary breakdown and network identifiers.
Is there a limit to how large a number I can convert?
Plain-number mode handles anything up to 2^53 (JavaScript's safe integer limit). That's far more than a 32-bit IPv4 address or subnet mask would ever need.

Related tools