IP Address to Binary Converter

Convert IPv4 addresses between dotted decimal, binary, 32-bit integer and hex in any direction, and expand IPv6 to full binary. Free and instant.

IPv4 as dotted decimal, dotted binary, 32 bits, a decimal integer or 0x hex — or any IPv6 address (with :: or an embedded IPv4).

IPv4

Dotted decimal192.168.1.1
Dotted binary11000000.10101000.00000001.00000001
32-bit binary11000000101010000000000100000001
Decimal integer3232235777
Hexadecimal0xC0A80101
Dotted hexC0.A8.01.01
IPv4-mapped IPv6::ffff:c0a8:101

What is IP to Binary?

Enter an IP address in any notation and see all the others. For IPv4: dotted decimal, dotted binary, the 32-bit binary string, the decimal integer, hexadecimal and the IPv4-mapped IPv6 form. For IPv6: the compressed and fully expanded forms, 128-bit binary per group, hex and decimal.

How to use IP to Binary

  1. Type an address into IP address (any notation): 192.168.1.1, 3232235777, 0xC0A80101, 11000000.10101000.00000001.00000001 or an IPv6 address like 2001:db8::1.
  2. Check the IPv4 / IPv6 badge to confirm how the input was recognized.
  3. Read the converted forms below and use Copy on any row.

Example

Input
192.168.1.1
Output
11000000.10101000.00000001.00000001 · 3232235777 · 0xC0A80101 · ::ffff:c0a8:101

When to use IP to Binary

Use it for subnetting homework, firewall rules that need integer IPs, or understanding how addresses are stored. To calculate network ranges, masks and host counts, use a CIDR/subnet calculator instead.

How IP to Binary works

IPv4 input is turned into a 32-bit integer: dotted decimal octets (0–255, no leading zeros), four 8-bit binary groups, a plain 32-bit string, a decimal integer up to 4294967295 or 0x hex. Every output is derived from that integer. IPv6 input is expanded by filling :: with the missing zero groups (an embedded IPv4 tail becomes two hex groups) and stored as a 128-bit BigInt; the compressed form follows RFC 5952 (lowercase, longest run of zero groups shortened).

Common Use Cases

  • Learn subnetting by seeing addresses in binary
  • Convert an IP stored as an integer in a database back to dotted form
  • Expand a compressed IPv6 address for documentation
  • Get the hex form of an IP for packet analysis

FAQs

Why is 192.168.01.1 rejected?

Leading zeros are ambiguous (some systems read them as octal), so they are not accepted.

How is the integer form calculated?

a.b.c.d → a×2^24 + b×2^16 + c×2^8 + d.

What is an IPv4-mapped IPv6 address?

The ::ffff:0:0/96 form that dual-stack systems use to represent an IPv4 address inside IPv6.

Good next steps

Explore more categories