ToolLineup

IP Address Converter

This IP address converter translates an IPv4 address between its dotted form and the decimal, hexadecimal, octal and binary representations of the same 32-bit number, and reports which class it falls into and whether it sits in a reserved range. Crucially it works from any of those forms, so pasting 3232235777 or 0xC0A80101 gives you 192.168.1.1 back — which is exactly what you need when an address turns up as a bare integer in a log line, a database column or an API response, as they frequently do since a 32-bit integer is a far more compact way to store an address than a string.

How it works

Converts an IPv4 address between dotted, decimal, hexadecimal, octal and binary forms, and tells you which class it falls into and whether it is in a reserved range.

The conversion works from any of those forms, so you can paste 3232235777 or 0xC0A80101 and get 192.168.1.1 back — which is exactly what you need when an address turns up as a bare integer in a log or a database column.

Everything runs in your browser — nothing you enter is sent to a server.

An address is a number

192.168.1.1 is a readable way of writing the 32-bit number 3,232,235,777. Each dotted part is one byte:

192 × 16777216  = 3221225472
168 × 65536     =   11010048
  1 × 256       =        256
  1 × 1         =          1
                 -----------
                  3232235777

Why you meet the integer form

Storing an address as a 32-bit integer takes four bytes instead of up to fifteen, sorts correctly without special handling, and makes range comparisons a simple numeric test. Plenty of databases, log formats and APIs therefore store the number — and it is completely unreadable until converted back.

Reserved ranges

Some ranges never appear on the public internet, and recognising them saves confusion:

  • 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 — private networks.
  • 127.0.0.0/8 — loopback, your own machine.
  • 169.254.0.0/16 — link-local, which usually means DHCP failed.
  • 100.64.0.0/10 — carrier-grade NAT, used inside ISP networks.

Frequently asked questions

How do I convert an IP address to decimal?

Type the dotted address and the 32-bit decimal value appears alongside the hex, octal and binary forms.

Can I convert a decimal number back to an IP?

Yes. Paste the decimal, hex or octal value and the dotted form is worked out. This is what you need when an address is stored as an integer.

Why would an IP be stored as a number?

A 32-bit integer is four bytes against up to fifteen for a string, and it compares and sorts far faster — so databases and log formats often store addresses that way.

What do the classes mean?

The historical scheme that divided the address space by leading bits: A, B and C for different network sizes, D for multicast, E reserved. It was replaced by CIDR in 1993 but the terms persist.

What counts as a reserved range?

Private ranges (10.x, 172.16–31.x, 192.168.x), loopback (127.x), link-local (169.254.x), carrier-grade NAT (100.64.x) and multicast (224.x and above). None are routable on the public internet.

Is the address sent anywhere?

No. The conversion is arithmetic and runs in your browser — no lookup of any kind is performed.

Related tools