Intermediate

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.).
Dotted-decimal notation, e.g. 10.0.0.1 or 203.0.113.50
32-bit Binary
11000000.10101000.00000001.00000001
Decimal (uint32)
3232235777
Hexadecimal
0xC0A80101
Hex dotted
C0.A8.01.01
Octal dotted
0300.0250.0001.0001
IP class
Class C
Address type
Private (RFC 1918)
Reverse DNS (PTR)
1.1.168.192.in-addr.arpa
Octet 1 (192)192 / 255
Octet 2 (168)168 / 255
Octet 3 (1)1 / 255
Octet 4 (1)1 / 255
Step by step
  1. 1

    Octet 1 (×2²⁴)

    192 × 16,777,216 = 3,221,225,472
  2. 2

    Octet 2 (×2¹⁶)

    168 × 65,536 = 11,010,048
  3. 3

    Octet 3 (×2⁸)

    1 × 256 = 256
  4. 4

    Octet 4 (×2⁰)

    1 × 1 = 1
  5. 5

    32-bit unsigned integer

    3,221,225,472 + 11,010,048 + 256 + 1 = 3,232,235,777
    Each octet weighted by its byte position (256³, 256², 256, 1) and summed.
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

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
Integer = o1 × 2²⁴ + o2 × 2¹⁶ + o3 × 2⁸ + o4 • Binary: each octet → 8 bits
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

ip address to binary
ip address to hex converter
ipv4 decimal to binary
ip address format converter
dotted decimal to integer
ip address octal hex decimal
ip class lookup tool

APA

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

Chicago

TG we-Calculate Editorial Team. "IP Address Converter — Binary, Hex, Decimal, Octal." TG we-Calculate. 2026. https://we-calculate.com/calculator/ip-address-converter.

IEEE

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

BibTeX

@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?