Home/Developer Tools/IP Address Converter
🌐

IP Address Converter

Convert an IPv4 address between dotted decimal, binary, hex and integer

Free · No sign-up required

An IP address is just a number, written four different ways

The dotted-decimal form you normally see — 192.168.1.1 — is one convenient representation of a plain 32-bit integer. The same address is also a specific binary pattern, a specific hexadecimal value, and a specific octal value, and several networking contexts expect one of those other forms rather than the familiar dotted notation. This converts an IPv4 address between all of them at once.

Example: 192.168.1.1

FormValue
Decimal (dotted)192.168.1.1
Decimal (32-bit integer)3232235777
Hexadecimal0xC0A80101
Binary11000000.10101000.00000001.00000001
Octal030052000401

Each octet — each of the four dot-separated numbers — is exactly one byte, 0 to 255. Converting the whole address to binary and lining it up in four 8-bit groups is exactly what makes subnetting and CIDR notation (like /24) make sense: a subnet mask is a run of binary 1s followed by 0s applied across those same 32 bits.

Where each form actually gets used

  • The 32-bit integer form shows up in some firewall rules, older database schemas that store IPs as a single number for efficient range queries, and some programming APIs that work with IP addresses as integers rather than strings.
  • Hexadecimal appears in low-level network packet captures, some router configuration interfaces, and IPv6 addresses, which are natively written in hex groups.
  • Binary is what you actually need to see to understand subnetting, network/host boundaries, and why a /24 network holds 256 addresses while a /25 holds 128 — the binary form makes the boundary visible in a way the decimal form hides.
  • IPv6 support here handles converting between the shortened form (with :: zero compression) and the fully expanded form, since some tools and log formats require one or the other explicitly.

Frequently asked questions

Why would I ever need an IP as a plain integer?

Some databases and APIs store or compare IP addresses as a single 32-bit integer, since it is faster to index and range-query than a string. If you're working with one of those, you need this conversion.

What's the difference between this and a subnet calculator?

This converts one address between number bases. Subnet Calculator works out the network range, broadcast address and host count for an IP plus a CIDR prefix — a related but different question.

Does this validate whether an IP address is real or in use?

No — it only converts a syntactically valid address between representations. It has no way to check whether that address is actually assigned to anything.

Can I convert an IPv6 address here too?

Yes — between the shortened and fully expanded forms.

Why is the binary form split into four groups of 8?

Because an IPv4 address is four bytes, and each byte (octet) is exactly what dotted-decimal notation separates with dots. The grouping mirrors the actual structure of the address.

Is my IP address sent anywhere?

No. The conversion is simple arithmetic that runs entirely in your browser.

More tools in this category

🔐
Base64 Encoder & Decoder
Encode and decode text in Base64 format
🔢
Number Base Converter
Convert between binary, decimal, hex, octal and text
📤
Gzip / Deflate Decompressor
Decompress a .gz or raw deflate file back to its original bytes
Bitwise Calculator
AND, OR, XOR, NOT and bit-shift two numbers with the binary shown
🔡
Text to ASCII / Binary / Hex
Convert text to ASCII codes, binary, hex or decimal and back
🔢
Word Counter
Count characters, words, sentences, paragraphs and lines