IP Subtraction & Mask Converter

Difference between two IP addresses, corresponding CIDR blocks, and decimal/hex/binary conversion.

1. IP address difference and range count

Numeric difference
1.021
Total addresses in range
1.022
Minimum CIDR blocks
18
CIDR block aggregation:
10.0.0.1/3210.0.0.2/3110.0.0.4/3010.0.0.8/2910.0.0.16/2810.0.0.32/2710.0.0.64/2610.0.0.128/2510.0.1.0/2410.0.2.0/2410.0.3.0/2510.0.3.128/2610.0.3.192/2710.0.3.224/2810.0.3.240/2910.0.3.248/3010.0.3.252/3110.0.3.254/32

2. Subnet mask format converter

CIDR prefix:/26
Dotted decimal
255.255.255.192
Wildcard mask
0.0.0.63
Hexadecimal
0xFF.FF.FF.C0
Binary (32 bits)
11111111.11111111.11111111.11000000
Host capacity
62 hosts

How to use this tool

Compare two IPv4 addresses or convert a subnet mask between decimal, binary and hexadecimal representations. Numeric distance helps you check address ranges.

Worked example

The difference between 192.168.1.10 and 192.168.1.1 is 9. This is the numeric distance between addresses, not a count of active devices.

Interpreting the result

Do not confuse address difference with an inclusive address count or the number of usable hosts in a subnet.

All calculators and tools
Usar esta ferramenta em português