Skip to content
T2Run
Esc
  • RunPad Text Editor
    A Notepad++-style editor in your browser: tabs, split view, compare, 30 languages, JSON/XML/YAML tools.
    Text
  • Diff Checker
    Compare two texts or files side by side and see every added, removed and changed line.
    Text
  • JSON Beautifier
    Format, validate, sort and minify JSON with precise error locations.
    JSON & Data
  • Image Resizer
    Batch resize photos by pixels or percent and export to JPG, PNG or WebP.
    Image
  • JSON Validator
    Check if JSON is valid and see the exact line and column of any error.
    JSON & Data
  • JSON Minifier
    Remove whitespace to make JSON compact, and see how many bytes you saved.
    JSON & Data
  • JSON to Go Struct
    Generate Go struct type definitions with json tags from any JSON.
    JSON & Data
  • JSON to String
    Escape JSON into a string literal you can paste into code.
    JSON & Data

CIDR Calculator

IPv4 subnet ranges, masks, host counts and subnet splitting.

Runs in your browser — nothing is uploaded
Subnet details
CIDR notation
Network address
Broadcast address
First usable host
Last usable host
Subnet mask
Wildcard mask
Total addresses
Usable hosts
IP class
Address type
IP in binary
Mask in binary
IP as integer
IP in hex
Split into subnets

Pick a smaller subnet size to list every subnet inside 192.168.1.0/24.

Plan IPv4 networks

Enter any IPv4 address in CIDR notation or with a subnet mask to get the network and broadcast addresses, usable host range, masks and host counts. Split a block into smaller subnets when planning VPCs, VLANs or office networks.

How to use the CIDR Calculator

  1. Enter an IP address with a prefix (192.168.1.10/24) or a subnet mask (10.0.0.1 255.255.0.0).
  2. Drag the prefix slider to explore larger or smaller networks.
  3. Use "Split into subnets" to list every smaller subnet with its host range.

Frequently asked questions

How many usable hosts does a subnet have?

Usable hosts = 2^(32 − prefix) − 2, because the network and broadcast addresses are reserved. A /24 has 256 addresses and 254 usable hosts. /31 and /32 are special cases with 2 and 1 usable addresses.

Which ranges are private?

10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 (RFC 1918). The calculator also recognises loopback, link-local, CGNAT and multicast ranges.