---
title: "IP Subnet Calculator IPv4 CIDR subnetting - AllTools"
description: "Enter an IPv4 address and CIDR prefix to get the network address, broadcast address, usable host range and subnet mask, with VLSM variable-length subnetting."
canonical_url: "https://tool.warmday.wang/en/dev/ip-calculator"
meta:
  author: AllTools
  keywords: "online tools, AllTools, free online tools, developer tools, image tools, PDF tools, text tools, unit converter, no login, browser-based tools"
  "og:description": "Enter an IPv4 address and CIDR prefix to get the network address, broadcast address, usable host range and subnet mask, with VLSM variable-length subnetting."
  "og:image": "https://tool.warmday.wang/img/og-cover.png"
  "og:image:alt": "AllTools Logo"
  "og:image:height": "630"
  "og:image:width": "1200"
  "og:title": "IP Subnet Calculator IPv4 CIDR subnetting"
  "twitter:image": "https://tool.warmday.wang/img/og-cover.png"
---

> Index of every page on this site: [llms.txt](https://tool.warmday.wang/llms.txt)

# **IP Subnet Calculator**

CIDR subnet calculation and division tool, supporting network address, broadcast address, subnet mask, IP range queries and visualization.

## **Input Configuration**

**IP Address / CIDR**Format: IP/prefix, e.g. 192.168.1.0/24

**Subnet Division Count (optional)**Must be a power of 2 (2/4/8...)

## **Usage Guide**

#### **Features**

A CIDR (Classless Inter-Domain Routing) based IP subnet calculation tool. Enter an IP address and mask prefix to obtain the network address, broadcast address, subnet mask, usable host count, and IP range, with 32-bit binary visualization and equal-length subnet division. All calculations use bignumber.js to avoid large integer precision loss.

#### **Steps**

Enter an address like 192.168.1.0/24 in the "IP Address / CIDR" field (a sample is pre-filled); results update in real-time. To divide into subnets, enter a power of 2 (2/4/8/16...) in the "Subnet Division Count" field; each subnet's network address, broadcast address, and usable IP range will be listed below. Click the copy button on the right side of any info row to copy that value.

#### **Notes**

Supports IPv4 addresses with prefix range 0-32. /31 networks are handled as point-to-point links per RFC 3021, with 2 usable hosts. /32 is a single-host address with 1 usable host. For other networks, usable hosts = total addresses - 2 (excluding network and broadcast addresses). Subnet division count must be a power of 2, and the new prefix after division cannot exceed 32.

## **Related tools**

More from the same category · Developer Tools

[**Cron Expression**Visual Cron builder: pick minute-hour-day-month-weekday fields and preview next run times live.](https://tool.warmday.wang/en/dev/cron) [**JSON Formatter**JSON beautify, minify and validate with auto error location for missing brackets and stray commas.](https://tool.warmday.wang/en/dev/json) [**Timestamp Converter**Convert Unix timestamps to dates and back with second/millisecond precision and live current time.](https://tool.warmday.wang/en/dev/timestamp) [**Regex Tester**Test regex with live match highlighting, capture groups and substitution, toggling g/i/m/s flags.](https://tool.warmday.wang/en/dev/regex) [**JWT Parser**Split a JWT into header, payload and signature, then base64url-decode claims and expiry without a key.](https://tool.warmday.wang/en/dev/jwt-parser) [**JWT Generator**Issue JWTs with custom header, claims and expiry across HS256, RS256, ES256 for auth-flow testing.](https://tool.warmday.wang/en/dev/jwt-generator)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://tool.warmday.wang/#organization","name":"AllTools","alternateName":"AllTools - 全能工具箱","url":"https://tool.warmday.wang/","logo":{"@type":"ImageObject","url":"https://tool.warmday.wang/img/logo.png","width":512,"height":512}},{"@type":"WebSite","@id":"https://tool.warmday.wang/en#website","url":"https://tool.warmday.wang/en","name":"AllTools","inLanguage":"en","publisher":{"@id":"https://tool.warmday.wang/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://tool.warmday.wang/en?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@type":"WebPage","@id":"https://tool.warmday.wang/en/dev/ip-calculator#webpage","url":"https://tool.warmday.wang/en/dev/ip-calculator","isPartOf":{"@id":"https://tool.warmday.wang/en#website"},"inLanguage":"en","name":"IP Subnet Calculator IPv4 CIDR subnetting","description":"Enter an IPv4 address and CIDR prefix to get the network address, broadcast address, usable host range and subnet mask, with VLSM variable-length subnetting."},{"@type":"SoftwareApplication","@id":"https://tool.warmday.wang/en/dev/ip-calculator#app","name":"IP Subnet Calculator IPv4 CIDR subnetting","description":"Enter an IPv4 address and CIDR prefix to get the network address, broadcast address, usable host range and subnet mask, with VLSM variable-length subnetting.","url":"https://tool.warmday.wang/en/dev/ip-calculator","applicationCategory":"DeveloperApplication","operatingSystem":"Web","inLanguage":"en","isPartOf":{"@id":"https://tool.warmday.wang/en/dev/ip-calculator#webpage"},"offers":{"@type":"Offer","price":"0","priceCurrency":"CNY"}},{"@type":"BreadcrumbList","@id":"https://tool.warmday.wang/en/dev/ip-calculator#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://tool.warmday.wang/en"},{"@type":"ListItem","position":2,"name":"Developer Tools","item":"https://tool.warmday.wang/en/dev"},{"@type":"ListItem","position":3,"name":"IP Subnet Calculator","item":"https://tool.warmday.wang/en/dev/ip-calculator"}]}]}
```

## Sitemap

See the full [sitemap](https://tool.warmday.wang/sitemap.md) for all pages.
