IPv6 Range to CIDR
Convert IPv6 start and end addresses into a minimal exact prefix list.
Prefix Conversion
Turn raw IPv6 spans into ACL, route-filter, and documentation friendly CIDR notation.
What This Tool Does
This page converts an arbitrary IPv6 start and end address into the smallest set of prefixes that covers the range exactly. The conversion UI and output remain unchanged, but the added context explains why the result may be one prefix in some cases and multiple prefixes in others.
That is useful when you receive address data as a raw span from a registry, spreadsheet, or incident report and need to express it in a format routers, firewalls, documentation systems, and AI summaries can understand clearly.
Inputs explained
Enter the first IPv6 address that must be included and the last IPv6 address that must be included. Either compressed or expanded notation is fine. The range does not need to begin on a prefix boundary, but the ending address must not precede the starting address.
How it works
The converter starts at the first IPv6 address, finds the largest aligned prefix that fits without crossing the end of the range, outputs that block, then repeats until the full span is covered. The result is a minimal exact cover, not an approximate summary.
IPv6 Range → Minimal CIDRs
Result
Step-by-Step Example
Imagine a range beginning at 2001:db8::1000 and ending at 2001:db8::1fff. If the boundaries align neatly, the result may collapse into a single prefix. If they do not, the converter emits several smaller prefixes that together cover the full span without expanding outside the requested addresses.
This exactness is what makes the page useful in security and routing work. A wider summary might be shorter, but it can also include addresses you never intended to match.
Use Cases
Use this tool when you need IPv6 prefixes for ACLs, route filters, address delegation reports, asset scoping, or documentation generated from raw start and end values. It is also helpful when you need to verify whether a registry supplied span can be represented cleanly by one prefix or requires a set of more specific entries.
Assumptions and limitations
The result is an exact mathematical cover of the entered range. It does not verify RPKI state, upstream acceptance, or whether the output aligns with your organizational allocation model. Review routing and ownership context separately before deploying the prefixes.
Frequently Asked Questions
How do I convert an IPv6 range to CIDR?
To convert an IPv6 range to CIDR, enter the starting IPv6 address and ending IPv6 address, then generate the smallest set of prefixes that covers exactly that range. The tool checks binary alignment, not just the visible hexadecimal groups. If the range starts and ends on clean prefix boundaries, you may get one CIDR block. If not, you will get several. This is normal. Exact conversion is useful for firewall rules, route filters, and access lists where you must avoid including extra IPv6 addresses.
Why does an IPv6 range create multiple CIDR blocks?
An IPv6 range creates multiple CIDR blocks when the start and end addresses are not aligned on one clean prefix boundary. CIDR blocks must be powers of two and must start at the correct binary boundary. A range can look neat in compressed IPv6 text but still be uneven in binary. The converter breaks it into the fewest valid prefixes that cover exactly the requested range. This avoids accidentally allowing or routing addresses outside the intended start and end points, which matters in security rules.
How do I summarize an IPv6 address range?
Summarizing an IPv6 address range means converting the start and end addresses into minimal CIDR prefixes. This can reduce long firewall lists and make route filters easier to read. For example, a clean range may summarize into one /64, while an uneven range may require multiple prefixes. The word minimal is important: you want the fewest blocks without adding extra addresses. For broader routing summaries, extra coverage may be acceptable only if the whole covered space belongs to you and the next hop can handle it.
Can compressed IPv6 be converted to CIDR?
Yes, compressed IPv6 addresses can be converted to CIDR. The converter first expands or normalizes the address, then performs the binary range calculation. For example, 2001:db8::1 and 2001:db8:0:0:0:0:0:ffff are just different text forms around the same 128-bit address space. Compression with :: is for human readability; it does not change the underlying bits. This is why students should not try to judge range size by how short the written address looks. Normalize first, then calculate.
How do I find minimal IPv6 CIDR blocks?
Minimal IPv6 CIDR blocks are the fewest valid prefixes that cover a range exactly, with no extra addresses. The method starts at the first address, chooses the largest aligned block possible, then repeats until it reaches the end address. Alignment is the key rule. If the start address is not on a large boundary, the first block may be small. A calculator does this reliably, but understanding the rule helps when firewall output shows several prefixes instead of the one you expected.
How do I convert an IPv6 start and end range to prefix?
To convert an IPv6 start and end range to prefix output, enter both endpoints exactly as given, such as 2001:db8:10::100 to 2001:db8:10::1ff. If the range matches a clean CIDR boundary, the output may be one prefix. If it does not, the result will be several prefixes. That is not an error. It means the tool is preserving exact coverage. In security work, exact coverage is usually better than a broad shortcut, because a broad shortcut may permit addresses that were not part of the request.
How can I use IPv6 CIDR blocks in firewall rules?
IPv6 CIDR blocks can be copied into firewall rules, security groups, route filters, and allowlists, as long as the platform supports IPv6. Before applying them, confirm whether the rule expects source or destination, whether it uses prefix notation, and whether the policy is allow or deny. If the converter returns multiple CIDRs, add all of them to cover the range exactly. For audits, keep the original start and end range in a comment or ticket so another engineer can understand why those prefixes exist.
Sources & References
Related Tools
IPv6 Calculator
Inspect network boundaries and address forms for a single IPv6 prefix.
IPv6 Compare
Check whether two IPv6 prefixes overlap after conversion.
BGP Prefix Lookup
Move from calculated prefixes to public routing visibility and path context.