{"id":67251,"date":"2026-10-20T13:05:59","date_gmt":"2026-10-20T10:05:59","guid":{"rendered":"https:\/\/wpcalc.com\/en\/?p=67251"},"modified":"2026-10-20T13:05:59","modified_gmt":"2026-10-20T10:05:59","slug":"cidr-calculator-ip-range-to-cidr","status":"publish","type":"post","link":"https:\/\/wpcalc.com\/en\/web-tools\/cidr-calculator-ip-range-to-cidr\/","title":{"rendered":"CIDR Calculator \u2013 IP Range to CIDR"},"content":{"rendered":"<section class=\"not-prose calculator-box\" aria-labelledby=\"calculator-title\"><div class=\"flex items-baseline sm:items-center justify-between gap-2 sm:gap-3\"><div class=\"flex flex-col sm:flex-row sm:items-center gap-2\"><span class=\"icon icon-calculator text-primary-700! text-base! dark:text-primary-300!\" aria-hidden=\"true\"><\/span><h2 id=\"calculator-title\" class=\"text-lg font-display font-bold\">Convert Between IP Ranges and CIDR Blocks<\/h2><\/div><div class=\"calcdash-favorite group\">\n  <button type=\"button\" class=\"favorite\" id=\"favorite\" data-favorite-id=\"67251\" data-favorite-title=\"CIDR\" data-favorite-url=\"https:\/\/wpcalc.com\/en\/web-tools\/cidr-calculator-ip-range-to-cidr\/\" data-favorite-excerpt=\"Convert an IPv4 CIDR block such as 10.0.0.0\/22 into its address range, netmask and host count, convert a first\u2013last IP range into the minimal set of CIDR blocks, or aggregate a list of blocks into one summarized list.\" aria-label=\"Add to Favorites\" data-favorite-icon=\"icon icon-window-code\">\n    <span class=\"icon icon-shape-star-empty\" aria-hidden=\"true\"><\/span>\n  <\/button>\n  <div class=\"calcdash-favorite__tip\" aria-hidden=\"true\">\n   <span class=\"favorite-tooltip\" id=\"favorite-tooltip\"><\/span>\n  <\/div>\n  <span class=\"sr-only\" role=\"status\" id=\"favorite-status\"><\/span>\n<\/div><\/div><form action=\"https:\/\/wpcalc.com\/en\/web-tools\/cidr-calculator-ip-range-to-cidr\/\" method=\"POST\" class=\"calculator\" id=\"calculator-67251\" data-post=\"67251\"><fieldset class=\"fieldset-input is-2\"><legend class=\"sr-only\">Input Fields<\/legend><div class=\"field is-single\" id=\"input-1\"><label for=\"field-1\">Mode<\/label><div class=\"grid grid-cols-1\"><select id=\"field-1\" name=\"mode\"><option value=\"cidr_to_range\" selected>CIDR \u2192 address range<\/option><option value=\"range_to_cidr\">Address range \u2192 CIDR blocks<\/option><option value=\"aggregate\">Aggregate a list of CIDRs<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><div class=\"field is-single\" id=\"input-2\"><label for=\"field-2\">CIDR block<\/label><input type=\"text\" name=\"cidr_block\" id=\"field-2\" aria-describedby=\"calc-info-2\" placeholder=\"10.0.0.0\/22\" step=\"any\" value=\"10.0.0.0\/22\"\/><small id=\"calc-info-2\">IPv4 address with a prefix length (\/0\u2013\/32); a bare address counts as \/32.<\/small><\/div><div class=\"field\" id=\"input-3\"><label for=\"field-3\">First IP address<\/label><input type=\"text\" name=\"first_ip_address\" id=\"field-3\" aria-describedby=\"calc-info-3\" placeholder=\"192.168.1.16\" step=\"any\" value=\"192.168.1.16\"\/><small id=\"calc-info-3\">Start of the range (inclusive).<\/small><\/div><div class=\"field\" id=\"input-4\" hidden><label for=\"field-4\">Last IP address<\/label><input type=\"text\" name=\"last_ip_address\" id=\"field-4\" aria-describedby=\"calc-info-4\" placeholder=\"192.168.1.63\" step=\"any\" value=\"192.168.1.63\"\/><small id=\"calc-info-4\">End of the range (inclusive).<\/small><\/div><div class=\"field is-single\" id=\"input-5\" hidden><label for=\"field-5\">CIDR blocks<\/label><textarea id=\"field-5\" name=\"cidr_blocks\">192.168.0.0\/24\n192.168.1.0\/24\n192.168.2.0\/24\n192.168.3.0\/24\n10.1.0.0\/16\n10.0.0.0\/8<\/textarea><\/div><\/fieldset><div class=\"buttons\"><button type=\"submit\" data-text=\"Re-Calculate\" id=\"calculate-button\" data-post=\"67251\">Calculate<\/button><button type=\"reset\">Reset<\/button><\/div><div class=\"field is-checkbox hidden!\" id=\"field-auto-calc\"><input type=\"checkbox\" id=\"auto-calc\"><label for=\"auto-calc\">Calculate automatically<\/label><small>If enabled, the result will update automatically when you change any value.<\/small><\/div><div class=\"fieldset-result is-hidden\" aria-labelledby=\"result-title\" aria-live=\"polite\" role=\"region\"> <h3 class=\"result-title bg-gradient-to-r from-primary-50 to-gray-50 dark:from-primary-900 dark:to-gray-800\" id=\"result-title\"><span class=\"icon icon-s-pulse\" aria-hidden=\"true\"><\/span> Range and CIDR Results<\/h3><div class=\"result-box\"><div class=\"field-result\" id=\"output-1\"><span class=\"field-title\"><span>First address (network)<\/span><\/span><span class=\"field-value\" id=\"result-1\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-2\"><span class=\"field-title\"><span>Last address (broadcast)<\/span><\/span><span class=\"field-value\" id=\"result-2\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-3\"><span class=\"field-title\"><span>Total addresses<\/span><\/span><span class=\"field-value\" id=\"result-3\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-4\"><span class=\"field-title\"><span>Netmask<\/span><\/span><span class=\"field-value\" id=\"result-4\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-5\"><span class=\"field-title\"><span>Wildcard mask<\/span><\/span><span class=\"field-value\" id=\"result-5\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-6\"><span class=\"field-title\"><span>CIDR block<\/span><\/span><span class=\"field-value\" id=\"result-6\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-7\"><span class=\"field-title\"><span>Number of CIDR blocks<\/span><\/span><span class=\"field-value\" id=\"result-7\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result is-column\" id=\"output-8\"><span class=\"field-title\"><span>CIDR blocks<\/span><\/span><span class=\"field-value\" id=\"result-8\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result is-column\" id=\"output-9\"><span class=\"field-title\"><span>Calculation details<\/span><\/span><span class=\"field-value\" id=\"result-9\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><\/div><div class=\"result-actions\"><button type=\"button\" class=\"copy-link\"><svg viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z\"\/><path d=\"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z\"\/><\/svg><span class=\"copy-link__text\">Copy link to this calculation<\/span><\/button><span class=\"sr-only\" role=\"status\" id=\"copy-link-status\"><\/span><\/div><\/div><a href=\"#respond\" class=\"hidden transition-opacity duration-300 opacity-0 w-50 text-sm justify-center items-center gap-2 px-4 py-2 rounded bg-gray-200 text-gray-700 hover:bg-gray-300\" id=\"leave-comment\"><span class=\"icon icon-comments\" aria-hidden=\"true\"><\/span>Leave a Comment<\/a><\/form><\/section><section id=\"calc-reactions\" class=\"not-prose hidden my-12 bg-gradient-to-r from-primary-50 to-gray-50 border border-indigo-100 rounded-xl px-6 py-4 shadow-sm\" data-post=\"67251\" aria-live=\"polite\" aria-labelledby=\"calc-reactions-title\"><p id=\"calc-reactions-title\" class=\"text-sm text-gray-500 text-center mb-2\">How did this result make you feel?<\/p><div role=\"group\" aria-labelledby=\"calc-reactions-title\" class=\"grid grid-cols-3 sm:flex sm:flex-row sm:justify-around gap-4 sm:items-center sm:flex-wrap\"><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"like\"><span class=\"reaction-count\" data-reaction-count=\"like\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude00 <\/span><span class=\"reaction-description font-medium\">Like <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"helpful\"><span class=\"reaction-count\" data-reaction-count=\"helpful\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\udca1 <\/span><span class=\"reaction-description font-medium\">Helpful <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"confused\"><span class=\"reaction-count\" data-reaction-count=\"confused\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude15 <\/span><span class=\"reaction-description font-medium\">Confused <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"disappointed\"><span class=\"reaction-count\" data-reaction-count=\"disappointed\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude1e <\/span><span class=\"reaction-description font-medium\">Disappointed <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"inaccurate\"><span class=\"reaction-count\" data-reaction-count=\"inaccurate\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\u274c <\/span><span class=\"reaction-description font-medium\">Inaccurate <\/span><\/button><\/div><div id=\"reaction-message\" class=\"hidden mt-8 rounded-md border border-primary-100 bg-white\/50 backdrop-blur-sm px-4 py-2 text-sm text-center shadow-sm\"><\/div><\/section><div class=\"calcdash-ad not-prose calcdash-ad--calc_result calcdash-ad--in-article\"><ins class=\"adsbygoogle\" style=\"display:block\" data-ad-client=\"ca-pub-1721569815777345\" data-ad-slot=\"6317458308\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\"><\/ins><script>(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/div>\n<style id=\"wpcoderpro-inline-1\">.formula-box {\r\n\tborder-bottom: none !important;\r\n}<\/style><section class=\"formula-box\" aria-labelledby=\"formula-title\">\r\n\t<div id=\"formula-title\" class=\"not-prose font-display mb-4\"><span class=\"icon icon-formula\" aria-hidden=\"true\"><\/span><h2>CIDR Formula<\/h2><\/div>\r\n\t<figure class=\"not-prose formula\">\r\n\t\t<figcaption class=\"formula-title\">Formula<\/figcaption>\r\n\t\t<div class=\"text-base text-gray-800\" id=\"formula\">\n\\[ N = 2^{32-p} \\\\\\\\\\\\[4pt] \\text{netmask} = \\underbrace{111\\ldots1}_{p\\text{ bits}}\\underbrace{000\\ldots0}_{32-p\\text{ bits}} \\\\\\\\\\\\[4pt] \\text{network} = \\text{IP} \\mathbin{\\&amp;} \\text{netmask} \\\\\\\\\\\\[4pt] \\text{broadcast} = \\text{network} + N - 1 \\\\\\\\\\\\[4pt] \\text{usable hosts} = N - 2 \\quad (0 \\le p \\le 30) \\]\n<\/div>\r\n\t<\/figure>\r\n\t<\/p>\n<p><strong>Where:<\/strong><\/p>\n<ul>\n<li>\\(p\\) \u2014 the prefix length, i.e. the number of leading bits the block fixes (0\u201332)<\/li>\n<li>\\(N\\) \u2014 total number of addresses covered by the block<\/li>\n<li>\\(\\text{IP}\\) \u2014 the address you enter; the bitwise AND (<code>&amp;<\/code>) clears the host bits<\/li>\n<li>\\(\\text{network}\\) and \\(\\text{broadcast}\\) \u2014 the first and last addresses of the block<\/li>\n<\/ul>\n<p>A CIDR block is defined only by its prefix length: a \/\\(p\\) block contains \\(2^{32-p}\\) addresses, starts at an address whose last \\(32-p\\) bits are zero, and its netmask has exactly \\(p\\) one-bits followed by zeros. The wildcard mask is simply the bitwise inverse of the netmask.<\/p>\n<p>\r\n<\/section>\n<style id=\"wpcoderpro-inline-459\">.calculation-box {\r\n\tborder-bottom: none !important;\r\n}<\/style><section id=\"calculation\" class=\"calculation-box\" aria-labelledby=\"calculation-title\">\r\n\t<div id=\"calculation-title\" class=\"not-prose font-display\"><span class=\"icon icon-unordered-list\" aria-hidden=\"true\"><\/span><h2>CIDR \u2013 Calculation Example<\/h2><\/div>\r\n\r\n<\/p>\n<p><strong>Example:<\/strong> convert the block <code>10.0.0.0\/22<\/code> into its address range, the calculator's default value.<\/p>\n<p>\\[ N = 2^{32-22} = 2^{10} = 1024 \\]<\/p>\n<p>\\[ \\text{netmask} = 255.255.252.0 \\quad \\Rightarrow \\quad \\text{wildcard} = 0.0.3.255 \\]<\/p>\n<p>\\[ \\text{broadcast} = 10.0.0.0 + 1023 = 10.0.3.255 \\]<\/p>\n<p><strong>Result:<\/strong> the block <code>10.0.0.0\/22<\/code> covers the range 10.0.0.0 \u2013 10.0.3.255 \u2014 1,024 addresses in total, of which 1,022 are usable for hosts (the network and broadcast addresses are reserved).<\/p>\n<p>\n\r\n<\/section>\n<h2>How to Use the Calculator<\/h2>\n<ol>\n<li>Choose a <strong>Mode<\/strong>: \"CIDR \u2192 address range\", \"Address range \u2192 CIDR blocks\", or \"Aggregate a list of CIDRs\". Only the inputs used by the selected mode are shown.<\/li>\n<li>In <strong>CIDR \u2192 address range<\/strong> mode, enter a <strong>CIDR block<\/strong> such as <code>10.0.0.0\/22<\/code>. A bare address like <code>192.168.1.1<\/code> is treated as a \/32 (a single host). The results show the first address (network), last address (broadcast), total addresses, netmask, wildcard mask, and the canonical block.<\/li>\n<li>In <strong>Address range \u2192 CIDR blocks<\/strong> mode, enter the <strong>First IP address<\/strong> and <strong>Last IP address<\/strong> of the range (both inclusive). The calculator returns the minimal number of CIDR blocks that cover the range exactly, with no gaps or overlaps, plus a per-block breakdown.<\/li>\n<li>In <strong>Aggregate a list of CIDRs<\/strong> mode, paste your blocks into the <strong>CIDR blocks<\/strong> field \u2014 one per line, though commas and semicolons also work. Overlapping and adjacent blocks are merged automatically, and the whole list is summarized as the smallest exact set of blocks.<\/li>\n<li>Check <strong>Calculation details<\/strong> under the results for the step-by-step logic, including a note when an entered address had host bits set. For planning subnets around one block, the <a href=\"https:\/\/wpcalc.com\/en\/web-tools\/ip-subnet-calculator\/\">IP subnet calculator<\/a> covers the same operations from a subnetting angle.<\/li>\n<\/ol>\n<h2>What Is CIDR?<\/h2>\n<p>Classless Inter-Domain Routing (CIDR) replaced the old class A\/B\/C system with a flexible notation that writes an address and its prefix length together: <code>a.b.c.d\/p<\/code>. The prefix \\(p\\) says how many leading bits are common to every address in the block; the remaining \\(32-p\\) bits vary freely, so the block contains \\(2^{32-p}\\) addresses. That single rule explains everything else: a \/24 has \\(2^8 = 256\\) addresses and netmask <code>255.255.255.0<\/code>, a \/22 has \\(2^{10} = 1024\\) addresses and netmask <code>255.255.252.0<\/code>, and a \/32 is one exact address.<\/p>\n<p>A key consequence of the bit structure is <em>alignment<\/em>: a block of \\(2^k\\) addresses can only start at an address that is a multiple of \\(2^k\\). This is why, for example, <code>192.168.1.16\/28<\/code> is valid (16 addresses starting at a multiple of 16) but <code>192.168.1.8\/28<\/code> is not a proper block boundary. When you convert an arbitrary first\u2013last range to CIDR, the range rarely lines up with a single block, so it must be split. The calculator uses a greedy algorithm: at each step it takes the largest block that both fits in the remaining addresses and is correctly aligned, which provably yields the minimum possible number of blocks.<\/p>\n<p>Interpreting the numbers matters in practice. \"Total addresses\" is the raw size of the block, but classic subnetting (prefixes \/0 through \/30) reserves the first address as the network identifier and the last as the broadcast address, leaving two fewer usable for hosts. A \/31 (per RFC 3021, for point-to-point links) and a \/32 (a single host) are exceptions where every address is usable. If your goal is to plan how a larger block divides into smaller subnets with hosts per subnet, use the <a href=\"https:\/\/wpcalc.com\/en\/web-tools\/ip-subnet-calculator\/\">subnet calculator<\/a>; to verify address arithmetic by hand, the <a href=\"https:\/\/wpcalc.com\/en\/web-tools\/binary-converter\/\">binary converter<\/a> shows the bit patterns behind the masks.<\/p>\n<h2>Tips and Limitations<\/h2>\n<ul>\n<li>The calculator handles <strong>IPv4 only<\/strong> (four octets, 0\u2013255, prefix \/0\u2013\/32). IPv6 addresses are rejected.<\/li>\n<li>If you enter an address with host bits set, such as <code>10.0.1.7\/22<\/code>, the results describe the <em>containing<\/em> block (<code>10.0.0.0\/22<\/code>), and the calculation details flag this. To be explicit, always enter the network address.<\/li>\n<li>A first\u2013last range is converted to the <em>minimal exact<\/em> set of blocks \u2014 coverage with no gaps and no duplicates. This is usually what routing tables and access-control lists want.<\/li>\n<li>Aggregation merges blocks only when they overlap or are directly adjacent; a gap of even one address keeps them separate.<\/li>\n<li>Very large results (e.g. aggregating many scattered \/32s) can run to thousands of blocks; the table shows the first 200 and reports the full count.<\/li>\n<\/ul>\n<h2>Common CIDR Prefixes Reference<\/h2>\n<table>\n<thead>\n<tr>\n<th>Prefix<\/th>\n<th>Netmask<\/th>\n<th>Wildcard<\/th>\n<th>Addresses<\/th>\n<th>Usable hosts<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\/30<\/td>\n<td>255.255.255.252<\/td>\n<td>0.0.0.3<\/td>\n<td>4<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>\/29<\/td>\n<td>255.255.255.248<\/td>\n<td>0.0.0.7<\/td>\n<td>8<\/td>\n<td>6<\/td>\n<\/tr>\n<tr>\n<td>\/24<\/td>\n<td>255.255.255.0<\/td>\n<td>0.0.0.255<\/td>\n<td>256<\/td>\n<td>254<\/td>\n<\/tr>\n<tr>\n<td>\/22<\/td>\n<td>255.255.252.0<\/td>\n<td>0.0.3.255<\/td>\n<td>1,024<\/td>\n<td>1,022<\/td>\n<\/tr>\n<tr>\n<td>\/20<\/td>\n<td>255.255.240.0<\/td>\n<td>0.0.15.255<\/td>\n<td>4,096<\/td>\n<td>4,094<\/td>\n<\/tr>\n<tr>\n<td>\/16<\/td>\n<td>255.255.0.0<\/td>\n<td>0.0.255.255<\/td>\n<td>65,536<\/td>\n<td>65,534<\/td>\n<\/tr>\n<tr>\n<td>\/8<\/td>\n<td>255.0.0.0<\/td>\n<td>0.255.255.255<\/td>\n<td>16,777,216<\/td>\n<td>16,777,214<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Each extra bit in the prefix halves the block; each bit removed doubles it. The relationship \\(N = 2^{32-p}\\) is all you need to reconstruct any row of this table.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Convert an IPv4 CIDR block such as 10.0.0.0\/22 into its address range, netmask and host count, convert a first\u2013last IP range into the minimal set of CIDR blocks, or aggregate a list of blocks into one summarized list.<\/p>\n","protected":false},"author":3168,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[63],"tags":[102],"class_list":["post-67251","post","type-post","status-publish","format-standard","hentry","category-web-tools","tag-network-tools"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/67251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/users\/3168"}],"replies":[{"embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/comments?post=67251"}],"version-history":[{"count":1,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/67251\/revisions"}],"predecessor-version":[{"id":67256,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/67251\/revisions\/67256"}],"wp:attachment":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/media?parent=67251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/categories?post=67251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/tags?post=67251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}