Skip to content
Developer & CodeLocal · Stays on device

CIDR Converter

Convert IP ranges to the smallest list of CIDR blocks, merge overlapping CIDRs, expand a CIDR to its range and convert netmasks.

Launch CIDR Converter
  • IPv4, IPv6, CIDR, IP ranges
  • Free to use
  • No sign-up or watermark
cidr-converterOn this device
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10

About this tool

Four conversions in one tool. Range → CIDR turns a first and last address into the smallest exact list of CIDR blocks, ready for firewall rules and cloud security groups. Merge CIDRs takes a list of blocks and ranges (IPv4 and IPv6 together) and combines overlapping and adjacent ones into the shortest equivalent list. CIDR → range shows the first and last address and size of a block and tells you whether an address is inside it. Netmask ↔ prefix converts 255.255.252.0 to /22 and back, with the wildcard mask.

Non-contiguous netmasks are rejected and every result is exact, using 128-bit arithmetic for IPv6. Open a conversion directly with ?mode=range, merge, cidr or mask. Everything runs in your browser. What you paste is never uploaded, logged or stored.

  1. Input

    Your code or text

    IPv4, IPv6, CIDR, IP ranges

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Ready to download or copy

Local processing pipelineInstant, in-browser

How to use it

  1. 1

    Choose a conversion.

  2. 2

    Enter the addresses, blocks or mask.

  3. 3

    Copy or download the result.

Zero-upload architecture

How to use CIDR Converter for free, with no upload

Free, with no sign-up or watermark · Your files stay on your device

  1. 1

    Open CIDR Converter

    Launch the app and add your file. There is nothing to install and no account to create.

  2. 2

    Work through it

    Enter the addresses, blocks or mask.

  3. 3

    Get your result

    Copy or download the result.

  • Local

    IP Subnet Calculator

    Calculate network, broadcast, usable host range, netmask and wildcard for any IPv4 or IPv6 CIDR, and split it into subnets.

    Open tool
  • Local

    Port Number Lookup

    Look up what a TCP or UDP port number is used for, or find the port for a service like SSH, PostgreSQL or Redis.

    Open tool
  • Local

    MAC Address Formatter

    Convert MAC addresses between colon, hyphen, Cisco dot and plain formats in bulk, and see unicast/multicast and EUI-64 details.

    Open tool
  • Local

    JSON Formatter

    Pretty-print, beautify and validate JSON with precise error locations, key sorting and custom indentation.

    Open tool