CIDR calculator - Convert IP ranges and check containment or overlap

Convert CIDR and IP ranges, and check containment and overlap

  • CIDR ⇄ IP range
  • Check containment
  • Check overlap

Results

Enter values and calculate to see the results.

About this tool

  • Convert IPv4 CIDR to an IP address range, check whether an IP is contained in a range, and compare CIDR blocks.
  • Convert an IP range into the smallest set of CIDR blocks that covers it exactly. CIDR input with host bits is normalized before display.
  • All calculations run in your browser. Your IP address and CIDR are not sent externally or stored. IPv4 only is currently supported.

How to use

  1. Choose a calculation

  2. Enter IPv4 values and calculate

  3. Copy a result

Frequently asked questions

What is CIDR?
How is the IP range for a CIDR determined?
How do you check whether an IP is within a CIDR?
Can two CIDR blocks partially overlap?
What does converting an IP range to CIDR mean?
What happens if I enter a CIDR with host bits set?
Does this tool support IPv6?
Are my IP address and CIDR sent externally?
← Back to tools