About IPv6 Subnet Calculator
IPv6 removes the address shortage but makes the numbers harder to read: a /64 holds more addresses than the entire IPv4 internet, and a single digit in the prefix changes the result by many orders of magnitude. This calculator works on 128-bit integers so the prefix boundary stays exact.
Enter any valid IPv6 address and a prefix from /0 to /128. The result shows the compressed network prefix, the first and last address in the range, and the size as an exact count while it is readable or an exponential expression when printing every digit would stop being useful.
What this tool does
Exact 128-bit arithmetic
BigInt maths keeps every prefix from /0 to /128 exact, including prefixes far larger than a /64.
Compressed output
The network prefix is printed in canonical compressed form with :: replacing the longest run of zero groups.
First and last address
Shows the lowest and highest address in the prefix, which is what an address plan or firewall range needs.
Readable address count
Displays an exact count while it stays readable and a power-of-two exponential expression when the number is very large.
Strict input validation
Accepts full and ::-compressed forms and rejects malformed groups, too many groups or a prefix outside 0–128.
Copy any value
Every result row has a copy button with inline feedback so values can be pasted straight into documentation.
How to use IPv6 Subnet Calculator
- 01
Enter the IPv6 address
Type a full or compressed address such as 2001:db8:abcd::1; lowercase and uppercase hex are both accepted.
- 02
Choose the prefix
Select a length from /0 to /128; /64 is the usual LAN subnet size, while /127 and /128 suit point-to-point links and loopbacks.
- 03
Read the network
The compressed network prefix, first address and last address appear in the result card.
- 04
Check the size
Use the address count to confirm the prefix holds the number of addresses the address plan expects.
- 05
Copy and document
Copy the values you need into an address plan, firewall rule or runbook.
How this tool works
- Works with
- IPv6 / CIDR
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Requirements
- Chrome, Edge, Firefox or Safari · JavaScript enabled
Limitations worth knowing
- The size of very large prefixes is shown as an exponential approximation, not a full decimal string.
- Embedded IPv4 notation such as ::ffff:192.0.2.1 is rejected; use the IPv4 calculator for IPv4.
- No allocation, overlap or routing validation; results are planning arithmetic only.
- Prefix conventions such as /64 for LANs and /127 for point-to-point links are not enforced.
Privacy and file handling
The IPv6 address and prefix stay in the browser: all arithmetic uses built-in BigInt and no request is made. Nothing is uploaded, logged or stored, and closing the page discards the input.
Read the full privacy policy
