# projectdiscovery/mapcidr

Utility program to perform multiple operations for a given subnet/CIDR ranges.

Repository: https://github.com/projectdiscovery/mapcidr
Canonical: https://ross.abutalabs.com/products/mapcidr
Homepage: https://projectdiscovery.io
Language: Go
License: MIT
License Family: permissive
Topics: cidr, subnetting, subnetwork, cidr-ranges
Last push: 2026-08-24T21:35:20+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 54, longevity 100
- inputs: {"age_days": 2203, "days_push": 9, "days_rel": 309, "gap_med": 20, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1221, forks 112 (observed 2026-08-28T04:04:02.127447+00:00)

## What it is
mapCIDR is a Go utility for performing multiple operations on subnet/CIDR ranges, such as expansion, slicing, aggregation, filtering, sorting, and IP format conversion. It works both as a standalone CLI tool and as a Go library, and is designed to ease load distribution for mass scanning operations.

## Use cases
- expand a CIDR range into a list of individual IPs
- split a large subnet into smaller CIDR blocks for distributed scanning
- aggregate a list of IPs and CIDRs into minimal subnets
- count the number of hosts in a CIDR range
- filter IPv4 or IPv6 addresses from mixed input
- convert IPs between IPv4 and IPv6 formats
- shuffle IP and port lists for scanning

## When to choose
- you need fast command-line manipulation of CIDR ranges and IP lists
- you are distributing mass scanning workloads across chunks of a network
- you want a Go library for CIDR math in your own tooling

## When to avoid
- you need interactive subnet planning with a GUI
- your task is general-purpose network scanning rather than CIDR manipulation

## Facets
- artifact type: cli-tool
- maturity: active
- function: networking, developer-tools, cli
- domain: networking, security, developer-tools
- platform: windows, cli, cross-platform
- tags: cidr, subnetting, ip-addresses, go, recon, command-line, linux, macos

## Member repositories
- projectdiscovery/mapcidr (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:02.127447+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:15:53.289255+00:00, confidence not recorded.
  - readme: https://github.com/projectdiscovery/mapcidr (fetched 2026-08-28T04:04:02.127447+00:00, sha 2b2bee628dda)
  - homepage: https://projectdiscovery.io (fetched 2026-08-29T12:24:08.740374+00:00, sha 4f86254fd766)
  - site_page: https://docs.neo.projectdiscovery.io/ (fetched 2026-08-29T12:24:08.751696+00:00, sha de87e1036abb)
  - site_page: https://docs.neo.projectdiscovery.io/use-cases/attack-surface-monitoring (fetched 2026-08-29T12:24:08.753483+00:00, sha e2b7027938c7)
  - site_page: https://projectdiscovery.io/pricing (fetched 2026-08-29T12:24:08.749869+00:00, sha 155f9d3a4107)
- Data as of 2026-08-30T08:39:29.467469+00:00.
