Subnet Calculator

A subnet calculator works out the details of a network from CIDR notation, such as 192.168.1.10/24.

Runs in your browser — nothing is uploaded

Nothing is uploaded. Counting happens on your device.

Drop a .txt file here Tap to choose a .txt file

or browse your device — you can also paste (Ctrl+V)

Your camera and gallery open from the file picker

One file at a time. Files over 200 MB may be too large for browser processing.

    Your result will appear here.

    Free, no account, no sign-up. Nothing is uploaded. Everything runs on your device.

    A subnet calculator works out the details of a network from CIDR notation, such as 192.168.1.10/24. Enter an address with a prefix length and the tool returns the network address, the broadcast address, the subnet mask, the wildcard mask, the total number of addresses, how many hosts can use them, and the first and last usable addresses. The prefix length decides the split between the network part and the host part: /24 means the first three octets identify the network, while /8 means only the first octet does. Two addresses in every subnet are reserved, the network address and the broadcast address, so a /24 has 254 usable hosts out of 256 addresses. The special cases /31 and /32 have no usable hosts in the classic counting, because the network is a single link or a single host. The calculation is exact integer arithmetic and runs entirely in your browser.

    How to use Subnet Calculator

    1. Paste your text type, paste (Ctrl+V) or drop a .txt file into the box above.
    2. Click Convert the tool runs entirely in your browser — nothing is uploaded.
    3. Read your results they appear below the tool as soon as the conversion finishes.
    4. Download the result save it for your records.
    5. Convert another clear the box and paste new text — no sign-up, no limits.

    Format facts

    InputAny plain text, or a .txt file (dropped or browsed).
    EngineBuilt-in browser engine
    CategoryDeveloper Tools

    Limits

    • Browser processing has practical limits: files over 200 MB (or very long media) may be too large for your device. You will get an honest “too large” message, never a fake result.
    • Pasted content is handled as plain text — formatting from documents is not preserved.

    Frequently asked questions

    What does /24 mean?

    The first 24 bits identify the network and the remaining 8 bits identify hosts, giving 256 addresses and 254 usable hosts.

    Why are two addresses unusable?

    The network address identifies the subnet itself and the broadcast address reaches every host, so neither can be assigned to a device.

    What is the wildcard mask?

    The inverse of the subnet mask. It is used in access lists and firewall rules to say which bits may vary.

    What is special about /31 and /32?

    A /31 is a point-to-point link with two addresses and no usable hosts in the classic counting, and a /32 is a single host.