No tool matches “”

Try a format (“webp”, “mp3”) or a verb (“merge”, “compress”).

Loading index

↵to open

Network Tools · Updated November 6, 2026 · Reviewed by FormatFlow Editorial

CIDR Range Calculator — Block to Range and Range to Blocks

You can convert a CIDR block into its first and last IPv4 address, or turn a start and end address into the smallest exact set of CIDR blocks that covers the range.

Runs in your browserFree · No sign-up · No watermark
CIDR / IP rangeRuns in your browser
Loading the tool…

Everything runs locally in this tab. No file is uploaded while the tool loads.

Use this tool as a step in a repeatable browser pipeline.

Add to Workflow

This tool runs in your tab. Nothing is uploaded and no copy is stored.

How files are handled

Key facts

Category
Network Tools
Processing
In your browser — nothing is uploaded
Input formats
CIDR block or IP range
Output format
IP range / CIDR blocks
Maximum size
Bound by the memory available to your browser tab
Requirements
Chrome, Edge, Firefox or Safari · JavaScript enabled
Price
Free, no account, no watermark
Last updated
Nov 6, 2026

SummaryCIDR Range Calculator is a free online network tools tool. You can convert a CIDR block into its first and last IPv4 address, or turn a start and end address into the smallest exact set of CIDR blocks that covers the range. CIDR notation hides a simple range: a block such as 10.20.30.0/24 stands for a first and last address plus everything between. Going the other way is harder, because an arbitrary start and end usually covers several aligned blocks of different sizes. This calculator handles both directions in one place. It runs in your browser — nothing is uploaded. It accepts CIDR block or IP range and produces IP range / CIDR blocks. The maximum size is bound by the memory available to your browser tab. IPv4 only; IPv6 ranges use the IPv6 subnet calculator.

At a glance

Works with
CIDR / IP range
Processing
In your browser
Price
Free, no account
Updated
November 6, 2026
All Network Tools

About CIDR Range Calculator

CIDR notation hides a simple range: a block such as 10.20.30.0/24 stands for a first and last address plus everything between. Going the other way is harder, because an arbitrary start and end usually covers several aligned blocks of different sizes. This calculator handles both directions in one place.

In block mode it lists the first address, last address, total addresses and usable range. In range mode it applies the standard greedy algorithm to build the smallest exact set of CIDR blocks that covers the range, with every block copyable so it can go into a firewall or routing change request.

What this tool does

The details that matter when you use CIDR Range Calculator for real work.
  • Block to range

    Enter a CIDR block to see its first address, last address, total addresses and usable host range.

  • Range to blocks

    Enter a start and end address to get the smallest exact set of aligned CIDR blocks that covers the range.

  • Exact cover

    The greedy algorithm produces blocks inside the range without adding addresses outside it.

  • Copy each block

    Every covering block has a copy button so it can be pasted into a firewall rule or change request.

  • Special prefixes

    A /31 is reported as two usable point-to-point addresses and a /32 as a single host address.

  • Validated locally

    IPv4 syntax and prefix bounds are checked in the browser, and invalid input returns an inline message.

How to use CIDR Range Calculator

No account, no installation — the whole job happens in this browser tab.
  1. 01

    Choose the direction

    Pick CIDR block to expand a block, or IP range to build blocks from a first and last address.

  2. 02

    Enter the block or range

    Type a value such as 10.20.30.0/24, or the start and end address in dotted decimal.

  3. 03

    Read the result

    Block mode shows the covered range; range mode lists the blocks that cover it exactly.

  4. 04

    Check the boundaries

    Confirm the first and last address match the range you intended before copying anything.

  5. 05

    Copy into a change request

    Use the copy buttons on the rows you need for a firewall, ACL or routing change.

How this tool works

Works with
CIDR / IP range
Processing
Client-side, in your browser. Nothing is uploaded.
Requirements
Chrome, Edge, Firefox or Safari · JavaScript enabled

Limitations worth knowing

  • IPv4 only; IPv6 ranges use the IPv6 subnet calculator.
  • Range mode returns the smallest exact cover, not an optimized allocation plan.
  • No overlap, routing or VLAN validation is performed.
  • Very fragmented ranges can produce many blocks; the result is capped at 1,024 blocks.

Privacy and file handling

CIDR blocks and IP ranges are converted entirely in your browser with local arithmetic. No address is uploaded or logged, and no request leaves the page; closing it clears the inputs.

Read the full privacy policy

CIDR Range Calculator FAQ

Short, direct answers to the questions people ask before using this tool.
What does a CIDR block mean?
A CIDR block pairs an IPv4 address with a prefix length, for example 10.20.30.0/24. The prefix fixes the first address and the size, so the block represents one contiguous range.
How are the covering blocks chosen?
The tool starts at the range's first address and takes the largest power-of-two block that is aligned and fits inside the remaining range, then repeats. That greedy choice produces the smallest exact cover for an IPv4 range.
Why can a range need several blocks?
A start and end address rarely line up with one power-of-two boundary. A range that begins at 10.20.30.5 has to start with a small block, then larger blocks follow, so the exact cover is a list rather than one CIDR.
Do the covering blocks add addresses outside my range?
No. Each block is placed inside the remaining range and the algorithm stops at the end address, so the union of the blocks equals the requested range with no extra addresses.
What about a /31 or /32 block?
A /31 holds two addresses that are both usable on a point-to-point link, and a /32 holds a single address. This calculator reports that convention rather than forcing the usual network-and-broadcast rule.
Can I use this to aggregate existing subnets?
Yes, as a starting point: enter the first and last address of the space the subnets occupy. The result is a minimal covering set; check that every resulting block is actually assigned and routable before changing equipment.
Does the tool validate routing or overlaps?
No. It only converts between block notation and address ranges. Overlap with existing allocations, route policy and vendor-specific syntax still need to be checked separately.
Why is a /0 handled specially?
A /0 covers the entire IPv4 space, so its range runs from 0.0.0.0 to 255.255.255.255 with 4,294,967,296 addresses. The tool reports that full range rather than overflowing the arithmetic.

Background reading

Format guides that explain the trade-offs behind CIDR Range Calculator.