IPv4 to Integer Converter

Enter an IPv4 address or an integer and choose the conversion direction.

How to use

  1. Enter your values in the fields above.
  2. Press Calculate to see your result instantly.
  3. Use the Share button to copy a link to your result.

About this calculator

An IPv4 address written in dotted-decimal form (like 192.168.1.1) is really a 32-bit unsigned integer split into four 8-bit octets. Converting to integer form multiplies each octet by its positional weight — 256³, 256², 256¹, and 256⁰ — and sums the results, giving a single number from 0 to 4,294,967,295; the reverse operation splits that integer back into four octets.

This calculator performs the conversion in either direction and also shows the hexadecimal representation, since IP addresses are frequently stored, sorted, and compared as plain integers or hex values in databases, firewall rules, and network logs rather than as strings.

Working with the integer form makes range checks and CIDR-block math (is address X within subnet Y?) a simple numeric comparison instead of parsing and comparing dotted strings, which is why network engineers and backend developers convert between the two formats regularly.

Was this helpful?

Comments (0)

  • Be the first to comment.

Popular calculators

All Calculators