IP Address Converter
IP to decimal, hex or binary, or IPv4 to mapped IPv6.
About IP Address Converter
IP Address Converter: IPv4 to Decimal, Hex, Binary and IPv6
Paste an IPv4 address, pick a format and get the result. The converter handles four outputs: an IPv4-mapped IPv6 address, a 32-bit decimal integer, hexadecimal and dotted binary.
Conversions
- IPv4 to IPv6: returns the IPv4-mapped form, for example
192.0.2.1becomes::ffff:192.0.2.1. Dual-stack sockets and logs use this notation for IPv4 clients. It does not give you a routable IPv6 address; your ISP or hosting provider assigns those. - IP to Decimal:
192.0.2.1becomes3221226017. Databases often store IPv4 addresses this way because an unsigned 32-bit integer sorts and range-checks faster than a string. - IP to Hex:
192.0.2.1becomes0xc0000201. You see this format in packet captures, firewall dumps and some config files. - IP to Binary:
192.0.2.1becomes11000000 00000000 00000010 00000001, one 8-bit group per octet. Line it up with a subnet mask in binary to see which bits belong to the network.
Where it helps
- Writing SQL range queries such as
WHERE ip_int BETWEEN 3221225984 AND 3221226239for a /24. - Reading hex addresses out of tcpdump, Wireshark or kernel logs.
- Learning subnetting: binary output shows exactly where a prefix like /26 cuts the address.
- Matching IPv4 clients that show up as
::ffff:addresses in application logs.
How to use it
- Enter an IPv4 address, for example
203.0.113.10. - Choose the conversion type.
- Click Convert IP and copy the result.
The tool accepts IPv4 input only. For subnet ranges and masks, use the Subnet Calculator.