Skip to content

IP to Binary Converter

See any IP address as bits, for example 192.168.1.1 → 11000000.10101000.00000001.00000001.

Processed locally in your browser

Options
0 chars · 0 lines
The result will appear here.

What is IP to Binary Converter?

Every IPv4 address is a 32-bit number written as four bytes; every IPv6 address is 128 bits. Networking rules such as subnet masks and CIDR prefixes operate on those individual bits, so seeing the binary form makes it obvious where the network part ends and the host part begins.

Enter one address per line. Choose grouped output (8-bit octets for IPv4, 16-bit groups for IPv6) or a continuous bit string, and optionally label each result with its source address.

How does it work?

  1. Paste IPv4 or IPv6 addresses, one per line.
  2. Choose grouped or continuous output.
  3. Tick "Show input = result" when converting several lines and you want to keep the pairing.
  4. Use Swap to convert the binary back to an address.

Common use cases

  • Learning why 255.255.255.0 is a /24 by looking at its 24 leading ones.
  • Checking which bits two addresses share when designing a subnet boundary.
  • Producing bit strings for networking exercises or documentation.
  • Verifying hand calculations from an exam or lab.

Examples

Try this input in the tool above:

Input
192.168.1.1
10.0.0.255
Output
11000000.10101000.00000001.00000001
00001010.00000000.00000000.11111111

Privacy

IP to Binary Converter runs entirely in your browser. The text or files you provide are processed on your device and are not uploaded, logged or stored on our servers.

Limitations

Only valid, strictly formatted addresses are converted (no leading zeros or shorthand like 127.1). Use the IPv4 validator to see why an address is rejected.

Frequently asked questions

How is 192.168.1.1 written in binary?

11000000.10101000.00000001.00000001: each octet is padded to eight bits.

Does it support IPv6?

Yes. IPv6 addresses give 128 bits, grouped in sixteen-bit blocks separated by colons when grouping is enabled.

What if I need the reverse?

Use the Binary to IP converter, which accepts 32 or 128 bits with or without separators.

More tools in Network Tools →