IP calculators

IP address converter

Convert an IPv4 address to an integer, hexadecimal, binary or octal, or the other way around.

What does it do?

Converts an IPv4 address between its different forms: dotted (192.168.1.1), integer, hexadecimal, binary and octal. It detects the format you type automatically.

Why does it matter?

Many databases, server logs, blocklists and programs store IPs as integers or in hexadecimal because they take less space and compare faster. To read or search them, you need to convert them.

How does it work?

An IPv4 address is a 32-bit number. Each part of the dotted form is one byte, so they're combined (multiplying by 256) to get the integer, and from there converted to the other bases. Calculated in your browser.

How to read the result

Integer
The number from 0 to 4,294,967,295 that represents the IP.
Hexadecimal
The 4 bytes in hex, for example 0xC0A80101.
Binary
The 32 bits, separated by byte.

What is it for?

Frequently asked questions

Why store an IP as a number?

It takes 4 bytes instead of up to 15 characters, and ranges can be searched with a simple comparison (greater than, less than).

Does it work with IPv6?

No: this tool is for IPv4. For IPv6, use the IPv6 calculator.