Skip to content

CIDR and Netmask Converter

Convert an IPv4 prefix length into a dotted netmask and back.

Mode

Input

Result

Type or paste on the left — the result updates as you type.

Accepts prefixes 0–32. Reverse conversion rejects masks whose binary ones are not contiguous.

Up to 100,000 UTF-16 units per input and 1,000,000 per result. See the supported formats and examples below.

Format references

Tool page updated: