Conversion

IPv4 to Binary

Convert an IPv4 address or CIDR network to 32-bit binary, with the corresponding mask if a prefix is provided.

How it works

Each octet of an IPv4 address corresponds to 8 bits, whose values range from 128 to 1. Converting 192 to binary gives 11000000, that is 128 + 64.

Understanding binary is essential to master subnetting: the mask determines which bits identify the network. This tool is the exact counterpart of the binary to IPv4 converter.

Examples

Office address

11000000.10101000.00000001.00001010.

value192.168.1.10
Load this example

With mask

Mask 11111111.00000000.00000000.00000000.

value10.0.0.0/8
Load this example

Frequently asked questions

Why 8 bits per octet?

One octet is 8 bits and can therefore represent 256 values (0 to 255), which corresponds to one decimal number of the IPv4 address.

What is binary used for in networking?

To understand masks, ranges, ACLs and how routing algorithms work.