Skip to content
Toolbento

IP range to CIDR

Find the smallest set of CIDR blocks that covers a range of IPv4 addresses.

Everything stays on this device

IP range to CIDR runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

Missing a feature or found a bug in IP range to CIDR? Tell me on X (@_andrewtran) or by email.

How to use IP range to CIDR

  1. Enter the first and last address with a hyphen between them.
  2. Read the CIDR blocks that cover the range exactly.
  3. Copy them into your firewall or allowlist.

Questions and answers

Is my data sent anywhere?

No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.

Why does one range need several blocks?

A CIDR block must start on a boundary and hold a power of two addresses. A range that does neither is covered by several blocks of different sizes.

Esc

Loading tools