IP Address Converter
Convert an IPv4 address between dotted-decimal, a 32-bit integer, hexadecimal and binary notation.
Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.
What the IP Address Converter does
The IP address converter on this page will convert an IPv4 address between dotted-decimal, a 32-bit integer, hexadecimal and binary notation. Fill in all 5 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for storing IP addresses as integers in a database for range queries. There are more free online tools on FreeToolsWorld.org.
How to use it
- Enter the four octets of the address.
- Read the integer, hex and binary forms.
- Or enter a 32-bit integer to convert it back to dotted notation.
How it works
An IPv4 address is a single 32-bit number; the four dotted octets are just a readable way of writing it. 192.168.1.1 is 3232235777, and both forms refer to the same number. Storing addresses as integers makes range queries trivial — "is this address inside this subnet" becomes a numeric comparison.
Browsers and most network stacks accept several other notations, which is a long-standing source of filter bypasses. http://3232235777/ resolves to 192.168.1.1, as does the octal form and the shortened 192.168.257 in some parsers. Any allowlist or blocklist that matches on the dotted string alone can be walked around by using a different notation, which is why address filtering should parse to an integer first.
The IPv4-mapped IPv6 form ::ffff:192.168.1.1 is how a dual-stack socket represents an IPv4 connection. It is worth recognising in logs: an address in that form arrived over IPv4, not IPv6.
When to use it
- Storing IP addresses as integers in a database for range queries.
- Decoding an address written as an integer in a log.
- Understanding an IPv4-mapped IPv6 address.
- Working through a networking exercise.
Common mistakes to avoid
- Filtering addresses by their dotted string form, which several other notations bypass.
- Treating the integer as signed, which breaks for addresses above 127.255.255.255.
- Confusing an IPv4-mapped IPv6 address with a real IPv6 one.
Frequently asked questions
What is 192.168.1.1 as an integer?
3232235777. The four octets are the four bytes of a single 32-bit number.
Why does an IP address written as a number still work in a browser?
Because the dotted form is only a notation. Browsers accept decimal, octal and hex forms of the same 32-bit value, which is a well-known way around naive address filters.
What does ::ffff:192.168.1.1 mean?
An IPv4-mapped IPv6 address. It is how a dual-stack socket represents a connection that actually arrived over IPv4.