An interactive, single-file HTML tool for visualizing IP addresses and CIDR notation in binary.
- Binary visualization — See each IP address and netmask broken down into 32 individual bits, grouped by octet
- Interactive CIDR slider — Drag a slider from /0 to /32 to dynamically adjust the network mask length
- Color-coded bits — Visual distinction between:
🟢 Network address (green) — computed network identifier
🟠 Host address (orange) — the variable portion for individual hosts
🔵 Network bits (cyan) — the fixed portion of the address
🟣 Host bits (purple) — host portion of the address
Visit https://netmask.page in any web browser. It's that simple!
- Enter an IPv4 address in the input field (e.g.,
192.168.1.1) - Drag the slider to set the CIDR mask length (0–32)
- Observe how bits are partitioned between network and host portions
- Single HTML file — All CSS and JavaScript are embedded inline
- No dependencies — Pure vanilla JS, no frameworks or libraries
index.html # Single self-contained HTML file
github.com/circuitrewind/netmask.page
Public Domain. See LICENSE for details.