IP Range to CIDR — Exact Cover

Convert an inclusive start–end range into minimal exact CIDRs (IPv4 or IPv6).

Loading…
IP range to CIDR
Minimal exact cover of an inclusive range. Same family required.

Developer notes

• start ≤ end required. • Exact cover — no overshoot. • 64 KiB limit.

Options

Output sort
ascending = lexical CIDR sort; none = compute / first-occurrence order.

When teams pick this route

• Turn a firewall range into a CIDR list. • Check a non-aligned range.

Worked examples

Aligned /24

Before

10.0.0.0

After

10.0.0.0/24

Non-aligned

Before

10.0.0.1

After

10.0.0.1/32 10.0.0.2/31

Related networking tools

To aggregate CIDRs: cidr-summarize. Hub: networking tools.

Range → CIDR FAQ

Exact cover

When should I use the number-base converter instead?

To convert an integer between bases 2–36 (hex of a number, binary of a value), use number-base-converter. Networking tools compute subnets and CIDRs — not general base conversion.

Are IP addresses uploaded?

No. All math runs locally in your browser. Nothing is uploaded to FastMinify.

What is the size limit?

64 KiB (UTF-8) for the combined input fields of each tool.

More networking tools in this cluster

Looking for converters, encoders, formatters, and minifiers in one place? Developer tools hub Open the curated developer tools catalogue.