IP Address Converter

Paste an IPv4 address in any form, such as 192.168.1.1, 3232235777 or 0xC0A80101, and see it written every other way, each with its own Copy button.

How it works

An IPv4 address is one 32-bit number. The familiar 192.168.1.1 is that number cut into four bytes, each written in decimal. Databases often store the plain number instead, logs and packet tools show it in hex, and IPv6 software writes it inside an IPv6 address.

The converter reads any of those forms: dotted decimal, a plain integer, hex with or without 0x, 32 bits of binary (with or without dots) and IPv4-mapped IPv6 such as ::ffff:192.168.1.1 or ::ffff:c0a8:101. It works out the single number behind it and writes it back in every form.

It also tells you what kind of address it is (private, public, loopback and so on) and gives its reverse DNS name. Everything runs on this page.

How to use it

  1. 1 Paste or type an IPv4 address in any form.
  2. 2 Read every other form in the list below, which updates as you type.
  3. 3 Copy the one you need with its Copy button, or copy them all.

Good to know

  • To store addresses in a database column and sort or compare them, use the integer form. 10.0.0.9 sorts before 10.0.0.10 as numbers but not as text.
  • Leading zeros are dangerous: ping 010.0.0.1 reaches 8.0.0.1 on many systems, because C reads 010 as octal. The dotted octal line shows what that looks like.
  • An IPv4-mapped IPv6 address, ::ffff:a.b.c.d, is how a dual-stack server sees an IPv4 client. It is the same address, not a different one.
  • Hex is read as a 32-bit number, so c0a80101 and 0xC0A80101 are the same address. A hex value made only of digits needs the 0x, or it is read as an integer.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Why 192.168.1.1 is 3232235777, and 0xC0A80101

People write IPv4 addresses as four numbers with dots because that is easy to read, but a computer stores the address as one 32-bit number. The dots only mark where each of the four bytes begins. Once you see that, every other form of an address is just the same number written in a different base, and converting between them is a matter of arithmetic you can check by hand.

Take 192.168.1.1. Each part is one byte, worth 256 times as much as the byte to its right. So the number is 192 × 256³ + 168 × 256² + 1 × 256 + 1. That is 192 × 16,777,216 = 3,221,225,472, plus 168 × 65,536 = 11,010,048, plus 256, plus 1, for a total of 3,232,235,777. That is the integer a MySQL INET_ATON() call returns and the value many logs and GeoIP databases store.

Hex is even easier, because two hex digits are exactly one byte. 192 is C0, 168 is A8, 1 is 01 and 1 is 01, so the address is 0xC0A80101. Binary spells out the same bytes as eight bits each: 11000000.10101000.00000001.00000001. Paste any of those forms into the box above and you get 192.168.1.1 back, with all the others alongside it.

IPv6 adds one more form. A server listening on IPv6 that receives a connection over IPv4 records the client as an IPv4-mapped address: ::ffff: followed by the IPv4 address. Written with a dotted tail it is ::ffff:192.168.1.1. Written in plain IPv6 hex the last 32 bits split into two groups, c0a8 and 0101, which compress to ::ffff:c0a8:101. Both are the same address, and both are accepted here.

Dotted octal deserves a warning rather than a use. The C function inet_aton(), and tools built on it such as ping, read a part with a leading zero as octal. So 010.0.0.1 is 8.0.0.1, and 0300.0250.0001.0001 is 192.168.1.1. That has been used to slip addresses past filters that only check the decimal form. This converter refuses leading zeros in dotted input for that reason, and shows the octal form only so you can recognise it.

There are limits. This page converts IPv4 addresses; for IPv6 addresses use the IPv6 calculator. Short forms that some old tools accept, such as 127.1 for 127.0.0.1 or a dotted address with only three parts, are refused rather than guessed at, because their meaning depends on the program reading them.

Frequently asked questions

How do I turn an IP address into a number?

Multiply the first part by 16,777,216 (256 cubed), the second by 65,536, the third by 256, and add the fourth. 192.168.1.1 is 192 × 16,777,216 + 168 × 65,536 + 1 × 256 + 1, which is 3,232,235,777.

What is an IPv4-mapped IPv6 address?

An IPv4 address written inside the IPv6 range ::ffff:0:0/96, such as ::ffff:192.168.1.1. Servers that listen on IPv6 see IPv4 clients this way. The last 32 bits are the IPv4 address, which in hex is ::ffff:c0a8:101.

Why does the converter refuse 192.168.010.1?

Because 010 means different things to different programs. Some read it as decimal 10, others as octal 8. Rather than guess, the converter asks you to write it without the leading zero.

Is my address sent anywhere?

No. The conversion is arithmetic on this page and nothing leaves your browser.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.