IPv4 Converter Guide: Dotted Decimal, Integer, Hex, and Binary

Learn how one IPv4 address can be represented as dotted decimal, a 32-bit integer, hexadecimal, or binary, and when each representation appears in networking and logs.

In this article

IPv4 Converter Guide: Dotted Decimal, Integer, Hex, and Binary

An IPv4 address contains 32 bits.

Duck Cloud's IPv4 Converter converts IPv4 addresses between dotted, integer, hex, and binary representations.

Dotted decimal

Humans usually write IPv4 as:

text
192.0.2.1

Each octet ranges from 0 to 255.

Binary

Binary exposes the actual bits:

text
192 = 11000000

It is useful for learning subnet masks, CIDR, and bitwise network boundaries.

Integer representation

The full 32-bit address can be represented as one unsigned integer. Some databases and older APIs store IPv4 this way.

Hexadecimal

Hex is a compact way to display binary values and appears in packet analysis, low-level debugging, and networking libraries.

Endianness

If an integer converts to a surprising address, check byte order. Network protocols commonly use network byte order, traditionally big-endian.

Strict parsing

Security-sensitive applications should avoid ambiguous legacy IPv4 formats. Normalize addresses with maintained networking libraries before comparing firewall rules or allowlists.

IPv4 and subnetting

Representation conversion is different from subnet calculation.

An address such as 192.0.2.70 does not reveal its network boundary unless you also know the CIDR prefix or mask.

Use CIDR Calculator and Subnet Calculator for network ranges.

All representations describe the same 32 bits. Choose the form that matches your debugging, database, or networking task.

Advertisement
IPv4 Converter: Decimal, Integer, Hex & Binary | Duck Cloud