Decimal IP Converter
Fast, accurate and free online decimal ip converter tool running directly in your browser.
-
1Enter data
Enter content, paste text or load a file from disk. -
2Click the button
The tool will immediately process your data in the browser. -
3Get the result
Copy the finished text or save the file to your device.
return "Result ready in 0.1s";
}
Rate this tool:
Related tools
Other tools you may find usefulIPv4 Decimal Converter - IPv4 Address Representations
An IPv4 address is a 32-bit number written in dotted decimal notation (e.g. 192.168.1.1). But it can also be written as one decimal number (3232235777), hexadecimal number (0xC0A80101) or binary number. The tool converts between all representations.
IPv4 address representations
Dotted decimal: 192.168.1.1 - standard format. 32-bit integer: 3232235777. Hex: C0.A8.01.01 or 0xC0A80101. Binary: 11000000.10101000.00000001.00000001. Calculation: 192×16777216 + 168×65536 + 1×256 + 1 = 3232235777. Conversely: 3232235777 ÷ 256 = 12632960 remainder 1 (last octet).
IPv4 address classes
Class A: 0.0.0.0 – 127.255.255.255 (first bit = 0). Class B: 128.0.0.0 – 191.255.255.255. Class C: 192.0.0.0 – 223.255.255.255. Class D: 224.0.0.0 – 239.255.255.255 (multicast). Class E: 240.0.0.0 – 255.255.255.255 (reserved). Private addresses: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16.
CIDR notation and masks
CIDR: 192.168.1.0/24. /24 = 24 network bits, 8 host bits = 256 addresses (254 usable). Mask: /24 = 255.255.255.0 = 0xFFFFFF00. /16 = 255.255.0.0. /8 = 255.0.0.0. Network address: IP AND mask. Broadcast: IP OR NOT(mask). Wildcard mask: The inverse of a mask (used in Cisco ACL).
IPv4 vs IPv6
IPv4: 32 bits, approximately 4.3 billion addresses. Exhausted (IANA 2011). IPv6: 128 bits, 3.4×10^38 addresses. Format: 2001:0db8:85a3:0000:0000:8a2e:0370:7334. IPv6 abbreviations: ::1 = loopback, :: = 0:0:0:0:0:0:0:0. NAT: "solution" to IPv4 exhaustion - multiple devices = 1 public IP.
FAQ
Why are IP addresses converted to numbers?
Databases: storing IP as INT is faster than VARCHAR. MySQL: INET_ATON("192.168.1.1") = 3232235777. PHP: ip2long(), long2ip(). Python: int.from_bytes(socket.inet_aton(ip), "big"). Comparing IP ranges: WHERE ip_int BETWEEN start_int AND end_int – quick and simple.
How to check the IP address class?
First octet: 1-126 → class A. 128-191 → B. 192-223 → C. 224-239 → D (multicast). 240-255 → E. 127.x.x.x → loopback (not class A technically). 0.x.x.x → reserved. In the CIDR era, classes are historical - we use network masks.
How to calculate the number of hosts in a subnet?
Hosts = 2^(32-prefix) - 2. /24: 2^8 - 2 = 254 hosts. /16: 2^16 - 2 = 65534 hosts. /8: 2^24 - 2 = 16777214 hosts. /30: 2^2 - 2 = 2 hosts (point-to-point links). /32: 1 host (loopback, VPN endpoint). /31: 2 addresses (RFC 3021, point-to-point without broadcast).
What is subnet mask and wildcard mask?
Subnet mask: network mask. 255.255.255.0 = /24. Wildcard mask: The inverse of the mask. 0.0.0.255 = wildcard for /24. Usage: Cisco ACL: permit 192.168.1.0 0.0.0.255. OSPF: network 192.168.1.0 0.0.0.255 area 0. Bitwise: wildcard = XOR(255.255.255.255, subnet_mask).
How does NAT work and why is IPv4 still alive?
NAT (Network Address Translation): The router maps the private IP (192.168.x.x) to the public IP. Multiple devices = 1 public IP (via ports). PAT (Port Address Translation): A variant of NAT with ports. Why IPv4: legacy systems, migration costs, NAT was "enough" for many organizations. IPv6 adoption 2024: ~40-45% of internet traffic (Google stats).
Related tools: subnet calculator, hex to decimal converter and DNS checker.