Subnet Calculator Free

IPv6 Subnet Calculator

An IPv6 subnet calculator shows that 2001:db8:abcd::/48 runs from 2001:db8:abcd:: to 2001:db8:abcd:ffff:ffff:ffff:ffff:ffff and holds 65,536 /64 subnets, and each of those subnets holds 18,446,744,073,709,551,616 addresses. Type any prefix below to see its range and address count, or to compress, expand or split it.

IPv6 subnet calculator

Network (compressed)
2001:db8:abcd::/48
Network (expanded)
2001:0db8:abcd:0000:0000:0000:0000:0000
First address
2001:db8:abcd::
Last address
2001:db8:abcd:ffff:ffff:ffff:ffff:ffff
Addresses in prefix
2^80 = 1,208,925,819,614,629,174,706,176
Number of /64 subnets
65,536
Address type
Documentation
Address (compressed)
2001:db8:abcd::
Address (expanded)
2001:0db8:abcd:0000:0000:0000:0000:0000

Addresses = 2^(128 - prefix). Number of /64 subnets = 2^(64 - prefix). IPv6 has no broadcast address, so the end of a range is the last address.

Split into /64 subnets

This split makes 65,536 subnets. The list shows the first 256.

  1. 2001:db8:abcd::/64
  2. 2001:db8:abcd:1::/64
  3. 2001:db8:abcd:2::/64
  4. 2001:db8:abcd:3::/64
  5. 2001:db8:abcd:4::/64
  6. 2001:db8:abcd:5::/64
  7. 2001:db8:abcd:6::/64
  8. 2001:db8:abcd:7::/64
  9. 2001:db8:abcd:8::/64
  10. 2001:db8:abcd:9::/64
  11. 2001:db8:abcd:a::/64
  12. 2001:db8:abcd:b::/64
  13. 2001:db8:abcd:c::/64
  14. 2001:db8:abcd:d::/64
  15. 2001:db8:abcd:e::/64
  16. 2001:db8:abcd:f::/64
  17. 2001:db8:abcd:10::/64
  18. 2001:db8:abcd:11::/64
  19. 2001:db8:abcd:12::/64
  20. 2001:db8:abcd:13::/64
  21. 2001:db8:abcd:14::/64
  22. 2001:db8:abcd:15::/64
  23. 2001:db8:abcd:16::/64
  24. 2001:db8:abcd:17::/64
  25. 2001:db8:abcd:18::/64
  26. 2001:db8:abcd:19::/64
  27. 2001:db8:abcd:1a::/64
  28. 2001:db8:abcd:1b::/64
  29. 2001:db8:abcd:1c::/64
  30. 2001:db8:abcd:1d::/64
  31. 2001:db8:abcd:1e::/64
  32. 2001:db8:abcd:1f::/64
  33. 2001:db8:abcd:20::/64
  34. 2001:db8:abcd:21::/64
  35. 2001:db8:abcd:22::/64
  36. 2001:db8:abcd:23::/64
  37. 2001:db8:abcd:24::/64
  38. 2001:db8:abcd:25::/64
  39. 2001:db8:abcd:26::/64
  40. 2001:db8:abcd:27::/64
  41. 2001:db8:abcd:28::/64
  42. 2001:db8:abcd:29::/64
  43. 2001:db8:abcd:2a::/64
  44. 2001:db8:abcd:2b::/64
  45. 2001:db8:abcd:2c::/64
  46. 2001:db8:abcd:2d::/64
  47. 2001:db8:abcd:2e::/64
  48. 2001:db8:abcd:2f::/64
  49. 2001:db8:abcd:30::/64
  50. 2001:db8:abcd:31::/64
  51. 2001:db8:abcd:32::/64
  52. 2001:db8:abcd:33::/64
  53. 2001:db8:abcd:34::/64
  54. 2001:db8:abcd:35::/64
  55. 2001:db8:abcd:36::/64
  56. 2001:db8:abcd:37::/64
  57. 2001:db8:abcd:38::/64
  58. 2001:db8:abcd:39::/64
  59. 2001:db8:abcd:3a::/64
  60. 2001:db8:abcd:3b::/64
  61. 2001:db8:abcd:3c::/64
  62. 2001:db8:abcd:3d::/64
  63. 2001:db8:abcd:3e::/64
  64. 2001:db8:abcd:3f::/64
  65. 2001:db8:abcd:40::/64
  66. 2001:db8:abcd:41::/64
  67. 2001:db8:abcd:42::/64
  68. 2001:db8:abcd:43::/64
  69. 2001:db8:abcd:44::/64
  70. 2001:db8:abcd:45::/64
  71. 2001:db8:abcd:46::/64
  72. 2001:db8:abcd:47::/64
  73. 2001:db8:abcd:48::/64
  74. 2001:db8:abcd:49::/64
  75. 2001:db8:abcd:4a::/64
  76. 2001:db8:abcd:4b::/64
  77. 2001:db8:abcd:4c::/64
  78. 2001:db8:abcd:4d::/64
  79. 2001:db8:abcd:4e::/64
  80. 2001:db8:abcd:4f::/64
  81. 2001:db8:abcd:50::/64
  82. 2001:db8:abcd:51::/64
  83. 2001:db8:abcd:52::/64
  84. 2001:db8:abcd:53::/64
  85. 2001:db8:abcd:54::/64
  86. 2001:db8:abcd:55::/64
  87. 2001:db8:abcd:56::/64
  88. 2001:db8:abcd:57::/64
  89. 2001:db8:abcd:58::/64
  90. 2001:db8:abcd:59::/64
  91. 2001:db8:abcd:5a::/64
  92. 2001:db8:abcd:5b::/64
  93. 2001:db8:abcd:5c::/64
  94. 2001:db8:abcd:5d::/64
  95. 2001:db8:abcd:5e::/64
  96. 2001:db8:abcd:5f::/64
  97. 2001:db8:abcd:60::/64
  98. 2001:db8:abcd:61::/64
  99. 2001:db8:abcd:62::/64
  100. 2001:db8:abcd:63::/64
  101. 2001:db8:abcd:64::/64
  102. 2001:db8:abcd:65::/64
  103. 2001:db8:abcd:66::/64
  104. 2001:db8:abcd:67::/64
  105. 2001:db8:abcd:68::/64
  106. 2001:db8:abcd:69::/64
  107. 2001:db8:abcd:6a::/64
  108. 2001:db8:abcd:6b::/64
  109. 2001:db8:abcd:6c::/64
  110. 2001:db8:abcd:6d::/64
  111. 2001:db8:abcd:6e::/64
  112. 2001:db8:abcd:6f::/64
  113. 2001:db8:abcd:70::/64
  114. 2001:db8:abcd:71::/64
  115. 2001:db8:abcd:72::/64
  116. 2001:db8:abcd:73::/64
  117. 2001:db8:abcd:74::/64
  118. 2001:db8:abcd:75::/64
  119. 2001:db8:abcd:76::/64
  120. 2001:db8:abcd:77::/64
  121. 2001:db8:abcd:78::/64
  122. 2001:db8:abcd:79::/64
  123. 2001:db8:abcd:7a::/64
  124. 2001:db8:abcd:7b::/64
  125. 2001:db8:abcd:7c::/64
  126. 2001:db8:abcd:7d::/64
  127. 2001:db8:abcd:7e::/64
  128. 2001:db8:abcd:7f::/64
  129. 2001:db8:abcd:80::/64
  130. 2001:db8:abcd:81::/64
  131. 2001:db8:abcd:82::/64
  132. 2001:db8:abcd:83::/64
  133. 2001:db8:abcd:84::/64
  134. 2001:db8:abcd:85::/64
  135. 2001:db8:abcd:86::/64
  136. 2001:db8:abcd:87::/64
  137. 2001:db8:abcd:88::/64
  138. 2001:db8:abcd:89::/64
  139. 2001:db8:abcd:8a::/64
  140. 2001:db8:abcd:8b::/64
  141. 2001:db8:abcd:8c::/64
  142. 2001:db8:abcd:8d::/64
  143. 2001:db8:abcd:8e::/64
  144. 2001:db8:abcd:8f::/64
  145. 2001:db8:abcd:90::/64
  146. 2001:db8:abcd:91::/64
  147. 2001:db8:abcd:92::/64
  148. 2001:db8:abcd:93::/64
  149. 2001:db8:abcd:94::/64
  150. 2001:db8:abcd:95::/64
  151. 2001:db8:abcd:96::/64
  152. 2001:db8:abcd:97::/64
  153. 2001:db8:abcd:98::/64
  154. 2001:db8:abcd:99::/64
  155. 2001:db8:abcd:9a::/64
  156. 2001:db8:abcd:9b::/64
  157. 2001:db8:abcd:9c::/64
  158. 2001:db8:abcd:9d::/64
  159. 2001:db8:abcd:9e::/64
  160. 2001:db8:abcd:9f::/64
  161. 2001:db8:abcd:a0::/64
  162. 2001:db8:abcd:a1::/64
  163. 2001:db8:abcd:a2::/64
  164. 2001:db8:abcd:a3::/64
  165. 2001:db8:abcd:a4::/64
  166. 2001:db8:abcd:a5::/64
  167. 2001:db8:abcd:a6::/64
  168. 2001:db8:abcd:a7::/64
  169. 2001:db8:abcd:a8::/64
  170. 2001:db8:abcd:a9::/64
  171. 2001:db8:abcd:aa::/64
  172. 2001:db8:abcd:ab::/64
  173. 2001:db8:abcd:ac::/64
  174. 2001:db8:abcd:ad::/64
  175. 2001:db8:abcd:ae::/64
  176. 2001:db8:abcd:af::/64
  177. 2001:db8:abcd:b0::/64
  178. 2001:db8:abcd:b1::/64
  179. 2001:db8:abcd:b2::/64
  180. 2001:db8:abcd:b3::/64
  181. 2001:db8:abcd:b4::/64
  182. 2001:db8:abcd:b5::/64
  183. 2001:db8:abcd:b6::/64
  184. 2001:db8:abcd:b7::/64
  185. 2001:db8:abcd:b8::/64
  186. 2001:db8:abcd:b9::/64
  187. 2001:db8:abcd:ba::/64
  188. 2001:db8:abcd:bb::/64
  189. 2001:db8:abcd:bc::/64
  190. 2001:db8:abcd:bd::/64
  191. 2001:db8:abcd:be::/64
  192. 2001:db8:abcd:bf::/64
  193. 2001:db8:abcd:c0::/64
  194. 2001:db8:abcd:c1::/64
  195. 2001:db8:abcd:c2::/64
  196. 2001:db8:abcd:c3::/64
  197. 2001:db8:abcd:c4::/64
  198. 2001:db8:abcd:c5::/64
  199. 2001:db8:abcd:c6::/64
  200. 2001:db8:abcd:c7::/64
  201. 2001:db8:abcd:c8::/64
  202. 2001:db8:abcd:c9::/64
  203. 2001:db8:abcd:ca::/64
  204. 2001:db8:abcd:cb::/64
  205. 2001:db8:abcd:cc::/64
  206. 2001:db8:abcd:cd::/64
  207. 2001:db8:abcd:ce::/64
  208. 2001:db8:abcd:cf::/64
  209. 2001:db8:abcd:d0::/64
  210. 2001:db8:abcd:d1::/64
  211. 2001:db8:abcd:d2::/64
  212. 2001:db8:abcd:d3::/64
  213. 2001:db8:abcd:d4::/64
  214. 2001:db8:abcd:d5::/64
  215. 2001:db8:abcd:d6::/64
  216. 2001:db8:abcd:d7::/64
  217. 2001:db8:abcd:d8::/64
  218. 2001:db8:abcd:d9::/64
  219. 2001:db8:abcd:da::/64
  220. 2001:db8:abcd:db::/64
  221. 2001:db8:abcd:dc::/64
  222. 2001:db8:abcd:dd::/64
  223. 2001:db8:abcd:de::/64
  224. 2001:db8:abcd:df::/64
  225. 2001:db8:abcd:e0::/64
  226. 2001:db8:abcd:e1::/64
  227. 2001:db8:abcd:e2::/64
  228. 2001:db8:abcd:e3::/64
  229. 2001:db8:abcd:e4::/64
  230. 2001:db8:abcd:e5::/64
  231. 2001:db8:abcd:e6::/64
  232. 2001:db8:abcd:e7::/64
  233. 2001:db8:abcd:e8::/64
  234. 2001:db8:abcd:e9::/64
  235. 2001:db8:abcd:ea::/64
  236. 2001:db8:abcd:eb::/64
  237. 2001:db8:abcd:ec::/64
  238. 2001:db8:abcd:ed::/64
  239. 2001:db8:abcd:ee::/64
  240. 2001:db8:abcd:ef::/64
  241. 2001:db8:abcd:f0::/64
  242. 2001:db8:abcd:f1::/64
  243. 2001:db8:abcd:f2::/64
  244. 2001:db8:abcd:f3::/64
  245. 2001:db8:abcd:f4::/64
  246. 2001:db8:abcd:f5::/64
  247. 2001:db8:abcd:f6::/64
  248. 2001:db8:abcd:f7::/64
  249. 2001:db8:abcd:f8::/64
  250. 2001:db8:abcd:f9::/64
  251. 2001:db8:abcd:fa::/64
  252. 2001:db8:abcd:fb::/64
  253. 2001:db8:abcd:fc::/64
  254. 2001:db8:abcd:fd::/64
  255. 2001:db8:abcd:fe::/64
  256. 2001:db8:abcd:ff::/64

