I2C Address Converter
Convert a stated 7-bit I²C address or 8-bit read/write address byte.
Open toolCalculate an IPv4 subnet mask and IP address range from a dotted-decimal address and CIDR prefix. Review network boundaries and total or usable addresses.
Update the inputs to see your result.
Result will appear here
The CIDR mask identifies the IPv4 network block and its endpoints.
The prefix sets the leading subnet-mask bits. A bitwise AND determines the network address, and the inverse mask determines the last address. Ordinary subnet usable ranges exclude the endpoints; /31 and /32 use the page’s stated special cases.
For ordinary subnets, the first and last addresses are reserved. /31 is treated as a two-address point-to-point link under RFC 3021; /32 is a single host route.
Reference: RFC 3021: 31-bit IPv4 prefixes.

Review the input parameters, allowed value ranges, and worked reference cases for the IPv4 Subnet Calculator below before running your calculation.
| Parameter / Scenario | Default / Sample Value | Rule or Allowed Range | Output / Usage Note |
|---|---|---|---|
| Input: IPv4 address | 192.168.1.10 | Input type: text | Required workspace parameter |
| Input: CIDR prefix length | 24 | Range: 0 to 32 | Required workspace parameter |
Enter an IPv4 address separately from its CIDR prefix length.
Enter the dotted-decimal IPv4 address and a whole-number CIDR prefix from zero to 32. Keep the prefix separate from the address field. This form handles local address arithmetic and does not scan, allocate, or validate a live network.
Select Calculate and read the IPv4 network address with its prefix. The subnet mask determines which bits define the network. Compare a second prefix on the same address if you want to inspect how the block boundaries change.
Review Subnet mask, Last address, Usable range, and address counts. Ordinary subnets reserve the first and last addresses. Read the separate /31 and /32 notes before applying that ordinary rule to a point-to-point block or a host route.
Compare baseline and alternative runs for IPv4 Subnet Calculator before exporting the result.
A hypothetical address 192.168.1.42 with prefix twenty four belongs to network 192.168.1.0/24. The result also shows the mask and boundaries. This helps check a supplied address and prefix before comparing them with an existing network configuration.

Run the same address with different prefixes and inspect the changed total and usable counts. This makes block size assumptions visible. The tool does not assess routing policy, allocate blocks or determine which prefix should be used for a particular deployment.

A thirty one bit prefix follows the two address point to point convention, while thirty two bits describe one host route. Review those notes with the usable range. Applying the ordinary first and last address reservation would misread these two cases.

Review the calculated output alongside your entered parameters and unit conventions.
Every calculation follows the rule: Subnet mask has the first prefix bits set. Network = address AND mask; last address = network OR inverse mask. Because JavaScript uses IEEE 754 double-precision floating-point arithmetic, numeric outputs display up to 12 significant digits where applicable.
Always cross-check the displayed result against the scope note (For ordinary subnets, the first and last addresses are reserved. /31 is treated as a two-address point-to-point link under RFC 3021; /32 is a single host route) before applying the value to production specifications, financial models, or lab records.

Check address notation and special small-block behaviour before using the range.
Operational scope: For ordinary subnets, the first and last addresses are reserved. /31 is treated as a two-address point-to-point link under RFC 3021; /32 is a single host route. Inputs that violate minimum/maximum bounds or required format rules are rejected with a clear diagnostic prompt.
Need an adjacent calculation in Developer Tools? Use the related tools linked below to chain your workflow without leaving your browser.

Convert a stated 7-bit I²C address or 8-bit read/write address byte.
Open tool
Compute the Adler-32 checksum of UTF-8 text.
Open tool
Free interactive AI App Playbook calculator and checklist. Score your app niche (25/35 gate), model $2.70/download funnel unit economics, compare Lean vs. Popular stack costs, and export an AGENTS.app.md brief.
Open toolChoose another tool for your next calculation, conversion, or text task.
Convert self-contained SVG markup into a CSS background data URI.
Open tool
Turn a simple SVG path outline into a one-glyph TrueType icon font. Choose a font family and Unicode code point, then review the saved glyph.
Open tool
Validate whitespace- or comma-separated integer codes from 0 to 127 and map them to ASCII characters.
Open toolEncode UTF-8 text or hex bytes as RFC 4648 Base32, or decode canonical Base32 into hex, text and a byte file.
Open toolAnswers about using IPv4 Subnet Calculator and understanding its results.
RFC 3021 allows both addresses on a point-to-point link.
No. This tool accepts IPv4 dotted-decimal addresses only.
It counts every address in the prefix block. Ordinary subnets reserve the first and last addresses, so usable count is smaller than total count.
No. The calculation is local address arithmetic. It does not scan a network, allocate addresses, or check routing.
Choose another tool for your next calculation, conversion, or text task.