Convert any IPv4 address to Binary, Hexadecimal, Octal and Decimal. Identify class, type and subnet.
IP addresses are 32-bit numbers normally written in dotted decimal notation (e.g. 192.168.1.1). Internally computers and network protocols work with binary representations. Converting between decimal, binary, hexadecimal, and octal formats is essential for subnetting, CIDR calculations, firewall rule writing, and packet analysis.
This tool converts any valid IPv4 address between all four formats, identifies the IP class (A through E), determines whether the address is public or private, shows the default classful subnet mask, and generates the reverse DNS PTR record name used in PTR lookups. All computation happens instantly in the browser with no server round-trip.
Enter any IPv4 address in dotted decimal format (e.g. 10.0.0.1 or 203.0.113.5) and click Convert →. All formats and analysis appear immediately. Each value can be selected and copied.
Example: A networking student needs to understand why 192.168.1.0/24 covers 256 addresses. Entering 192.168.1.0 into IP Converter shows the binary form 11000000.10101000.00000001.00000000 — visually demonstrating that the last octet (8 bits) is fully available for host addresses, which is exactly 2&sup8; = 256.
Computers store IP addresses as 32-bit binary numbers — everything else (dotted decimal, hex) is just a human-friendly way to display the same underlying bits.
192.168.1.1).The octet 192 in binary is 11000000. Reading left to right: 128+64+0+0+0+0+0+0 = 192. ✓
CIDR (Classless Inter-Domain Routing) notation — the "/24" in 192.168.1.0/24 — replaced the old rigid Class A/B/C system, allowing networks of ANY size by specifying exactly how many bits (from the left) belong to the network portion.
| CIDR Prefix | Subnet Mask | Total Addresses | Usable Hosts | Typical Use |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 | Entire Class A network (historical) |
| /16 | 255.255.0.0 | 65,536 | 65,534 | Large enterprise network |
| /24 | 255.255.255.0 | 256 | 254 | Typical office/home LAN |
| /28 | 255.255.255.240 | 16 | 14 | Small department, point-to-multipoint links |
| /30 | 255.255.255.252 | 4 | 2 | Point-to-point link (router-to-router) |
| /32 | 255.255.255.255 | 1 | 1 (the host itself) | Single host route |
Key insight: Every increase of 1 in the prefix number HALVES the number of available addresses (and doubles the number of possible subnets at that size). The "Usable Hosts" is always 2 less than "Total Addresses" because the FIRST address is reserved as the Network Address and the LAST is reserved as the Broadcast Address (except for /31 and /32, which have special rules used for point-to-point links and single-host routes).
The Subnet Calculator above takes ONE network and splits it into multiple EQUAL-sized smaller networks — a common task when allocating address space to different departments, VLANs, or sites.
A company has 192.168.1.0/24 (256 addresses) and needs to give each of 4 departments (Sales, IT, HR, Finance) its own isolated subnet. Entering 192.168.1.0/24 with "4 subnets" produces four /26 networks, each with 62 usable hosts:
192.168.1.0/26 (Sales) · 192.168.1.64/26 (IT) · 192.168.1.128/26 (HR) · 192.168.1.192/26 (Finance)
A company connects 8 branch offices to HQ via dedicated links. Each link only needs 2 usable IPs (one per end). Splitting 10.0.0.0/24 into 8 subnets yields eight /27 networks (30 usable hosts each) — oversized for a 2-host link. For maximum efficiency, a /30 (2 usable hosts) would be used for EACH link instead — achievable by entering 10.0.0.0/24 with "64 subnets" to get /30-sized blocks.
Note on "subnets created" vs "requested": Because subnetting must split networks into POWERS OF 2 (2, 4, 8, 16...), if you request a number that isn't a power of 2 (e.g. 5), the calculator creates the NEXT power of 2 (8) — this is shown clearly in the "Subnets Created" field.
in-addr.arpa domain name format used when a server needs to look up which hostname an IP resolves back to — commonly checked by mail servers as an anti-spam measure.192.168.1.300 is invalid because 300 exceeds the 8-bit (0–255) limit per octet.10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 are RESERVED for private networks globally — even if your router shows this as "your IP," it's only valid on your local network.| Format | Example (for 192.168.1.1) | Common Use |
|---|---|---|
| Dotted Decimal | 192.168.1.1 | Everyday human use, configuration files |
| Decimal Integer | 3232235777 | Database storage, range comparisons |
| Binary | 11000000.10101000.00000001.00000001 | Subnetting, CIDR mask calculations |
| Hexadecimal | C0.A8.01.01 | Packet analysis, low-level programming |