Skip to content
ENExplore Calculators

IP To Hexadecimal Calculator

Work out ip to hexadecimal instantly with clear inputs, formula shown and shareable results.

About IP To Hexadecimal Calculator

An IPv4 address is a single 32-bit unsigned integer that humans read as four decimal octets. Converting each octet to two hex digits gives the form used in IPv4-mapped IPv6 addresses, packet captures and low-level configuration, while the flat decimal value is what databases and geo-IP tables store.

Formula

32-bit value

value = o1 * 16777216 + o2 * 65536 + o3 * 256 + o4; each octet renders as two hexadecimal digits

Worked example

With the default values below, IP To Hexadecimal Calculator returns Hexadecimal of C0.A8.01.0A. Change any input above and every figure here is recalculated in your browser.

Inputs used

IPv4 address
192.168.1.10
Hex output styleone of Dotted hex (C0.A8.01.0A), Contiguous (0xC0A8010A), Colon separated (C0:A8:01:0A)
Dotted hex (C0.A8.01.0A)

Results

Hexadecimal
C0.A8.01.0A
32-bit decimal value
3,232,235,786
Binary (dotted octets)
11000000.10101000.00000001.00001010
Octal
300.250.001.012

Step by step

  1. 1Values used
  2. 232-bit value
  3. 3Hexadecimal= C0.A8.01.0A
  4. 432-bit decimal value= 3,232,235,786
  5. 5Binary (dotted octets)= 11000000.10101000.00000001.00001010
  6. 6Octal= 300.250.001.012

Assumptions and limits

  • The result is derived only from the 2 inputs listed above. Anything not among them is not part of the calculation.
  • In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
  • Figures are rounded for display to whole numbers, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.

How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.

Frequently Asked Questions

Where is dotted hex actually used?

IPv6 transition formats such as ::ffff:c0a8:010a embed the IPv4 address in hex, and some boot-loader and PXE filenames use the hex form of the address.

Why store IPs as integers?

Range queries and sorting become simple arithmetic, so allow-list and geo-IP lookups can use a single indexed BETWEEN comparison.

IP To Hexadecimal Calculator | Calcrivo