AnkhKit

IPv4 Address Converter (Decimal, Hex, Binary) — Free

Runs 100% in your browser — your files never leave your device.

Firewalls, DNS records, and older APIs sometimes spell the same address in four different ways. Type an IPv4 address and see it as a 32-bit integer, in hex, in binary, and as its IPv6-mapped form (::ffff:…) simultaneously. Useful when a log file shows an address you do not recognize.

How it works

  1. 1

    Type an IPv4 address

    The four formats update live as you type.

  2. 2

    Read every notation

    Decimal integer, hex, binary, and IPv6-mapped forms appear together.

  3. 3

    Copy what you need

    Each value can be copied straight into your config or query.

About this tool

The same address, many notations

An IPv4 address is a 32-bit number wearing costumes: dotted decimal (192.168.1.1), a single 32-bit integer (3232235777), hex (0xC0A80101), and octal. The tool converts between all of them — identical value, different notation — which is exactly how systems that misparse formats end up somewhere unexpected.

Why notation matters for security

Browsers and libraries disagree on accepting exotic notations — an integer-form address can bypass a filter that only matches dotted decimals. Convert an address to its canonical dotted form before comparing, filtering, or allowing it anywhere.

Reading the binary underneath

Each dotted decimal octet is eight bits, and the whole address is one 32-bit integer split for human readability. The converter makes the relationship visible — the same number, viewed four ways.

Frequently asked questions

Why would anyone write an IP as an integer?

Databases and some APIs store the raw 32-bit number for compactness, and legacy URL handling accepted it. Conversion between forms is purely notational.

Can a URL with an integer IP reach my server?

Often yes — many stacks accept it. That is the security note: normalize to dotted decimal before matching addresses against allowlists.

What does the hex form look like?

Four bytes as hex octets or one 8-digit hex number — 192.168.1.1 is 0xC0A80101. Network engineers read hex when working with masks and raw packets.

More network tools