%3C/text%3E%3C/svg%3E">
💻
💻 Tech & IT

IP Address ⇄ Integer ⇄ Hex ⇄ Binary Converter

Results update as you type.

Your numbers

Understanding the IP address to integer converter — concept and principle

This converter shows the same IPv4 address in four forms: dotted-decimal (192.168.1.1), a single unsigned 32-bit integer, hexadecimal and binary. You can type either a dotted address or a plain integer. Developers use it when storing IPs compactly in databases, comparing ranges in code, reading packet captures and logs that print hex, or importing geolocation tables that list ranges as integers.

192.168.1.1 as a single integer192 × 16,777,216 + 168 × 65,536 + 1 × 256 + 1 = 3,232,235,777, hex C0 A8 01 01.Each octet is a digit in base 256192× 16,777,216(2²⁴)= 3,221,225,472168× 65,536(2¹⁶)= 11,010,0481× 256(2⁸)= 2561× 1(2⁰)= 13,232,235,777the same address as one 32-bit numberHex0xC0A80101
Multiply each octet by its place value and add: 192.168.1.1 becomes 3,232,235,777.

How it is calculated

For an address a.b.c.d, where each octet is 0–255:

Valid integers run from 0 (0.0.0.0) to 4,294,967,295 (255.255.255.255).

The principle

An IPv4 address is really one 32-bit number; the dotted notation is just a readable way to write its four bytes in base 256. Each octet is one "digit" of that base-256 number, so its place value is 256 raised to its position, exactly like hundreds and tens in decimal. Because the integer preserves order, numerical comparison works: an address is inside a range when start ≤ N ≤ end.

Worked example

  1. Input: 192.168.1.1.
  2. 192 × 16,777,216 = 3,221,225,472.
  3. 168 × 65,536 = 11,010,048.
  4. 1 × 256 = 256, plus the last octet 1.
  5. Sum: 3,232,235,777.
  6. Hex: 192 = C0, 168 = A8, 1 = 01, 1 = 01, so 0xC0A80101.
  7. Binary: 11000000.10101000.00000001.00000001.

How to read the result

A larger integer means a "later" address. Subtracting two integers gives the number of addresses between them, and a CIDR block is a range whose start is a multiple of its size. Hex is handy because each pair of digits lines up with one octet.

Common mistakes

Keep in mind: This tool handles IPv4 only. Integers larger than 4,294,967,295 do not represent a valid IPv4 address, so check that your input lies in range.

Frequently asked questions

What is 192.168.1.1 as a number?

3,232,235,777, or 0xC0A80101 in hexadecimal.

Why store IP addresses as integers?

An integer takes 4 bytes instead of up to 15 characters and makes range queries fast and simple.

Is the integer form a valid address in a browser?

Many browsers and tools accept it, but support is inconsistent, so use dotted notation in configuration.

Sources: IETF RFC 791, Internet Protocol

Checked 8 Nov 2026. Standard formulas and RFC/IEEE definitions, computed locally in your browser — nothing you type is sent anywhere.

💻 All tech & IT tools →🌍 Calculators by country →