ToolXkit Icon

Subnet Mask Calculator

Convert between a subnet mask, a prefix length and a wildcard mask.

  • Free
  • No signup
  • Nothing uploaded
  • No watermark

Network

192.168.1.128

Broadcast

192.168.1.191

Usable hosts

62

Subnet mask

255.255.255.192

Address
192.168.1.130
Prefix
/26
Host range
192.168.1.129 – 192.168.1.190
Wildcard mask
0.0.0.63used by Cisco ACLs — the inverse of the subnet mask
Total addresses
64
Address class
Chistorical — classless routing replaced this in 1993
Scope
Private (RFC 1918) — the usual home router range
Address in binary
11000000.10101000.00000001.10000010
Mask in binary
11111111.11111111.11111111.11000000

How to Use the Subnet Mask Calculator Online

Subnet Mask Calculator: before and after TEXT A YOUR INPUT SUBNET MASKCALCULATOR DONE A RESULT

Converts between a dotted-decimal mask, a prefix length and a wildcard mask. The wildcard is the one worth checking: it is the bitwise inverse, so /24 is 255.255.255.0 as a mask and 0.0.0.255 as a wildcard, and Cisco access lists want the second while almost everything else wants the first.

No software to install Free Works on any device

Step-by-Step Guide to Using the Subnet Mask Calculator

  1. 1. Type an address, with a prefix or a mask

  2. 2. Everything is worked out as you type — network, broadcast, range and host count

  3. 3. It is pure arithmetic, so it works on private ranges and networks that do not exist yet

Try it now

What is the Subnet Mask Calculator?

Converts between a dotted-decimal mask, a prefix length and a wildcard mask. The wildcard is the one worth checking: it is the bitwise inverse, so /24 is 255.255.255.0 as a mask and 0.0.0.255 as a wildcard, and Cisco access lists want the second while almost everything else wants the first.

Why Use IP and Network Calculators?

Subnet masks, CIDR ranges and download times all come down to binary maths that is easy to slip on. These calculators do the sums in the page, so you can plan an address range or check a speed claim with confidence.

“One wrong subnet mask can take a whole office offline.”
  • Subnets worked out instantly
  • CIDR ranges made clear
  • Download times estimated
  • Browser details revealed
  • Usable host counts shown
  • IPv4 and IPv6 conversions
  • MAC addresses checked
  • No commands to install

Popular Uses for Subnet Calculators

Network jobs at home and at work often start with one of these sums.

  • Planning an office network Split an address block into subnets for each floor, team or guest WiFi.
  • Reading CIDR notation See the first address, last address and host count behind a range like /24.
  • Download estimates Work out how long a large file will take on a given connection speed.
  • Speed claims Turn megabits per second into megabytes to see what a plan really delivers.
  • Device lookups Find the maker of a network card from its MAC address prefix.
  • Browser checks See your user agent and browser details when a support team asks.
  • WebSocket tests Connect to a WebSocket endpoint and watch messages go back and forth.
  • IPv6 planning Convert an IPv4 address into IPv6 form while preparing a migration.

What You Can Do with the Subnet Mask Calculator

Handles /31 and /32 correctly, not just the common cases

Shows the network, broadcast and usable host range together, which is the whole answer

Handles IPv6 at full length rather than truncating it for display

Why Use ToolXkit for Subnet Mask Calculator?

Your files stay with you

Everything runs inside your browser. Nothing you open or type is uploaded to a server.

Network Tools for Different Users

Network administrators

Plan subnets, check CIDR ranges and size links for expected bandwidth.

Networking students

Practise subnetting for CCNA and other exams, and check answers quickly.

Developers

Test WebSocket servers, parse user agents and inspect TCP header fields.

IT support staff

Collect browser details and estimate transfer times while helping users.

Small office owners

Understand router settings and IP ranges without calling a technician every time.

Streamers and gamers

Check upload speed, latency and packet loss figures before a stream.

Best Times to Work Out a Subnet

Network calculators help when you are:

  • Setting up a new router
  • Studying for a networking exam
  • Adding a guest WiFi network
  • Estimating a large upload
  • Comparing broadband plans
  • Identifying an unknown device
  • Moving to IPv6
  • Debugging a WebSocket connection

Frequently Asked Questions

Answers to common questions about this tool.

When do I need a wildcard mask instead?

For Cisco access control lists and OSPF configuration, which take the inverse of a subnet mask — /24 is 255.255.255.0 as a mask and 0.0.0.255 as a wildcard. Entering one where the other is expected produces a rule that silently matches the wrong traffic.

Can a subnet mask have gaps in it?

No. A valid mask is a run of ones followed by a run of zeros with nothing in between, which is why 255.255.255.0 is valid and 255.0.255.0 is not. That contiguity is what makes a prefix length able to describe it at all.

Is Subnet Mask Calculator accurate enough for real network work?

The maths behind addresses and ranges is exact, so the results match what a router expects. Double-check the input, especially the prefix length, since one wrong digit changes the whole range.

Do the calculators scan my network?

No. The subnet and speed calculators only work with the numbers you type in. They send no traffic into your network, and the only tool that connects anywhere is the WebSocket Tester, to the address you enter.

Why is my real download slower than the estimate?

The calculator assumes the full connection speed is available. In practice, WiFi, other devices, server limits and protocol overhead eat into it, so real downloads often take somewhat longer.

Is Subnet Mask Calculator free and private?

Yes. It costs nothing and needs no account. What you type stays in your browser and is never sent to ToolXkit, which matters when it describes a real company network.

What is the difference between Mbps and MBps?

Mbps means megabits per second, the unit broadband plans use. MBps means megabytes per second, the unit most download windows show. One byte is eight bits, so 100 Mbps is about 12.5 MBps.

Further reading

More Internet & Network Tools

Other free tools for the same kind of job.

Browse all tools