IP address converter
Enter an IPv4 address in any common format: dotted (192.168.1.1), decimal (3232235777), hexadecimal (0xC0A80101), binary, or IPv4-mapped IPv6 (::ffff:192.168.1.1). The conversion runs in your browser.
- Dotted decimal
- Decimal (integer)
- Hexadecimal
- Hexadecimal (dotted)
- Binary
- IPv4-mapped IPv6
- IPv4-mapped IPv6 (hex)
- IPv4-mapped IPv6 (expanded)
- 6to4 prefix
- Address type
What this tool does
The IP converter shows the same IPv4 address in every common notation: dotted decimal, one decimal number, hexadecimal, binary, and the IPv4-mapped IPv6 forms.
Paste the address in any of those formats and the tool works out the others. That helps when a database stores addresses as integers, a packet capture or firewall log shows them in hex, or a server log lists IPv4 visitors as ::ffff: addresses.
The conversion runs in your browser; nothing is sent to iplover.
How to read the results
- Decimal (integer) is the whole address as one 32-bit number, from 0 to 4,294,967,295.
- Hexadecimal writes the four bytes as eight hex digits; the dotted form keeps the four bytes separate, which makes them easier to compare with the dotted decimal address.
- Binary shows the 32 bits in four groups of eight, one group per byte, which is how subnet masks are applied.
- IPv4-mapped IPv6 is how dual-stack software writes an IPv4 address inside IPv6; the hex and expanded forms are the same value written differently. The 6to4 prefix is shown for completeness, as 6to4 is deprecated.
Examples
8.8.8.8Google Public DNS, in dotted form.3232235777A decimal number: this is 192.168.1.1.0x7F000001Hexadecimal: this is 127.0.0.1, the loopback address.11000000.10101000.00000000.00000001Binary octets: this is 192.168.0.1.::ffff:1.1.1.1An IPv4-mapped IPv6 address, as seen in dual-stack server logs.
Frequently asked questions
Why would I convert an IP address to a decimal number?
An IPv4 address is really a single 32-bit number; the dotted form is just easier for people to read. Databases often store addresses as integers because they take less space and make range checks simple: an address is inside a network if its number lies between the network's first and last address.
How is the decimal value calculated?
Multiply each part by a power of 256 and add them up. For 192.168.1.1: 192 × 16,777,216 + 168 × 65,536 + 1 × 256 + 1 = 3,232,235,777.
What is an IPv4-mapped IPv6 address?
A way to write an IPv4 address inside the IPv6 format: ::ffff: followed by the IPv4 address, for example ::ffff:192.168.1.1. Servers that listen on IPv6 sockets often show IPv4 visitors this way in their logs.
Will a browser open http://3232235777?
Many browsers and tools accept an address written as a single decimal or hexadecimal number and convert it to dotted form. Scammers sometimes use this to disguise links, so it is worth recognizing.
What is a 6to4 prefix?
6to4 was an early way to give IPv4 networks IPv6 addresses by embedding the IPv4 address after 2002:. It is now deprecated and rarely used, but the prefix still appears in old configurations.