Last updated

IPv6 subnetting in short

A /64 is the usual size of one IPv6 subnet, the size of a single LAN. A /48 holds 65,536 of them, a /56 holds 256 and a /32 holds 4,294,967,296. Each /64 has 18,446,744,073,709,551,616 addresses.

The prefix works like it does in IPv4, with 128 bits instead of 32: the number after the slash counts the network bits. For the 32-bit version, see the subnet mask cheat sheet; to find the range of an IPv4 block, use the CIDR calculator.

IPv6 keeps its own private space, the unique local range fc00::/7. For the IPv4 equivalents, see the private IP address ranges.

IPv6 subnet cheat sheet

Four prefix lengths you will meet often, worked out by the same code as the calculator.

IPv6 subnet cheat sheet: /32, /48, /56 and /64
PrefixAddresses in prefixNumber of /64 subnets
/322^96 = 79,228,162,514,264,337,593,543,950,3364,294,967,296
/482^80 = 1,208,925,819,614,629,174,706,17665,536
/562^72 = 4,722,366,482,869,645,213,696256
/642^64 = 18,446,744,073,709,551,6161

Compress and expand IPv6 addresses

To compress an address, drop the leading zeros in each group, write the letters in lowercase and replace the longest run of two or more all-zero groups with a double colon, used once. If two runs tie the first one is replaced, and a single zero group is written as 0 (RFC 5952).

