$ run IPv4 Calculator
NetCalc by Alexmysterio — Mobile app coming soon · Telegram bot available

Enter runs the calculation · Shift+Enter inserts a new line

user@netcalc ~/calc $

ipv4_calculator

Calculate network, broadcast, mask, hosts, class and binary for any IPv4 address

ip:
mask:
user@netcalc ~/calc $

ipv6_calculator

Calculate network info for IPv6 addresses in CIDR notation

ipv6:
pfx:
user@netcalc ~/calc $

vlsm_calculator

Variable Length Subnet Mask — assigns optimal blocks for each network segment

net:
pfx:
// Subnets required
name:
hosts:
name:
hosts:
name:
hosts:
user@netcalc ~/calc $

usable_ip_range

Shows the exact usable host range for a given network

ip:
mask:
user@netcalc ~/calc $

binary_ip_calc

Convert IP addresses to binary and vice versa, with per-octet visualization

dec:
bin:
user@netcalc ~/network $

cidr_converter

Convert between CIDR, decimal mask and wildcard. Includes full /1–/32 reference table.

in:
📋 CIDR Reference Table
CIDRSubnet MaskWildcardHosts/24 subnetsBlock
user@netcalc ~/network $

wildcard_mask_calc

Calculate the wildcard (inverse) mask for Cisco ACLs, OSPF and firewall rules

mask:
user@netcalc ~/network $

supernet_calculator

Find the minimum supernet containing all specified networks (route summarization)

nets:
user@netcalc ~/network $

subnet_splitter

Split a network into equal subnets by specifying a new prefix

net:
mask:
new:
user@netcalc ~/network $

range_to_cidr

Convert an IP range (start–end) to the minimum set of CIDR blocks

start:
end:
user@netcalc ~/network $

ip_to_integer

Convert IPv4/IPv6 addresses to integer and vice versa

ip:
int:
user@netcalc ~/network $

ipv6_normalize

Expand and compress IPv6 addresses — normalize any valid format

ipv6:
user@netcalc ~/network $

hex_ip_converter

Convert between hexadecimal and IP address — useful for Windows route tables and Cisco logs

ip:
0x:
user@netcalc ~/network $

vlan_calculator

802.1Q VLAN info: tag encoding, PCP, DEI, VID, range and compatibility

vlan:
pcp:
dei:
user@netcalc ~/dns $

reverse_dns_generator

Generate the PTR in-addr.arpa zone for an IPv4 network

net:
pfx:
dom:
user@netcalc ~/dns $

ipv6_ptr_generator

Generate the PTR ip6.arpa record for an IPv6 address

ipv6:
host:
user@netcalc ~/dns $

ip_geolocation

Locate a public IP or resolve a domain and geolocate its public address

Domains are resolved through DNS first; geolocation is based on the resulting public IP.
geo:
user@netcalc ~/dns $

ip_address_planner

Interactive IP address space planner — click cells to edit, export to CSV

📋 IP Address Plan
#NameNetworkMask/CIDRGatewayVLANLocationNotes
user@netcalc ~/legal $

Privacy

Data stored in your browser

Theme, language, promotion dismissal and calculation history are stored in localStorage on this device.

Calculations

Calculations are sent through this site's same-origin Worker proxy to the private calculation service.

Performance metrics

LCP, CLS and INP may be stored as aggregate performance measurements by tool and language. Calculation inputs and persistent user identifiers are not included.

GeoIP

Only GeoIP lookups are processed by an external provider. The requested IP address is sent for that lookup.

Issue reports via Telegram

A report link opens the public Telegram bot and includes only the current page slug in the bot start parameter. Calculator inputs and report text are not sent by this website. Text you choose to send inside Telegram is handled by Telegram and the bot.

Cookies and advertising

Advertising is controlled by the production configuration. When Google AdSense is enabled, consent is handled through a certified CMP before personalized advertising is used where required.

Delete local data

Use the button below to clear calculation history. To remove every local preference, clear this site's data in your browser settings.

This page provides operational information; it is not a legal-compliance certification.

When and why to use IPv4 /31 on point-to-point links

Learn why /31 is valid on point-to-point IPv4 links, what changes operationally and where it should not be used.

By 2026-09-21≈ 6 min7 sections
/30 .0network .1 · A.2 · B .3broadcast /31 · RFC 3021.0 · A.1 · B2 addresses for 2 endpoints · no network/broadcast waste
Address consumption comparison: /30 versus /31
01

Why /31 works on point-to-point links

A traditional subnet reserves the all-zero and all-one host patterns for network and broadcast. On a true point-to-point link there are only two endpoints and no need for an IPv4 broadcast address, so RFC 3021 allows both addresses in a /31 to be used by the peers.

02

The operational benefit is address conservation

A /30 consumes four addresses to number two endpoints; a /31 consumes two. Across many routed links this halves the address space used for point-to-point infrastructure.

03

Where not to use it

Do not treat /31 as a universal replacement for small LANs. Ethernet segments with multiple hosts, legacy equipment or software that assumes classic broadcast semantics may require a conventional subnet.

04

Validate platform support

Modern routing platforms generally support /31, but the configuration should still be tested at both ends. Confirm ARP/neighbor behavior, routing adjacencies and monitoring before standardizing it.

05

Routing protocols behave normally when the link is truly point-to-point

OSPF, IS-IS over IP adjacencies, BGP sessions and static routes can operate across /31 addressing when the platform implements RFC 3021 correctly. The key requirement is that both ends understand the two addresses as host endpoints rather than network and broadcast addresses.

06

IPAM and monitoring must understand the prefix too

Older inventory systems may label one /31 address as network or broadcast even when routers use it correctly. Update validation, discovery and monitoring tooling so the address plan does not produce false alarms or refuse valid assignments.

07

Migrate deliberately from /30

When converting an existing /30, choose which two addresses will remain, update both ends during the same change window and verify routing adjacencies before reclaiming the unused addresses. The saving is valuable at scale, but a careless migration can create avoidable outages.

EX

Worked example

  1. A /30 such as 10.0.0.0/30 contains four addresses but normally uses only .1 and .2 as endpoints.
  2. With RFC 3021, 10.0.0.0/31 uses both .0 and .1 as endpoint addresses.
  3. Across 500 point-to-point links, /30 addressing consumes 2000 addresses while /31 consumes 1000.
  4. Verify the routers, IPAM and monitoring stack before standardizing the migration.
✓

Operational checklist

  • Use /31 only on true two-endpoint links.
  • Confirm support on both devices and management systems.
  • Test routing adjacency and reachability in both directions.
  • Document the convention so operations teams do not “fix” valid .0/.1 addresses.

Standards and references