IP Address Converter
Convert an IPv4 address between dotted-decimal, 32-bit integer, hexadecimal, octal and binary. Edit any format and the others update live.
- Dotted decimal
- 192.168.0.1
- Integer (32-bit)
- 3232235521
- Hexadecimal
- 0xC0A80001
- Octal
- 0o30052000001
- Binary
- 11000000.10101000.00000000.00000001
About this tool
An IP address converter translates an IPv4 address between its human-friendly dotted-decimal form (192.168.0.1) and the numeric representations computers and databases use: a single 32-bit integer, hexadecimal, octal and binary. Under the hood every IPv4 address is just a 32-bit number; the dotted notation is only a convenient way to write it.
Why convert an IP to an integer?
Storing IP addresses as integers makes range queries and comparisons fast and compact in databases, and many APIs and log formats represent addresses numerically. Converting 192.168.0.1 to its integer (3232235521) lets you do arithmetic, sort, and check whether an address falls inside a range with simple comparisons.
Reading the binary form
The binary view shows the four 8-bit octets that make up the address. This is useful for understanding subnet masks and CIDR prefixes, where the boundary between the network and host portions falls on a specific bit.
Frequently asked questions
Each of the four octets is one byte of a 32-bit number. The address is octet1×16777216 + octet2×65536 + octet3×256 + octet4. For example 192.168.0.1 becomes 3232235521.
Integers are compact and make range checks and sorting fast — useful for databases, access lists and geolocation lookups where you test whether an address falls within a numeric range.
Hex is common in packet captures, low-level networking and some log formats. 192.168.0.1 is C0A80001 in hex, with each octet shown as two hex digits.
This converter focuses on IPv4. IPv6 uses 128-bit addresses written in hexadecimal groups; support for it may be added later.