IP to Decimal Converter
Convert IPv4 addresses between dotted-decimal notation and decimal, hex and binary formats.
IP formats
About IP Address Formats
An IPv4 address is a 32-bit number. The familiar dotted-decimal notation (e.g. 192.168.1.1) is just the most human-readable representation. The same address can be expressed as a decimal integer, hexadecimal value, or binary string — they all represent the same underlying 32-bit value.
Format reference
- Dotted-decimal — Four 8-bit octets separated by dots. Each octet ranges from 0 to 255. This is the standard human-readable format.
- Decimal — The full 32-bit value as a single integer.
192.168.1.1=3232235777. Used in some databases and programming languages for compact storage. - Hexadecimal — Two hex digits per octet, prefixed with
0x. Useful in low-level networking, packet analysis, and systems programming where hex is natural. - Binary — Eight bits per octet separated by dots. Makes subnet masking operations completely transparent — the AND operation between an IP and its subnet mask is visible at the bit level.
Why binary representation matters for subnetting
Subnet masks work by separating the network portion from the host portion of an IP address using a bitwise AND. A /24 prefix means the first 24 bits identify the network and the last 8 bits identify the host. In binary, a /24 mask is 11111111.11111111.11111111.00000000 — the boundary between 1s and 0s marks exactly where the network ends and the host begins.
Frequently asked questions
Why convert IPs to decimal?
IP addresses are stored as 32-bit integers. Converting to decimal, hex or binary can be useful for database storage, binary masking operations, or understanding how subnet masks work.