Convert an IPv4 address between dotted decimal, 32-bit binary, decimal integer, hexadecimal and dotted octal. The format is detected automatically and every other form is shown at once; IPv6 expansion included.

A universal IP base converter: turn an IPv4 address into dotted decimal, 32-bit binary, decimal integer, hexadecimal or dotted octal — and back. There is no direction to pick: paste any notation and the format is detected, with all other forms shown at once. IPv6 addresses expand to eight full groups and 128 bits.

How to use

Paste the value into the box — 192.168.1.1, 11000000101010000000000100000001, 3232235777, 0300.0250.0001.0001 and 2001:db8::1 are all recognised. Binary may be grouped with spaces, dots or line breaks; an octet starting with 0 is read as octal.

Five spellings of one number

An IPv4 address is just a 32-bit integer: 192.168.1.1 is 3232235777, which is 0xC0A80101, 0300.0250.0001.0001 and that 32-bit string. Conversion changes the notation, never the value.

Where it helps

Subnet masks and ACL wildcards are easier to reason about in binary; databases store IPs as integers for compact indexes, so you need the decimal form back; inet_aton-style parsers treat a leading 0 as octal, which explains many "wrong address" bugs. Everything runs locally in your browser — nothing is uploaded.

    Rating
    5 stars · Excellent
    Code
    No reviews yet — be the first to write one.