VLANlab
Catalog
ENEnglishJA日本語ESEspañolRUРусскийKO한국어PTPortuguêsZH中文ARالعربية
About
VLANlab
Calculators
16 tools
Subnet CalculatorCIDR Range ViewerVLSM CalculatorCloudVLAN PlannerBandwidth CalcIPv6 Subnet CalcIP ↔ BinarySupernet CalcCIDR MergeCIDR to IP RangeCIDR SplitIPv4 → IPv6CIDR OverlapFree IP Space FinderDHCP CalculatorMTU Calculator
VLANlab

CALCULATE • LOOKUP • VERIFY

What Is My IP?IPv6 TestSpeed TestHTTP Request Headers
DNS LookupDNS PropagationDNS Health CheckerSPF AnalyzerPTR LookupCAA RecordSRV RecordDNS TraceDNS PrivacyDANE / TLSADNSSEC CheckerSPF BuilderDKIM GeneratorZone DiffPTR Zone Generator
Subnet CalculatorCIDR Range ViewerVLSM CalculatorVLAN PlannerBandwidth CalcIPv6 Subnet CalcIP ↔ BinarySupernet CalcCIDR MergeCIDR to IP RangeCIDR SplitIPv4 → IPv6CIDR OverlapFree IP Space FinderDHCP CalculatorMTU Calculator
WHOIS LookupDomain Age CheckerSubdomain FinderIP GeolocationASN / BGP LookupIP Blacklist CheckReverse IP LookupMAC Address LookupBGP Prefix LookupRPKI / ROA CheckDomain Availability
Email InspectorDKIM CheckerEmail HeadersSMTP Test
SMTP TLS CheckSoon
MX Health CheckEmail SecurityDMARC Generator
Temp MailSoon
Is It Down?SSL/TLS CheckerOpen Port CheckerOG Tag CheckerOCSP CheckerPing / LatencyHTTP InspectorRedirect ChainCSP AnalyzerTech Stack CheckerBetaTracerouteBetaHTTP/2 + HTTP/3robots.txt ViewerSSL Cert DecoderBanner GrabberWebSocket TesterCORS TesterHTTP TimingStructured DataPWA ManifestSEO Auditor
One-Time SecretHash GeneratorPassword StrengthSecurity.txtCT Log SearchAXFR Zone Test
HTTP Sec ScoreSoon
WebRTC Leak TestIP Reputation
JSON FormatterYAML FormatterBase64 / URL EncodeJWT DecoderRegex TesterUnix TimestampCron BuilderUUID / ULIDPunycode / IDNBase ConverterACL Generator
CSS Unit ConverterColor ToolkitGradient GeneratorcURL BuilderURL ParserURL Encoder/DecoderHTTP Status CodesBox Shadow GenFavicon GeneratorQR Code GeneratorFlex & Gridrobots.txt Tester
Text CompareCase ConverterText CleanerText AnalyzerText TransformerList ToolsLorem GeneratorSlug Generator
Cloud VPC PlannerCloud IP RangeSecurity GroupsIAM AnalyzerK8s CIDR PlannerFirewall BuilderHCL FormatterEgress Cost CalcCloud DNS Zone
VM Cost EstimatorSoon
Proxmox Net ConfigVMware Port GroupHyper-V vSwitchVXLAN VNI PlannerKVM Net ConfigXCP-ng NetworkNSX-T Segment
Disposable Email DetectorPhone InspectorTor Exit NodeVPN/Proxy DetectDomain ReputationTyposquat DetectUsername SearchFavicon Hash
GitHub ActionsDockerfile Gendocker-composeArgoCD AppK8s Manifests
About

© 2026 VLANlab

No login · No ads · No tracking

2.63.a76559e

IPv4 Subnet Calculator

Enter any IPv4 address and CIDR prefix or dotted subnet mask like 255.255.255.0. Network address, broadcast, host range, and wildcard mask calculate instantly. The built-in visual subnet calculator lets you split and rejoin blocks interactively.

/
Examples:

Enter an IP address and prefix above to calculate

Subnet cheat sheet: every IPv4 prefix

Each prefix length with its subnet mask, its wildcard mask, how many addresses it holds and how many of them hosts can use. A /31 has two usable addresses on a point-to-point link (RFC 3021), and a /32 is a single host.

