IPv4 CIDR Range Expander
Expand IPv4 CIDR blocks (e.g. 192.168.0.0/24) into first IP, last IP, broadcast, mask and total usable hosts. Useful for network and firewall planning. Everything in your browser.
CIDR explicado
A notação a.b.c.d/n indica que os primeiros n bits são a parte de rede. Em /24 a rede tem 256 endereços (254 utilizáveis, descontando rede e broadcast). Em /30 (point-to-point) só 2 hosts. Em /31 e /32 não há broadcast — todos os endereços são usáveis.
From CIDR block to first and last IP
A request lands asking you to allow 10.20.0.0/18 through the firewall, and you need to know right now where that range starts, where it ends and how many addresses it covers. Counting bits in your head works for /24 and /16; at /18, /27 or /30 mistakes creep in fast. Getting the upper bound wrong is the kind of error you discover when someone loses access on a Friday night.
You do not have to type the network address. The tool ANDs the address you entered with the mask, so 192.168.1.77/24 resolves to the network 192.168.1.0/24, which helps when all you have is one host IP and a prefix. Total addresses is 2 to the power of (32 minus n), and usable is that total minus two, with two exceptions: /31, where RFC 3021 puts both addresses to work on point-to-point links, and /32, which stands for a single host. The wildcard shown is the inverted mask, the form Cisco ACLs expect.
Despite the name, the output is a summary of the range rather than an address-by-address list — a /8 would run past 16 million lines. Input must follow a.b.c.d/n: dotted decimal masks, hyphenated ranges and IPv6 are not parsed. Double-check the prefix before pasting a rule, since swapping /16 for /18 changes the block size by a factor of four. All the math happens in your browser.
Frequently asked questions
Why does /31 report two usable hosts?
Can I enter a host IP instead of the network address?
Does it list every IP in the range?
Related Tools
Number Range Expander & Compactor
Expands compact lists like 1,3,5-9 into individual numbers and compacts long lists back into ranges, reporting gaps, duplicates and totals.
Emoji List
Explore and copy over 500 emojis organized by category: faces, people, animals, food, travel, activities, objects and symbols. Search by name.
Country Capital Lookup
Find the capital of any country in seconds. A handy tool for geography study, quizzes, schoolwork and fun facts about the world.
Line Ending Detector (LF/CRLF/CR)
Detect whether a text uses LF (Unix), CRLF (Windows) or CR (classic Mac), and how many of each appear.
Brazilian Bank Code Lookup
Look up the COMPE/ISPB code of major Brazilian banks. Search by name or code and find the official number for TED, DOC and PIX.
Img Srcset Builder
Builds an <img> tag with a responsive srcset from URLs and widths, ideal for fluid images.