IP Address Converter — IPv4 ⇄ decimal/binary/hex
Convert an IPv4 address to its decimal, binary and hexadecimal forms and back, in your browser.
🔒 Runs entirely in your browser. Your input and output are never sent to a server or stored — fully private.
Click any value to copy. Accepts a dotted-quad, a decimal integer, or 0x hex.
About this tool
This IP address converter turns an IPv4 address into its decimal (a single 32-bit integer), binary and hexadecimal forms — and converts any of those back to dotted-quad. It is handy for firewall rules, database storage, programming and seeing how 192.168.0.1 maps to the number 3232235521, and it all runs in your browser.
Frequently asked questions
Why convert an IP address to a decimal number?
Storing an IPv4 address as a single 32-bit integer is compact and makes range comparisons fast, so databases, firewalls and ACLs often use the decimal form. Checking whether an address falls inside a block then becomes a simple numeric comparison.
How does the conversion work?
Each of the four octets is one byte from 0 to 255. Combine them into a 32-bit number — octet1×16777216 + octet2×65536 + octet3×256 + octet4 — to get the decimal value; the binary and hexadecimal forms are simply those same 32 bits written in base 2 and base 16.
Is my data sent anywhere?
No. The conversion is pure arithmetic performed entirely in your browser, so the addresses you enter are never sent to or stored on a server.
Why does a browser open http://2130706433/ as 127.0.0.1?
Because an IPv4 address is fundamentally a single 32-bit number, and the dotted form is only a convenience for humans. Browsers and most network libraries accept the raw integer, so 2130706433 resolves to 127.0.0.1. This matters for security: filters that block a literal string like 127.0.0.1 can be walked straight past using the decimal, octal or hexadecimal form. If you are writing an SSRF filter, parse the address into a number and compare ranges rather than matching text.
Can it convert IPv6 addresses as well?
This tool handles IPv4, whose 32 bits fit comfortably in a single familiar number. IPv6 is 128 bits, so its integer form is enormous and rarely useful in practice; what people usually need there is expanding the shorthand notation instead. Use our IPv6 expander to turn a compressed address such as 2001:db8::1 into its full eight-group form, which is what you want when comparing addresses or writing firewall rules.