Skip to content

Binary to IP Converter

Paste a 32-bit binary number (with or without dots) and get the dotted-decimal IPv4 address back; 128 bits give IPv6.

Processed locally in your browser

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

What is Binary to IP Converter?

Routers and exam questions often present addresses as raw bits. This converter removes any separators (dots, spaces, colons, dashes or underscores), checks that only 0 and 1 remain and that the length is exactly 32 bits (IPv4) or 128 bits (IPv6), and prints the corresponding address.

IPv6 results can be shown in compressed RFC 5952 form or fully expanded. Multiple lines are converted independently, and any invalid line is flagged with the reason (wrong length or invalid character) without stopping the rest.

How does it work?

  1. Paste one binary address per line, grouped or continuous, optionally with a 0b prefix.
  2. For 128-bit input pick compressed or expanded IPv6 output.
  3. Read the address list; invalid lines are listed as warnings with the reason.
  4. Use Swap to convert the addresses back to binary.

Common use cases

  • Checking the answer to a subnetting exercise written in bits.
  • Decoding an address found in a protocol dump or a bit-field diagram.
  • Converting a mask such as 11111111.11111111.11111111.00000000 to 255.255.255.0.
  • Cross-checking hand conversions between binary and dotted decimal.

Examples

Try this input in the tool above:

Input
11000000.10101000.00000001.00000001
00001010000000000000000011111111
Output
192.168.1.1
10.0.0.255

Privacy

Binary to IP 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

Input must be exactly 32 or 128 bits; shorter values are not zero-padded automatically, to avoid silently producing the wrong address.

Frequently asked questions

Do the dots have to be in the right place?

No. Separators are stripped before decoding, so 32 continuous bits work the same as four dotted octets.

What does a 128-bit input produce?

An IPv6 address, shown compressed by default (for example 2001:db8::1) or fully expanded on request.

Why is my 31-bit string rejected?

An IPv4 address is exactly 32 bits. Pad it on the left with zeros yourself if you intended a smaller number.

More tools in Network Tools →