No tool matches “”

Try a format (“webp”, “mp3”) or a verb (“merge”, “compress”).

Loading index

↵to open

Network Tools · Updated November 6, 2026 · Reviewed by FormatFlow Editorial

IPv4 Subnet Calculator — Network, Broadcast and Host Range

You can calculate the network address, broadcast address, subnet mask, wildcard mask and usable host range for any IPv4 address and prefix length, including the special /31 and /32 cases.

Runs in your browserFree · No sign-up · No watermark
IPv4 / CIDRRuns in your browser
Loading the tool…

Everything runs locally in this tab. No file is uploaded while the tool loads.

Use this tool as a step in a repeatable browser pipeline.

Add to Workflow

This tool runs in your tab. Nothing is uploaded and no copy is stored.

How files are handled

Key facts

Category
Network Tools
Processing
In your browser — nothing is uploaded
Input formats
IPv4 address, prefix or mask
Output format
Subnet details
Maximum size
Bound by the memory available to your browser tab
Requirements
Chrome, Edge, Firefox or Safari · JavaScript enabled
Price
Free, no account, no watermark
Last updated
Nov 6, 2026

SummaryIPv4 Subnet Calculator is a free online network tools tool. You can calculate the network address, broadcast address, subnet mask, wildcard mask and usable host range for any IPv4 address and prefix length, including the special /31 and /32 cases. A subnet calculation is a short sequence of bit operations, but a small mistake is expensive: an off-by-one prefix, a host range that quietly includes the broadcast address, or a mask whose bits are not contiguous. This calculator takes the address and prefix you type and shows the network, broadcast, mask, wildcard and the first and last usable host on one screen. It runs in your browser — nothing is uploaded. It accepts IPv4 address, prefix or mask and produces Subnet details. The maximum size is bound by the memory available to your browser tab.

At a glance

Works with
IPv4 / CIDR
Processing
In your browser
Price
Free, no account
Updated
November 6, 2026
All Network Tools

About IPv4 Subnet Calculator

A subnet calculation is a short sequence of bit operations, but a small mistake is expensive: an off-by-one prefix, a host range that quietly includes the broadcast address, or a mask whose bits are not contiguous. This calculator takes the address and prefix you type and shows the network, broadcast, mask, wildcard and the first and last usable host on one screen.

The arithmetic uses 32-bit unsigned integers, and a binary boundary line shows exactly which bits belong to the network and which to the host. Prefix length and dotted-decimal mask are both accepted, and the special /31 and /32 cases are explained instead of being allowed to produce a negative host count.

What this tool does

The details that matter when you use IPv4 Subnet Calculator for real work.
  • Network and broadcast

    See the network address, broadcast address and wildcard mask for the prefix you enter.

  • Usable host range

    The first and last usable address and the usable host count, with /31 and /32 handled by their special rules.

  • Prefix or dotted mask

    Accept /0 to /32 as a prefix or type a dotted-decimal mask; a non-contiguous mask is rejected with a clear message.

  • Binary boundary

    A bit view splits the 32 bits at the prefix boundary so the network and host parts are easy to check.

  • Copy every value

    Each result row has its own copy button with inline feedback for tickets, runbooks and change notes.

  • Local and offline

    The bit maths runs in the browser; the address never leaves the tab and no network connection is used.

How to use IPv4 Subnet Calculator

No account, no installation — the whole job happens in this browser tab.
  1. 01

    Enter the IPv4 address

    Type an address such as 192.168.10.42 in dotted decimal; all four octets are required.

  2. 02

    Choose the prefix or mask

    Pick a prefix length from /0 to /32, or switch the input mode and type the dotted-decimal subnet mask.

  3. 03

    Read the subnet details

    The result card shows the network, broadcast, mask, wildcard, usable hosts and the binary boundary.

  4. 04

    Check the special cases

    A /31 is treated as a point-to-point link with two usable addresses, and a /32 as a single host address.

  5. 05

    Copy what you need

    Use the copy button on any row and paste the value into your configuration, ticket or runbook.

How this tool works

Works with
IPv4 / CIDR
Processing
Client-side, in your browser. Nothing is uploaded.
Requirements
Chrome, Edge, Firefox or Safari · JavaScript enabled

Limitations worth knowing

  • IPv4 only; IPv6 prefixes use the separate IPv6 subnet calculator.
  • A /31 is reported as two usable point-to-point addresses and a /32 as one; confirm that the convention matches your platform.
  • No routing, VLAN, NAT or overlap validation; the tool only computes the addressing maths.
  • Input accepts dotted-decimal IPv4 only, not shorthand such as 10/8 or octal and hexadecimal octets.

Privacy and file handling

The address and prefix you type are processed in your browser with plain JavaScript. Nothing is uploaded, no request is made, and no value is stored; closing the page clears the form.

Read the full privacy policy

IPv4 Subnet Calculator FAQ

Short, direct answers to the questions people ask before using this tool.
How is the network address calculated?
The network address is the IPv4 address ANDed with the subnet mask. This calculator performs that 32-bit AND and shows the result, so a mistyped octet is visible before it reaches a device.
What is the broadcast address used for?
The broadcast address is the highest address in the subnet and reaches every host in it. It cannot be assigned to a single host, which is why the usable range normally starts one address above the network and ends one below broadcast.
Why does a /24 have 254 usable hosts?
A /24 contains 256 addresses. The network address identifies the subnet and the broadcast address reaches all hosts, so both are reserved, leaving 254 addresses for hosts. The same logic applies to every prefix from /1 to /30.
What is special about a /31 subnet?
RFC 3021 allows a /31 to be used on point-to-point links, where both addresses are usable and no broadcast address is reserved. This calculator reports two usable addresses for a /31 and explains the convention.
What about a /32 prefix?
A /32 describes a single address. It is commonly used for host routes and loopback addresses; this calculator reports one usable address, which is the address itself.
Does a non-contiguous dotted mask work?
No. A subnet mask must be a run of 1 bits followed by a run of 0 bits. A value such as 255.0.255.0 is not a valid mask and the calculator reports it instead of producing misleading results.
Can I use private addresses in the calculator?
Yes. Any IPv4 address works, including the private ranges 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16, plus loopback and link-local addresses. No address is sent anywhere.
Is this the same as validating a router or VLAN configuration?
No. The calculator only answers the addressing maths. It does not validate routing, VLAN assignment, overlap with existing subnets or vendor-specific syntax, which still need checking on the actual equipment.

Background reading

Format guides that explain the trade-offs behind IPv4 Subnet Calculator.