ZapKit

IP address converter

Translate IPv4 addresses between the forms that databases, logs, code and network tools use, for one address or a whole list.

What is an IP address converter?

An IP address converter rewrites IPv4 addresses from one notation to another. Addresses turn up as decimal integers in databases and analytics exports, as hex in packet dumps and source code, and in binary in networking lessons, while people read them in dotted form.

Paste addresses in any of those forms, one per line, mixed if you like. Show every format for each address, including its reverse DNS name, IPv4-mapped IPv6 form, type and class, or output a single format as a clean list that matches the input order.

How to use the IP address converter

  1. 1.Paste addresses

    Dotted, integer, 0x hex or 32-bit binary, one per line.

  2. 2.Choose the output

    Every format, or just the one you need.

  3. 3.Copy or download

    The converted list keeps the same order.

Example: an address from a log

An analytics export stores the visitor address as 3232235786:

Dotted
192.168.1.10
Hex
0xC0A8010A
Reverse DNS
10.1.168.192.in-addr.arpa
Type
Private (RFC 1918), class C

The visitor came from inside a private network, not the public internet.

One number, many spellings

An IPv4 address is a single 32-bit number. 192.168.1.10 is the same value as 3232235786, 0xC0A8010A and 11000000.10101000.00000001.00001010. Databases often store addresses as integers because they sort and compare correctly; packet captures and low-level code show hex; binary makes subnet masks easy to understand.

Each address also gets its reverse DNS name for PTR records, its IPv4-mapped IPv6 form used by dual-stack software, its type such as private or public, and its historic class. Dotted addresses with leading zeros, like 010.1.1.1, are rejected because systems disagree on whether they mean octal.

Frequently asked questions

How do I store an IP address in a database?

As an unsigned 32-bit integer, or a dedicated type like PostgreSQL's inet.

What is IPv4-mapped IPv6?

The IPv4 address written as ::ffff:a.b.c.d, so IPv6 software can represent it.

Are classes A, B and C still used?

Not for routing since 1993, but the terms still appear in courses and old documentation.

Can I convert a long list?

Yes. Paste thousands of lines; unrecognised ones are marked, not dropped.

More Developer tools