Skip to content
snip tools

IP to binary converter

Convert an IPv4 address to binary, hex and 32-bit integer, and back.

Runs 100% in your browser

How to convert IPs to binary

  1. Paste an IPv4 address. Type a dotted-decimal IP. The binary, hex and integer forms appear instantly.
  2. Or paste an integer. Enter a 32-bit integer to convert back to dotted-decimal.

Why convert IPs to binary?

Reading IPv4 addresses in binary is the easiest way to understand subnetting — the network and host portions are obvious once you see the bits — and the 32-bit integer form is how many DBs, log indexes and Bloom filters store addresses for compact range queries. This tool shows all three forms (dotted decimal, dotted binary, hex and integer) and converts in either direction.

Frequently asked questions

How does IP-to-binary work?
Each of the four octets in an IPv4 address is converted to its 8-bit binary representation. 192.168.1.1 becomes 11000000.10101000.00000001.00000001.
What is the integer form?
An IPv4 address is a 32-bit unsigned integer when read big-endian. 192.168.1.1 is 3,232,235,777. Many DBs and ACLs store IPs as ints.
Does the page send my IP anywhere?
No. Conversion is pure bit shifting in your browser.
Can I paste a 32-bit integer too?
Yes — type an unsigned 32-bit integer (0 – 4294967295) and the dotted-decimal form is shown.