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.

Did this tool help? Tap to react

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.