Convert an IPv4 / IPv6 CIDR block to its first & last IP, netmask and host count

IP versionIPv4
Range start (network)192.168.1.0
Range end (broadcast)192.168.1.255
Range192.168.1.0 – 192.168.1.255
Total addresses256
Usable hosts254
Netmask255.255.255.0
CIDR/24

CIDR-to-range math runs entirely in your browser — nothing is uploaded.

🌐 CIDR to IP Range — Free Online Tool

Convert a CIDR block to its IP range, free. CIDR notation (RFC 4632) describes a block of IP addresses as a base address plus a prefix length, like 192.168.1.0/24 or 2001:db8::/48. This tool expands a CIDR block into its first (network) and last (broadcast) address, the full range, the total number of addresses and the usable host count — for both IPv4 and IPv6 — entirely in your browser.

🚀 Why use this CIDR to IP Range tool?

It turns any IPv4 or IPv6 CIDR block into a concrete first-to-last IP range and an exact, BigInt-accurate address count, so you can define firewall rules, allow-lists and VPC ranges without manual bitwise math. 100% free, no registration, and complete privacy — everything runs locally in your browser, so your data never touches a server.

Key Features

↔️First & last IP

Expands a CIDR block to its network (first) and broadcast (last) address so you have the exact range bounds.

🔢Exact address count

Counts every address in the block using BigInt, so even huge IPv6 ranges report an accurate total — not a rounded float.

🌍IPv4 and IPv6

Accepts both families: 192.168.0.0/22 or 2001:db8::/32. The prefix is validated against 0–32 (IPv4) or 0–128 (IPv6).

🔒100% private

All parsing and math run locally in your browser; nothing you enter is uploaded, logged or stored.

Popular Use Cases

Cloud & DevOps

  • Define VPC/subnet ranges
  • Build security-group allow-lists
  • Document IP plans

Firewalls & ACLs

  • Translate a CIDR to start-end IPs
  • Verify a rule covers the intended hosts
  • Audit overlapping ranges

Networking

  • Check how many hosts a block holds
  • Confirm a supernet boundary
  • Plan IPv6 delegations

What It Handles

Computes

  • First & last address
  • Total address count
  • Usable host count (IPv4)

Supports

  • IPv4 /0–/32
  • IPv6 /0–/128
  • RFC 5952 IPv6 output

Privacy

  • Client-side only
  • No network calls
  • Runs offline

Related Tools

Sources & References

Frequently Asked Questions

What is the IP range of a CIDR block?

It is every address from the network address (all host bits 0) to the broadcast address (all host bits 1). For 192.168.1.0/24 the range is 192.168.1.0 – 192.168.1.255, which is 256 addresses (254 usable hosts).

How many addresses are in a /24?

A /24 has 2^(32−24) = 256 total addresses. Two are reserved (network and broadcast), leaving 254 usable hosts. In general a /n holds 2^(32−n) addresses for IPv4.

Does this work for IPv6?

Yes. Enter an IPv6 CIDR like 2001:db8::/48 and the tool reports the first and last address and the (often astronomically large) total count, computed exactly with BigInt.

What's the difference between this and a subnet calculator?

A subnet calculator focuses on masks, wildcard masks and host math for a single subnet; this tool focuses on the concrete first-to-last IP range and total address count of a block — handy for allow-lists and firewall rules.

Is my input sent to a server?

No. The conversion runs entirely in your browser; nothing you type leaves your device.

🎓 Pro Tips

  • Tip 1: For firewall allow-lists, copy the first and last address as the range bounds rather than re-deriving them by hand — off-by-one broadcast errors are common.
  • Tip 2: IPv6 blocks are enormous: a /64 alone holds 18.4 quintillion addresses, so size delegations by prefix, not by host count.
  • Tip 3: Standard reference: CIDR is defined in RFC 4632 — https://www.rfc-editor.org/rfc/rfc4632.