mapcidr for Mac
Subnet/CIDR operation utility
mapcidr — overview
A utility program to perform multiple operations for a given subnet/CIDR range.
Features • Install • Usage • Library • Join Discord
mapCIDR is developed to ease load distribution for mass scanning operations; it can be used both as a library and as an independent CLI tool.
Features CIDR expansion support (default) CIDR slicing support (sbh, sbc) CIDR/IP aggregation support (a, aa) CIDR/IP matcher support (match-ip) CIDR/IP filter support (filter-ip) CIDR/IP sorting support (s, sr) CIDR host count support (count) Multiple IP Format support (ip-format) IP/PORT shuffling support (si, sp) IPv4/IPv6 Conversation support (t4, t6) CIDR STDIN (pipe) input support
Installation
Usage
This will display help for the tool. Here are all the switches it supports.
Running mapCIDR
To get a list of IPs for a given CIDR, use the following command:
CIDR expansion
It is also possible to get a list of IPs for a given IP range, using the following command:
CIDR Slicing by CIDR Count
To slice given CIDR or list of CIDRs by CIDR count or slice into multiple and equal smaller subnets, use the following command:
CIDR slicing by HOST Count
To slice the given CIDR for an equal number of hosts in each CIDR, use the following command:
Note: It's possible to obtain a perfect split only when the desired number of slices or hosts per subnet is a power of two. Otherwise, the tool will attempt to automatically find the best split strategy to obtain the desired outcome.
CIDR/IP Aggregation
To merge multiple CIDR ranges into a smaller subnet block, use the following command:
To list CIDR blocks for a given list of IPs, use the following command:
It's also possible to perform approximated aggregations for sparse IP groups (only version 4). The final interval will contain contiguous IPs not belonging to the input:
To list CIDR blocks for a given IP Range (IPv4 | IPv6), use the following command:
Match / Filter IPs from CIDR
To match IPs from the given list of CIDR ranges, use the following command:
To filter IPs from the given list of CIDR ranges, use the following command:
IP Formats
To represent given IP into multiple formats, the -if 0 flag can be used to display all the supported format values, and a specific type of format can be displayed using a specific index number as listed here. Currently, 10 unique formats are supported.
IP Conversion
IPv4 | IPv6 addresses can be converted from either the v6 to v4 notation or IPv4-mapped notation into IPv4 addresses using -t4 and -t6 to IPv4 and IPv6 respectively.
Note:
Not all IPv6 addresses can be converted to IPv4. You can only convert valid IPv4-represented IPv6 addresses.
CIDR Host Counting
To count the number of hosts for a given CIDR or list of CIDRs, use the following command:
ASN Input
To get the IP address of the ASN number, use the following command:
Use mapCIDR as a library
Details
子网/CIDR 操作工具
How to install mapcidr
- Open Terminal (press ⌘ + Space and type “Terminal”).
- If Homebrew is not installed yet, run the command below first.
- Run this command:
Latest 10 releases
Last updated 2025-10-28; current version v1.1.97, with the latest 10 releases listed.
| Version | Released | Type | Size | macOS | Windows | Linux |
|---|---|---|---|---|---|---|
| v1.1.97 | 2025-10-28 | Stable | 9.4 MB | Download | Download | Download |
| v1.1.96 | 2025-10-07 | Stable | 9.4 MB | Download | Download | Download |
| v1.1.95 | 2025-09-24 | Stable | 9.4 MB | Download | Download | Download |
| 1.1.94 | 2025-06-08 | Stable | 8.0 MB | Download | Download | Download |
| v1.1.34 | 2024-04-02 | Stable | 8.6 MB | Download | Download | Download |
| v1.1.16 | 2023-11-23 | Stable | 6.9 MB | Download | Download | Download |
| v1.1.15 | 2023-11-10 | Stable | 6.9 MB | Download | Download | Download |
| v1.1.14 | 2023-10-30 | Stable | 6.8 MB | Download | Download | Download |
| v1.1.13 | 2023-10-22 | Stable | — | — | — | — |
| v1.1.12 | 2023-10-15 | Stable | — | — | — | — |
Data from GitHub Releases; stable releases first, each group sorted newest first.
Compared with similar apps
Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.
| App | Version | License | Architecture | 30-day installs |
|---|---|---|---|---|
| mapcidr | v1.1.97 | MIT | CLI | 10 |
| bounceback | v1.5.3 | MIT | CLI | 5 |
| sipcalc | 1.1.6 | BSD-3-Clause | CLI | 24 |
| cidr | v2.3.0 | MIT | CLI | 3 |
Similar apps: Command-line Tools
bounceback
↕️? Stealth redirector for your red team operation security.sipcalc
sipcalc is an IP subnet calculation tool that runs in the terminal, suited to network…cidr
Simplifies IPv4/IPv6 CIDR network prefix management with counting, overlap checking…subnetcalc
IPv4/IPv6 subnet calculatoropenssl@4
Cryptography and SSL/TLS Toolkitxz
General-purpose data compression with high compression ratioCategories: Command-line Tools