IPv4 Address Formats Explained
Learn dotted decimal, integer, and hex representations of IP addresses.
An IPv4 address is a 32-bit number usually written as four octets separated by dots (e.g. 192.168.1.1). The same address can be expressed as a decimal integer or hexadecimal value.
Common formats
- Dotted decimal — 192.168.1.1 (human readable)
- Decimal/long — 3232235777 (database storage, some APIs)
- Hexadecimal — 0xC0A80101 (low-level networking, debug output)
- CIDR notation — 192.168.1.0/24 (subnet ranges)