PrefixSubnet maskWildcard maskTotal addressesUsable hosts
128.0.0.0127.255.255.2552,147,483,6482,147,483,646
192.0.0.063.255.255.2551,073,741,8241,073,741,822
224.0.0.031.255.255.255536,870,912536,870,910
240.0.0.015.255.255.255268,435,456268,435,454
248.0.0.07.255.255.255134,217,728134,217,726
252.0.0.03.255.255.25567,108,86467,108,862
254.0.0.01.255.255.25533,554,43233,554,430
255.0.0.00.255.255.25516,777,21616,777,214
255.128.0.00.127.255.2558,388,6088,388,606
255.192.0.00.63.255.2554,194,3044,194,302
255.224.0.00.31.255.2552,097,1522,097,150
255.240.0.00.15.255.2551,048,5761,048,574
255.248.0.00.7.255.255524,288524,286
255.252.0.00.3.255.255262,144262,142
255.254.0.00.1.255.255131,072131,070
255.255.0.00.0.255.25565,53665,534
255.255.128.00.0.127.25532,76832,766
255.255.192.00.0.63.25516,38416,382
255.255.224.00.0.31.2558,1928,190
255.255.240.00.0.15.2554,0964,094
255.255.248.00.0.7.2552,0482,046
255.255.252.00.0.3.2551,0241,022
255.255.254.00.0.1.255512510
255.255.255.00.0.0.255256254
255.255.255.1280.0.0.127128126
255.255.255.1920.0.0.636462
255.255.255.2240.0.0.313230
255.255.255.2400.0.0.151614
255.255.255.2480.0.0.786
255.255.255.2520.0.0.342
255.255.255.2540.0.0.122
255.255.255.2550.0.0.011

Related Tools

v6IPv4 → IPv6

Convert IPv4 to IPv6 representations, or expand and compress any IPv6 address. Results update as you type.

CIDR Overlap

Detect overlapping IP address ranges between CIDR blocks. Check a single pair or scan an entire list for conflicts.

DHCP Calculator

Calculate DHCP pool range and total leases from a subnet. Exclude reserved IPs and generate a ready-to-paste config.

About this tool

About this visual subnet calculator

VLANlab's IPv4 subnet calculator computes all subnet properties from an IP address and prefix length (CIDR notation) or dotted subnet mask. It instantly returns the network address, broadcast address, first and last usable host, subnet mask, wildcard mask, total host count, and usable host count.

The Visual Block Diagram shows your subnet as a proportional address space bar - the network address, usable host range, and broadcast address are each colored to scale, so you can immediately see how large the host space is relative to the total block. The CIDR hierarchy strip below it shows which parent prefixes contain your subnet, helping you understand the addressing context at a glance (for example, how a /26 sits inside a /24 inside a /22).

The built-in subnet divider lets you split any network into smaller subnets interactively - divide a /16 into /17s, /18s, or any smaller prefix. Join subnets back, export the full table as CSV, and share the exact layout via a bookmarkable URL. Binary representation shows exactly which bits are network bits versus host bits.

Supported input formats

Enter the prefix as CIDR notation (/24) or as a dotted subnet mask (255.255.255.0). The IP address can be any valid IPv4 address - the calculator automatically derives the network address from the host bits.

What is subnetting?

Subnetting divides a larger IP address block into smaller, routable subnetworks. Network engineers use subnetting to allocate address space efficiently, reduce broadcast domains, and implement network segmentation. CIDR (Classless Inter-Domain Routing) notation expresses both the IP address and the prefix length in a single value - for example, 192.168.1.0/24.

A worked example: 192.168.10.77/26

A /26 leaves 6 host bits, so each block holds 64 addresses and the mask is 255.255.255.192. The blocks start at .0, .64, .128 and .192, and 77 falls in the block that starts at 64. So the network address is 192.168.10.64, the broadcast address is 192.168.10.127, and the 62 usable hosts run from 192.168.10.65 to 192.168.10.126.

Address classes and CIDR

Before CIDR (1993), the first bits of an address fixed the size of its network: class A (first octet 1 to 126) used /8, class B (128 to 191) /16 and class C (192 to 223) /24. CIDR dropped the classes, so an address alone no longer says where its network ends, and the prefix or mask always goes with it. The old names live on as shorthand for /8, /16 and /24 networks.