IPv4 address converter
Convert an IP address into decimal, binary, hexadecimal, or even an IPv6 representation of it.
About IPv4 address converter
Shows an IPv4 address in the other notations it can take: as a single decimal integer, in hexadecimal, in binary, and as an IPv4-mapped IPv6 address in both long and short form.
When you would use it
- Reading an address stored as an integer in a database or a log, or converting one to store it that way.
- Understanding how a subnet mask or address looks bit by bit.
- Writing the IPv6 form (::ffff:a.b.c.d) of an IPv4 address for a dual-stack configuration or firewall rule.
How to use it
- Type the address in dotted form, for example 192.168.1.1.
- Read the decimal, hexadecimal, binary and IPv6 forms, each with a copy button.
- An invalid address shows a validation message and empty results.
Things worth knowing
- The decimal form is the four bytes read as one 32-bit number (a.b.c.d = a×16777216 + b×65536 + c×256 + d). Many databases store addresses this way because integers sort and compare faster.
- The binary form has 32 digits; reading it next to a netmask makes the network and host parts obvious.
- ::ffff:192.168.1.1 is an IPv4-mapped IPv6 address, the form in which dual-stack servers see IPv4 clients. It is the same host, not a different one.
- Leading zeros in the input (192.168.001.001) are not accepted, because some systems read them as octal.
Frequently asked questions
- Why does a browser accept http://3232235777 as an address?
- That is the decimal form of 192.168.1.1. Browsers and many tools accept the integer notation, which is also why attackers use it to disguise addresses.
- Can I convert the other way, from a number to an address?
- Not in this tool. Use the IPv4 range or subnet tools for address math, or convert the number to hexadecimal with the base converter and read it two digits per byte.