Skip to content

How to Use IP to Decimal Converter

Convert IPv4 and IPv6 addresses to decimal, hexadecimal and binary numbers, or turn a decimal number back into an IP address. Converts many lines at once.

About this tool

Convert IPv4 and IPv6 addresses to decimal, hex and binary numbers, and back.

How to use IP to Decimal Converter

  1. Paste one IP address or decimal number per line.
  2. The results appear instantly as you type.
  3. Copy the output for databases, firewall rules or programming.

Worked example

192.168.1.1 becomes 3232235777 in decimal and 0xC0A80101 in hex. Entering 3232235777 on its own line converts it back to 192.168.1.1.

Why store IP addresses as numbers?

Numbers sort correctly and make range checks simple, which is why databases and GeoIP files often store IPv4 addresses as 32-bit integers.

How large are IPv6 numbers?

IPv6 addresses are 128-bit numbers of up to 39 decimal digits, so they need big-integer support in most programming languages.

Put this guide into practice

Explore IP & Network Tools · More practical guides

Accessibility Menu

Personalize your experience. Open with Ctrl+U (Option+U on Mac). Preferences stay in this browser when storage is available.

Move / Hide Widget

Restore at any time with Ctrl+U (Option+U on Mac).

Accessibility statement and help