Home/Network/IPv4 Range Calculator

IPv4 Range Calculator

0addresses in range

Enter a start IPv4 address and an end IPv4 address and this tool counts exactly how many addresses fall in the inclusive range between them. It converts each dotted decimal address to a 32 bit integer, subtracts, and adds one so both endpoints are counted, which is the correct way to size an allow list, a DHCP pool, or a block of addresses in a firewall rule. It also shows the two endpoints as their integer values so you can sanity check the ordering, and it warns you if the start address is greater than the end. Unlike CIDR based tools, this works for arbitrary ranges that do not line up on a power of two boundary, which is common in real allocations. All arithmetic runs locally in your browser using plain unsigned integer math, so no address you enter is ever sent to a server.

How to use IPv4 Range Calculator

  1. Enter the start IPv4 address.
  2. Enter the end IPv4 address.
  3. Read the exact number of addresses in the inclusive range.

Frequently asked questions

How is the address count calculated?

It converts both the start and end IPv4 addresses to 32-bit integers and returns the inclusive difference plus one, so both endpoints are counted.

Does the range need to align to a subnet?

No, you can enter any start and end address; the count works for arbitrary ranges, not just power of two blocks.

What if the end is lower than the start?

The addresses should be in order; put the lower address as the start and the higher one as the end to get a correct count.

What is IPv4 Range Calculator?

Enter a start IPv4 address and an end IPv4 address and this tool counts exactly how many addresses fall in the inclusive range between them. It converts each dotted decimal address to a 32 bit integer, subtracts, and adds one so both endpoints are counted, which is the correct way to size an allow list, a DHCP pool, or a block of addresses in a firewall rule.

Is IPv4 Range Calculator free to use?

Yes. IPv4 Range Calculator is completely free, with no sign-up and no usage limits.

Does IPv4 Range Calculator work in a web browser?

Yes. IPv4 Range Calculator runs in any modern web browser. There is nothing to download or install.

Is my data private with IPv4 Range Calculator?

Yes. IPv4 Range Calculator runs entirely on your device in your browser, so nothing you enter is uploaded to a server.