b2KIT

IP Address Converter

Convert IP addresses between decimal, binary, hexadecimal, and integer formats for IPv4 and IPv6.

Tested tool guide Tested browser tools Checked August 16, 2026

What IP Address Converter does, with a checked example

Translate a literal IPv4 or IPv6 address into its equivalent dotted or colon notation, bit string, hexadecimal value, and unsigned integer. The conversion preserves the address bits; it does not look up a hostname, identify an owner, or test whether the address is reachable. For IPv4, four decimal octets represent 32 bits. For IPv6, hexadecimal groups represent 128 bits and may have compressed zero runs. The common surprise is that multiple IPv6 spellings can encode the same value, while an integer result is one large number with no separators.

Worked example

A concrete input and expected output from the current implementation.

Input

1.2.3.4

Expected output

Decimal: 1.2.3.4
Binary: 00000001000000100000001100000100
Hexadecimal: 01020304
Integer: 16909060

The four octets become 01, 02, 03, and 04 in hexadecimal, with each octet occupying eight binary bits. Reading the 32 bits in network order gives 1 * 16777216 + 2 * 65536 + 3 * 256 + 4 = 16909060.

How the result is produced

1

IPv4 width and ordering

An IPv4 address contains four 8-bit octets. Dotted decimal shows each octet separately, binary shows each as eight bits, and hexadecimal shows each octet as two digits. The integer view concatenates all 32 bits, with the first octet as the most significant. Leading zeroes make binary and hexadecimal boundaries visible, even though they do not change the numeric value.

2

IPv6 expansion and equivalence

An IPv6 address represents eight 16-bit groups. A double colon can stand for one or more all-zero groups, but it may appear only once in an address. Conversion treats the text as a full 128-bit value and expresses the same bits in each requested base. Hexadecimal letter case and omitted leading zeroes do not alter the value, so a normalized display may differ from the input.

Good uses

  • Turning an IPv4 address from application logs into the 32-bit integer expected by a database field or network rule.
  • Expanding a compressed IPv6 address before comparing it with another textual or numeric representation.
  • Checking byte and bit boundaries while debugging packet data, address serialization, or protocol fixtures.

Limits and checks

  • Integer conversion does not indicate whether an address is public, private, reserved, assigned, or reachable.
  • An IPv6 integer can exceed the exact whole-number range of common spreadsheets and programming number types. Preserve it as text or use an exact integer type.
  • Hexadecimal and binary punctuation is only presentation. Compare the complete 32-bit or 128-bit value, especially when leading zeroes or IPv6 zero compression are omitted.

Common questions

Can I paste a hostname or complete URL?

No, not as an address conversion. This tool is for literal IPv4 and IPv6 values, not DNS resolution or URL parsing. A URL may include a scheme, port, path, or brackets around an IPv6 literal. Those components are not part of the address bits, so enter the address itself.

Does a different IPv6 spelling mean a different address?

Not necessarily. Leading zeroes inside a 16-bit group may be omitted, hexadecimal letters are case-insensitive, and one run of zero groups may be shortened with ::. Those changes preserve the same 128 bits. Compare the expanded hexadecimal or integer value, not the surface spelling alone. A genuinely different bit value is a different address.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools