IP address converter: binary, decimal and hex
Type an IP address in any common form and see every other form at once. Dotted IPv4 such as 192.168.1.1 becomes the 32-bit decimal number 3232235777, the hex value 0xc0a80101, octets in binary and octal. It works the other way too: paste a decimal integer, a 0x hex value, dotted hex or a 32- or 128-bit binary string and get the address back. IPv6 addresses are handled as full 128-bit numbers, so the decimal value is exact rather than rounded.
IPv4 or IPv6 address, decimal integer, 0x hexadecimal, dotted hex, or 32/128-bit binary.
Read numbers up to 4,294,967,295 as
Enter an IP address or a number to convert it.
How to use the IP Address Converter
- 1
Enter an address or number
Type 192.168.1.1, 2001:db8::1, a decimal such as 3232235777, hex such as 0xC0A80101, or binary octets.
- 2
Check what was detected
The tool says whether it read your input as an address, decimal, hex or binary, and whether it is IPv4 or IPv6.
- 3
Choose how small numbers are read
A number up to 4,294,967,295 can be an IPv4 address or a small IPv6 one; pick which you mean.
- 4
Copy the form you need
Each row has its own copy button.
How the conversion works
An IPv4 address is one 32-bit number written as four 8-bit octets. The decimal value is octet1 × 256³ + octet2 × 256² + octet3 × 256 + octet4. An IPv6 address is a 128-bit number written as eight 16-bit groups in hexadecimal.
Binary and hexadecimal are the same number in base 2 and base 16. Because IPv6 values are larger than ordinary floating-point numbers can hold exactly, the converter uses whole-number (BigInt) arithmetic throughout.
- 192.168.1.1 → 192×16,777,216 + 168×65,536 + 1×256 + 1 = 3,232,235,777
- 3,232,235,777 = 0xC0A80101 = 11000000.10101000.00000001.00000001
When to use it
- Store or compare IPv4 addresses as integers in a database or spreadsheet.
- Read an IP address that a log, firewall or API prints as a decimal or hex number.
- Learn or teach subnetting by seeing each octet in binary.
- Check the exact 128-bit value of an IPv6 address for code or documentation.
Limits
- IPv4 octets with leading zeros (such as 010.1.1.1) are rejected, because some software reads them as octal and others as decimal.
- Shorthand forms such as 127.1 or a single dotted number are not expanded; enter all four octets.
Privacy
All conversions are calculated in your browser. Nothing you type is sent or looked up.
Frequently asked questions
How do I convert an IP address to decimal?
Multiply the first octet by 16,777,216, the second by 65,536, the third by 256 and add the fourth. For 192.168.1.1 that is 3,232,235,777. The converter does this for you and also works in reverse.
How do I convert an IP address to binary?
Write each of the four octets as an 8-bit binary number and join them: 192.168.1.1 is 11000000.10101000.00000001.00000001. Without the dots it is one 32-bit string.
Why does a decimal IP sometimes open a website?
Many browsers and tools accept an IPv4 address written as one decimal number, so http://3232235777 points to 192.168.1.1. Security filters that only look for dotted addresses can miss this, which is why it appears in phishing links.
Can IPv6 addresses be converted to decimal?
Yes. An IPv6 address is a 128-bit number, up to 340,282,366,920,938,463,463,374,607,431,768,211,455. The converter shows the exact value, which spreadsheets cannot hold without rounding.
What is the hex form of an IPv4 address used for?
Some systems store addresses in hex, such as Linux /proc/net files (which also reverse the byte order) and many packet tools. Dotted hex like c0.a8.01.01 shows each octet separately.
Is 0.0.3.242 really the same as 1010?
Yes. 1010 as a 32-bit number is 0×16,777,216 + 0×65,536 + 3×256 + 242. Small numbers become addresses near 0.0.0.0, which is why the tool tells you how it read the input.
Related tools
- IP Subnet CalculatorNetwork, broadcast, host range, mask and host count for IPv4 and IPv6 CIDR blocks.
- IPv4 to IPv6 ConverterIPv4-mapped, NAT64, 6to4 and compatible IPv6 forms, and the IPv4 inside an IPv6 address.
- IP Range CalculatorTurn an IP range into CIDR blocks, or CIDR blocks into address ranges.
People also use
- Internet Speed TestMeasure your download and upload speed, ping and jitter in a few seconds, with no app or sign-up.
- What Is My IP AddressSee the public IP address your connection uses, with IPv4, IPv6, approximate location and internet provider.
- Ping TestMeasure latency, jitter and packet loss over a run, with a live chart and a verdict for games and calls.
- WHOIS Lookup (RDAP)See who a domain is registered with, when it was created and expires, its name servers and abuse contact.
Last updated November 29, 2026 · How we build and test our tools