Skip to main content

IPv4 Address Converter

Convert an IPv4 address between dotted-decimal, integer, hexadecimal, octal and binary. Enter any one format — 192.168.1.1, 3232235777, 0xC0A80101 or a 32-bit binary string — and see every other representation at once.

Input

Any format: dotted-decimal (192.168.1.1), integer (3232235777), 0x-hex (0xC0A80101), or binary (0b… or a 32-bit string).

Output

Representations
FormatValue
No data yet
Was this helpful?

Guides

What this tool does

An IPv4 address is really just a single 32-bit number, but it can be written in several ways. 192.168.1.1 (dotted-decimal), 3232235777 (a plain integer), 0xC0A80101 (hexadecimal), 30052000401 (octal) and a 32-bit string of ones and zeros all describe the exact same address. This converter takes an address in any one of those formats, works out the underlying number, and shows every representation at once in a single table — no need to pick a "from" and "to" format.

How to use it

  1. Type or paste an IPv4 address into the IPv4 Address field.
  2. The tool auto-detects the format:
    • Dotted-decimal — anything containing dots, e.g. 192.168.1.1
    • Integer — a plain whole number, e.g. 3232235777
    • Hexadecimal — prefixed with 0x, e.g. 0xC0A80101
    • Binary — prefixed with 0b, or a bare 32-character string of 0s and 1s
  3. The results table updates instantly with the dotted-decimal, integer, hexadecimal, octal, dotted-binary and full 32-bit binary forms.

How the conversion works

Every input is parsed down to one 32-bit unsigned integer. A dotted-quad is folded octet by octet (a × 16777216 + b × 65536 + c × 256 + d), so 192.168.1.1 becomes 3232235777. From that single number, each output format is derived: the four octets are extracted with bit shifts for dotted-decimal, and the same value is printed in base 16, base 8 and base 2 for the other rows. Because the maximum IPv4 value (4294967295) is far below JavaScript's safe-integer limit, every conversion is exact.

FAQ

What is the valid range? A dotted-decimal address must have exactly four octets, each from 0 to 255. As a raw integer, valid values run from 0 (which is 0.0.0.0) to 4294967295 (which is 255.255.255.255, i.e. 2³² − 1). Anything outside that range is rejected with a clear message.

Why would I need the integer or hex form? Databases, logs and low-level networking code often store IP addresses as a single integer or hex value because it is compact and easy to compare or index. Converting back and forth is handy when reading raw logs, writing firewall rules, or debugging packet captures.

Does it support IPv6? No — this tool is IPv4-only. Each address maps to a 32-bit value; IPv6 uses 128 bits and a different notation.

Is the octal form standard? Octal is included for completeness. Note that some systems interpret leading-zero octal octets in a dotted address ambiguously, so octal is rarely used for real configuration — treat it as informational.

Privacy

This converter runs entirely in your browser. The address you enter is never sent to a server or stored anywhere.

ipv4ipnetworkbinaryhexadecimaldecimaloctal

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.