Toolbox / IPv4 subnet calculator Runs in your browser中文
Network

IPv4 subnet calculator

Calculate CIDR, masks, host ranges, and address counts, including /0, /31, and /32.

Ctrl / ⌘ + Enter Run

Ready when you are

01

Add your contentPaste text or try a sample

02

Choose an actionClear options. Predictable results.

03

Take it with youCopy, download and carry on

Less switching. More focus.Functional build · Validation in progress

Using this tool

Calculate network boundaries and host ranges from IPv4 and a mask.

Actions: Calculate subnet · Previous subnet · Next subnet

Example

Use a documentation address to obtain its /24 network, broadcast, and host range.

Example action and settings

Action: Calculate subnet

Input / action

192.0.2.25/24

Result / expected behavior

Input address: 192.0.2.25
Prefix length: 24
Network address: 192.0.2.0
Last address / broadcast: 192.0.2.255
Subnet mask: 255.255.255.0
Wildcard mask: 0.0.0.255
Total addresses: 256
Usable hosts: 254
First usable address: 192.0.2.1
Last usable address: 192.0.2.254
Network CIDR: 192.0.2.0/24
Historical address class: C
Binary address: 11000000.00000000.00000010.00011001

Scope and limitations

  • IPv4 only; omitting the mask defaults to /24.
  • /31 uses two point-to-point addresses; /32 is a single host.

Common mistakes

  • Do not use noncontiguous masks or leading-zero octets; counts do not establish allocation or reachability.

Related tools

IPv4 range expander IPv4 address converter

Privacy and browser support

Input is processed in this browser. Do not use real keys or active sensitive credentials as demonstration data. Device features require browser support and your permission.