My Tools Garage

IP to Binary Converter

Turn an IPv4 address into binary, decimal and hex.

in-browser

How to use

  1. 1 Type or paste an IPv4 address such as 192.168.1.1.
  2. 2 Read the dotted-binary representation and each octet in 8 bits.
  3. 3 Check the 32-bit binary, decimal and hexadecimal forms below.
  4. 4 Copy the binary output with one click.

About IP to Binary Converter

The IP to Binary Converter takes a dotted-decimal IPv4 address such as 192.168.1.1 and shows you exactly what it looks like at the bit level.

Each of the four octets is expanded into its 8-bit binary form, then joined into the familiar dotted-binary notation and the unbroken 32-bit string that routers and subnet masks actually work with.

Seeing an address in binary is the quickest way to understand subnetting, network and host portions, and how a mask like /24 carves an address space.

Alongside the binary, the tool also gives you the address as a single 32-bit unsigned integer and as an eight-digit hexadecimal value, which are handy when reading packet captures, firewall rules or configuration files that store addresses in those forms.

Input is validated strictly: you need four octets, each a whole number from 0 to 255, with no leading-zero padding, so typos surface immediately rather than producing a misleading result.

Everything is computed locally in your browser — no address is ever sent over the network — making it safe for internal and production IPs, and it keeps working offline once the page has loaded.

FAQ

Why does each octet have exactly eight bits?

An IPv4 octet stores values 0–255, which fits in 8 bits. Four octets make the full 32-bit address, so the tool pads each octet to eight digits.

Does it support IPv6 addresses?

No, this tool is for IPv4 only. IPv6 uses a different 128-bit hexadecimal format and is not parsed here.

Why is a leading zero like 192.168.01.1 rejected?

Leading zeros are ambiguous (sometimes read as octal) so the tool asks for plain decimal octets 0–255 without padding.