IP Address Converter

Convert an IPv4 address between dotted-decimal, integer (decimal), hexadecimal and binary. Enter either an address like 8.8.8.8 or a decimal number to see every representation at once.

IP Address Converter
Enter an IPv4 address (e.g. 8.8.8.8) or a decimal number.

What the IP Address Converter does

Every IPv4 address is really just a 32-bit number. The familiar dotted-decimal form (8.8.8.8) is only one way to write it — the same value can be expressed as a single decimal integer, a hexadecimal string, or a run of binary bits. This tool converts between all of them instantly.

Enter a dotted address to see its decimal, hex and binary equivalents, or paste a decimal integer to turn it back into a normal IP. This is handy whenever a system, database, or log stores addresses as raw numbers instead of the human-readable form.

How to read the results

  • Dotted Decimal — the standard human-readable IPv4 form (four octets 0–255).
  • Decimal — the address as one 32-bit unsigned integer (0 to 4,294,967,295).
  • Hexadecimal — the same number in base-16, often seen in low-level tools and packet dumps.
  • Binary — all 32 bits, grouped into the four octets so you can see the network/host split.

Worked example

Input: 8.8.8.8

Dotted Decimal  8.8.8.8
Decimal         134744072
Hexadecimal     0x08080808
Binary          00001000.00001000.00001000.00001000

Each octet '8' is 00001000 in binary and 08 in hex; concatenating the four octets gives the single integer 134744072.

Common use cases

  • Store or index IP addresses as integers in a database for faster range queries.
  • Understand how subnet masks work by viewing addresses in binary.
  • Decode a hexadecimal IP seen in a log file or packet capture.
  • Teach or learn how IPv4 addressing maps to raw 32-bit numbers.

IP Address Converter — Frequently Asked Questions

How is an IPv4 address converted to a single number?

Each of the four octets is multiplied by its place value and summed: octet1×2^24 + octet2×2^16 + octet3×2^8 + octet4. For 8.8.8.8 that is 8×16777216 + 8×65536 + 8×256 + 8 = 134744072.

Why would I store an IP as an integer?

Integers are compact and make range comparisons trivial — checking whether an IP falls inside a CIDR block becomes a simple numeric BETWEEN query, which databases index and evaluate far more efficiently than string matching.

Does this tool convert IPv6 addresses?

This converter focuses on IPv4's 32-bit space (decimal, hex and binary). IPv6 uses 128-bit addresses written in hexadecimal groups already; for IPv6 details, use our DNS lookup and Whois tools.