So 2001:0DB8:0000:0000:0000:0000:0000:0001 becomes 2001:db8::1, and 2001:db8:0:0:1:0:0:1 becomes 2001:db8::1:0:0:1. To expand an address, write every group with four digits and fill the double colon with zero groups: 2001:db8::1 is 2001:0db8:0000:0000:0000:0000:0000:0001.

IPv6 address types

The Address type row describes the address you typed. The first matching block below is used.

  • ::/128: Unspecified
  • ::1/128: Loopback
  • ::ffff:0:0/96: IPv4-mapped
  • fe80::/10: Link-local
  • fc00::/7: Unique local (private)
  • ff00::/8: Multicast
  • 2001:db8::/32: Documentation
  • 2000::/3: Global unicast
  • Anything else: Other (reserved)

Split a prefix

Pick a longer prefix in Split into to cut the block into equal subnets. The count is 2^(new prefix - prefix), shown exactly. The list shows up to 256 subnets, each with a Copy button, and a note gives the full count when there are more.

2001:db8:abcd::/48 into /50 makes 4 subnets: 2001:db8:abcd::/50, 2001:db8:abcd:4000::/50, 2001:db8:abcd:8000::/50 and 2001:db8:abcd:c000::/50. Into /52 it makes 16, from 2001:db8:abcd::/52 to 2001:db8:abcd:f000::/52. Into /64 it makes 65,536, and the list shows the first 256, ending at 2001:db8:abcd:ff::/64. 2001:db8::/32 into /48 makes 65,536 subnets.

