What is an IPv6 calculator?
An IPv6 calculator helps you read, write and plan IPv6 addresses. Because they're long and can be abbreviated in several ways, comparing two addresses or knowing what a prefix contains is hard to do by eye.
Enter one or more addresses, each optionally followed by a prefix length. For each you get the canonical compressed form, the fully expanded form and the address type. With a prefix you also get the network address, the first and last address in it, the total number of addresses and how many /64 subnets fit, plus an optional reverse DNS name.
How to use the IPv6 calculator
1.Enter addresses
One per line, with an optional /prefix.
2.Read each result
Compressed and expanded forms and the address type.
3.Check prefixes
Network, first and last address and how many /64s fit.
Example: a documentation prefix
2001:db8:85a3::8a2e:370:7334/64:
- Expanded
- 2001:0db8:85a3:0000:0000:8a2e:0370:7334
- Type
- Documentation
- Network / last
- 2001:db8:85a3::/64 / 2001:db8:85a3:0:ffff:ffff:ffff:ffff
- Addresses
- 2^64
The address sits in a reserved example range, so it's safe to use in guides and tests.
Short form, done properly
IPv6 addresses are 128 bits written as eight groups of four hex digits. The short form drops leading zeros and replaces the longest run of zero groups with ::, following RFC 5952, so different spellings of the same address always come out identical. IPv4-mapped addresses keep their dotted tail, as in ::ffff:192.0.2.128.
Types include global unicast, unique local (fc00::/7, the IPv6 equivalent of private addresses), link-local (fe80::/10), multicast, loopback, documentation (2001:db8::/32), 6to4, Teredo and NAT64. Zone suffixes like %eth0 are accepted and ignored.
Frequently asked questions
Why do many prefixes end at /64?
A /64 is the standard subnet size; devices build their own addresses inside it.
How many /64s are in a /48?
65,536. Sites commonly receive a /48 or a /56 (256 subnets).
What is the reverse DNS option?
It writes the address as an ip6.arpa name, used for PTR records.
Can it convert IPv4 to IPv6?
The IP address converter shows any IPv4 address in IPv4-mapped IPv6 form.
Related tools
Subnet calculator
Network, broadcast, host range and mask for any IPv4 address and prefix.
IP address converter
Convert IPv4 addresses between dotted, integer, hex, binary and IPv6 forms.
IP range to CIDR
Convert an IPv4 address range to the fewest CIDR blocks, or expand CIDR to a range.
Subnet splitter
Divide a CIDR block into smaller subnets by count, hosts or prefix.
chmod calculator
Convert Unix file permissions between octal like 755 and symbolic like rwxr-xr-x.
JSON Formatter & Validator
Pretty-print, minify, sort and validate JSON with line-numbered errors.
More Developer tools
JSON & data
CSV tools
Web & API
Git & releases
Encoding & security
- Base64 encode & decode
- URL encode & decode
- JWT decoder
- Hash generator
- HTML entity encoder
- Text to binary
- Morse code translator
- Caesar cipher & ROT13
- Random string generator
- Secret key generator
- 2FA code generator (TOTP)
- Encrypt & decrypt text
- Encrypt & decrypt files
- SSH key generator
- Base32 encoder and decoder
- Unicode escape converter
- Nano ID generator
- JWT generator
Text & code
- Regex tester
- Text diff checker
- Cron expression explainer
- Lorem ipsum generator
- Markdown previewer
- Slug generator
- Strip HTML tags
- Unicode character inspector
- URL parser
- Markdown TOC generator
- cURL converter
- Whitespace visualizer
- Markdown link extractor
- Regex escape
- Regex match extractor
- Split text by regex
- HTML, CSS and JS playground
- Mock data generator
- Keyboard event tester
- ASCII table