CIDR Calculator
Calculate network address, broadcast, subnet mask, and usable hosts from an IP/CIDR.
Convert an IPv4 address between dotted decimal, decimal integer, hexadecimal, octal, and binary notation.
This tool converts an IPv4 address between all the notations you’ll encounter — from the familiar dotted decimal (192.168.1.1) to decimal integer, hexadecimal, octal, and binary — helping with network design and programming calculations.
An IPv4 address is a 32-bit number, and its four 8-bit octets can be concatenated into a single unsigned 32-bit integer. For example, 192.168.1.1 becomes the integer 3232235777. This form is sometimes used for database storage or API exchange.
Hex and binary notation make it easier to work with subnet mask calculations, bitwise network design, and low-level network programming.
A dot-separated number (like 192.168.1.1) is treated as dotted decimal, a value starting with "0x" as hexadecimal, a value starting with "0b" as binary, and any other plain number as a decimal integer.
Input is considered invalid if any octet is outside 0-255, a decimal integer is outside 0-4294967295, a hex value exceeds 8 digits, or a binary value exceeds 32 digits.