Frequently asked questions

How many /64 subnets are in a /48?

A /48 holds 65,536 /64 subnets, because 64 minus 48 is 16 and 2^16 = 65,536. The block 2001:db8:abcd::/48 runs from 2001:db8:abcd:: to 2001:db8:abcd:ffff:ffff:ffff:ffff:ffff. A /56 holds 256 /64 subnets, and a /32 holds 4,294,967,296. Each /64 has 18,446,744,073,709,551,616 addresses.

How do I shorten an IPv6 address?

Drop the leading zeros in each group, then replace the longest run of all-zero groups with a double colon, used once. 2001:0DB8:0000:0000:0000:0000:0000:0001 becomes 2001:db8::1, in lowercase. If two runs tie, the first is shortened, and a single zero group is written as 0.

How many addresses are in an IPv6 /64?

An IPv6 /64 has 2^64 = 18,446,744,073,709,551,616 addresses. A single /64 such as 2001:db8:abcd:12::/64 runs from 2001:db8:abcd:12:: to 2001:db8:abcd:12:ffff:ffff:ffff:ffff. The count depends only on the prefix length. The calculator always shows the exact count with commas, and the same count as a power of two.

Does IPv6 have a broadcast address?

No. IPv6 has no broadcast address; where IPv4 uses broadcast, IPv6 uses multicast. This calculator therefore labels the end of a range "Last address" and never "Broadcast". For 2001:db8:abcd:12::/64 the first address is 2001:db8:abcd:12:: and the last address is 2001:db8:abcd:12:ffff:ffff:ffff:ffff.

Why is /64 the usual IPv6 subnet size?

A /64 leaves 64 bits for host addresses, which is the size automatic address setup expects, so /64 is the standard size for a LAN. A site with a /48 can make 65,536 of them. Smaller subnets are possible, but they are usually kept for special cases such as point-to-point links.

What type of address is fe80::1?

fe80::1 is a link-local address. Link-local addresses start with fe80::/10 and work only on the local link, and fe80::1/64 gives the network fe80::/64. The Address type row also names loopback (::1), unique local (fd00::1), multicast (ff02::1), documentation (2001:db8::1) and global unicast (2000::1).