IP Address Converter — Binary, Hex, Decimal, Octal
Enter any IPv4 address in dotted-decimal notation and instantly see its 32-bit binary, hexadecimal, octal, and unsigned integer representations, together with its IP class (A/B/C/D/E) and address type (private, loopback, public, multicast, etc.).
- 1
Octet 1 (×2²⁴)
192 × 16,777,216 = 3,221,225,472 - 2
Octet 2 (×2¹⁶)
168 × 65,536 = 11,010,048 - 3
Octet 3 (×2⁸)
1 × 256 = 256 - 4
Octet 4 (×2⁰)
1 × 1 = 1 - 5
32-bit unsigned integer
3,221,225,472 + 11,010,048 + 256 + 1 = 3,232,235,777Each octet weighted by its byte position (256³, 256², 256, 1) and summed.
How does this calculator work?
An IPv4 address is a 32-bit unsigned integer in dotted-decimal notation. This converter shows it in binary (8 bits per octet), hex, octal and as a plain integer, then classifies it as Class A/B/C/D/E and identifies whether it is private (RFC 1918), loopback, link-local, multicast, or public.
Formula
How this is calculated
An IPv4 address is a 32-bit unsigned integer written in dotted-decimal notation for readability. Each dot-separated octet (0–255) maps to one byte. The full 32-bit value equals o1 × 16 777 216 + o2 × 65 536 + o3 × 256 + o4. For example 192.168.1.1 = 3 232 235 777 as a decimal integer, C0.A8.01.01 in hex, and 11000000.10101000.00000001.00000001 in binary.
The IP class is determined by the leading bits of the first octet: Class A starts with 0 (first octet 0–127), Class B with 10 (128–191), Class C with 110 (192–223), Class D (224–239) is multicast, Class E (240–255) is reserved. Classful addressing was the original scheme; modern networks use CIDR instead, but the class labels remain common in documentation.
The address type check follows RFC 1918 (10.x, 172.16–31.x, 192.168.x), RFC 5735 (127.x loopback, 169.254.x link-local/APIPA), and IANA special registries for multicast and reserved ranges. The reverse DNS format (x.x.x.x.in-addr.arpa) is the zone used for PTR records that map an IP back to a hostname.
Frequently asked questions
Each octet is one byte (8 bits), so it ranges from 0 (00000000₂) to 255 (11111111₂). With four octets the full address is 32 bits, giving 2³² = 4 294 967 296 possible addresses (0.0.0.0 to 255.255.255.255).
Hex is compact and maps neatly to nibbles (4-bit groups). Network engineers use it in packet dumps, firewall rules (e.g. 0xC0A80101 for 192.168.1.1) and MAC-address-style notation. Many operating systems and network tools display IPs in hex internally.
Reverse DNS maps an IP address back to a hostname via a PTR record. The octets are reversed (to place the most specific part last, following DNS hierarchy) and the zone in-addr.arpa is appended. For 192.168.1.1 you create a PTR record in the zone 1.168.192.in-addr.arpa pointing 1 → your hostname.
Also known as
TG we-Calculate Editorial Team. (2026). IP Address Converter — Binary, Hex, Decimal, Octal [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/ip-address-converter
TG we-Calculate Editorial Team. "IP Address Converter — Binary, Hex, Decimal, Octal." TG we-Calculate. 2026. https://we-calculate.com/calculator/ip-address-converter.
TG we-Calculate Editorial Team, "IP Address Converter — Binary, Hex, Decimal, Octal," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/ip-address-converter
@misc{wecalculate_ip_address_converter, title = {IP Address Converter — Binary, Hex, Decimal, Octal}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/ip-address-converter}}, year = {2026}, note = {TG we-Calculate} }
Did this calculator help you?
