PasteZap
🌐 简体中文
免费 · 无需注册

免费 · 网络与 IT 基础设施

IP 范围转 CIDR.

把 IP 范围、地址列表和重叠的地址块合并为最少的 CIDR 块,支持排除地址并给出覆盖全部的超网。

开始之前

部分技术控件使用英语。支持 Unicode 文本;文件格式和输出语言取决于具体工具。

下面以英语列出技术限制。处理大型文件或使用结果之前,请先查看这些限制。

CALCULATED IN YOUR BROWSER · NOTHING IS UPLOADED
Minimal CIDR blocks6from 7 entries
IPv4 addresses covered
644
IPv6 addresses covered
1208925819614629174706176
Smallest single IPv4 supernet
0.0.0.0/0
Covers everything but may include extra addresses
Smallest single IPv6 supernet
2001:db8::/48

CIDR list

10.0.0.0/23
192.168.1.0/25
192.168.1.128/31
192.168.1.130/32
203.0.113.7/32
2001:db8::/48

Blocks

CIDR blockFirst addressLast addressAddresses
10.0.0.0/2310.0.0.010.0.1.255512
192.168.1.0/25192.168.1.0192.168.1.127128
192.168.1.128/31192.168.1.128192.168.1.1292
192.168.1.130/32192.168.1.130192.168.1.1301
203.0.113.7/32203.0.113.7203.0.113.71
2001:db8::/482001:db8::2001:db8:0:ffff:ffff:ffff:ffff:ffff2^80 (1208925819614629174706176)
  • Overlapping and adjacent entries are merged first, then each range is split into the fewest aligned blocks.
  • Comments after # are ignored. Commas or semicolons can separate several entries on one line.

使用方法: IP 范围转 CIDR

输入数据或选择文件,调整设置并生成结果。复制或下载之前,请检查结果。

限制与支持格式

输入内容在您的设备上处理。

英语技术说明

Up to 5,000 lines; IPv4 and IPv6 can be mixed. The single supernet may include addresses that were not in the input. Everything is calculated in your browser; nothing is sent or probed on the network.

Entries are converted to start–end ranges, merged when they overlap or touch, reduced by the exclusions, and each remaining range is cut into the largest aligned power-of-two blocks.

192.168.1.0 – 192.168.1.130 becomes 192.168.1.0/25, 192.168.1.128/31 and 192.168.1.130/32; 10.0.0.0/25 and 10.0.0.128/25 merge into 10.0.0.0/24.