IPv4 to numeric conversion

Convert IPv4 addresses to their 32-bit numeric representation and vice versa

Input Parameters

Calculation Results

Calculation Formula

IPv4 to numeric: (A×256³ + B×256² + C×256¹ + D×256⁰)

Where:
A, B, C, D are the decimal parts of the IPv4 address

Numeric Result

IPv4 to numeric conversion Calculator Usage Guide

Learn how to use the IPv4 to numeric conversion calculator and its working principles

How to use this calculator

  1. Enter a valid IPv4 address in the input field (e.g., 192.168.1.1)
  2. Click the "Calculate" button to convert the IPv4 address to its numeric representation
  3. The numeric result will be displayed in the result field
  4. Click "Reset" to clear all inputs and results

Working Principle

An IPv4 address consists of four octets separated by dots (e.g., 192.168.1.1). Each octet represents a byte in the 32-bit numeric representation. To convert an IPv4 address to a numeric value, each octet is multiplied by 256 raised to the power of its position (starting from 0 on the right) and then summed together.

For example, the IPv4 address 192.168.1.1 is converted to numeric as follows:
(192 × 256³) + (168 × 256²) + (1 × 256¹) + (1 × 256⁰) = 3232235777

Example Uses

  • Network administration for IP address management
  • Comparing IP addresses numerically
  • IP address sorting in databases
  • Understanding how IP addresses are represented in network protocols