DNS RobotDNS Propagation Checker
HomeDNS LookupWHOIS LookupIP LookupSSL Check
DNS RobotDNS Propagation Checker

Next-generation DNS propagation toolkit

Privacy PolicyTerms of ServiceAbout UsBlogContact

DNS Tools

DNS LookupDomain to IPNS LookupMX LookupCNAME LookupView all

Email Tools

SPF Record CheckerDMARC CheckerDKIM CheckerSMTP Test ToolEmail Header AnalyzerView all

Website Tools

WHOIS LookupDomain AvailabilitySubdomain FinderCMS DetectorLink AnalyzerView all

Network Tools

Ping ToolTraceroutePort CheckerHTTP Headers CheckSSL Certificate CheckView all

IP Tools

IP LookupWhat Is My IPIP Blacklist CheckIP to HostnameASN LookupView all

Utility Tools

QR Code ScannerQR Code GeneratorMorse Code TranslatorText to Binary ConverterSmall Text GeneratorView all
© 2026 DNS Robot. Developed by ❤ Shaik Brothers
All systems operational
Made with
Home/Conversion Tools/IP to Decimal Converter

Free IP to Decimal Converter

Convert any IP address to decimal, hexadecimal, and binary formats instantly. Supports bidirectional conversion — enter a decimal to IP address, hex, or binary value and get all other representations with a detailed octet breakdown.

Free IP ToolIP to DecimalBidirectional4 Formats
Try:

What Is IP to Decimal Conversion?

Every IPv4 address is fundamentally a 32-bit unsigned integer — a number between 0 and 4,294,967,295. The familiar dotted-decimal notation (like 192.168.1.1) is simply a human-readable way to display this number by splitting it into four 8-bit groups called octets, each ranging from 0 to 255.

IP to decimal conversion takes a dotted-decimal IP address and calculates the equivalent single integer. For example, 192.168.1.1 becomes 3,232,235,777. The same 32-bit value can be expressed in four formats: dotted decimal, decimal integer, hexadecimal (0xC0A80101), and binary (11000000.10101000.00000001.00000001).

Our free IP address converter handles bidirectional conversion between all four formats. Enter an IP address, decimal number, hex value, or binary string and instantly get all other representations along with a detailed octet breakdown showing each byte in decimal, hexadecimal, and binary.

How to Convert IP Address to Decimal

Converting an IP address to decimal is a straightforward mathematical process. Each octet occupies 8 bits of the 32-bit address, and its position determines a multiplier based on powers of 256 (since 2⁸ = 256).

Step-by-Step: Convert 192.168.1.1 to Decimal

1

Split the IP into four octets

192.168.1.1 → 192, 168, 1, 1

2

Multiply each octet by its positional value

192 × 256³ = 192 × 16,777,216 = 3,221,225,472

168 × 256² = 168 × 65,536 = 11,010,048

1 × 256¹ = 1 × 256 = 256

1 × 256⁰ = 1 × 1 = 1

3

Sum all values

3,221,225,472 + 11,010,048 + 256 + 1 = 3,232,235,777

Formula:

(O₁ × 256³) + (O₂ × 256²) + (O₃ × 256¹) + (O₄ × 256⁰)

IP to decimal converter tool showing conversion of 192.168.1.1 to decimal 3232235777, hexadecimal 0xC0A80101, and binary formats
IP to Decimal Converter — Convert between IP address, decimal integer, hexadecimal, and binary formats

How to Convert Decimal to IP Address

The reverse process — converting a decimal to IP address — involves dividing the integer by powers of 256 to extract each octet. This is the inverse of the IP to decimal formula.

Step-by-Step: Convert 3,232,235,777 to IP

1

Divide by 16,777,216 (256³) for the first octet

floor(3,232,235,777 ÷ 16,777,216) = 192, remainder = 11,010,305

2

Divide remainder by 65,536 (256²) for the second octet

floor(11,010,305 ÷ 65,536) = 168, remainder = 257

3

Divide remainder by 256 for the third octet

floor(257 ÷ 256) = 1, remainder = 1

4

The remaining value is the fourth octet

Fourth octet = 1

Result:

3,232,235,777 → 192.168.1.1

In programming, bitwise operations are more efficient than division. The formula uses right-shift (>>>) and bitwise AND (& 0xFF) to extract each octet from the 32-bit integer. For instance, (n >>> 24) & 0xFF extracts the first octet.

IP Address Format Reference

An IPv4 address can be expressed in four standard formats. Each serves different purposes in networking, programming, and analysis. Our IP address converter supports all four formats with bidirectional conversion.

Dotted Decimal

192.168.1.1

The standard notation used in network configuration, routing tables, and everyday networking. Four octets (0-255) separated by dots.

Used in: Network configuration, DNS, firewall rules, server setup

Decimal Integer

3232235777

A single unsigned 32-bit integer (0 to 4,294,967,295). Most compact numeric form for storage and mathematical operations.

Used in: Database storage, IP range queries, programming APIs

Hexadecimal

0xC0A80101

Base-16 representation. Each pair of hex digits maps to one octet (C0 = 192, A8 = 168, 01 = 1). Prefix 0x indicates hex notation.

Used in: Packet analysis, low-level debugging, memory inspection

Binary

11000000.10101000.00000001.00000001

Raw 32-bit representation. Each octet is 8 binary digits. Essential for understanding subnet masks and CIDR calculations.

Used in: Subnet calculations, bitwise operations, network education

IP to decimal conversion formula showing step-by-step calculation of 192.168.1.1 to 3232235777 with octet positional values
IP to Decimal Conversion Formula — Each octet is multiplied by 256 raised to its positional power

Common IP to Decimal Examples

Here are decimal, hexadecimal, and binary conversions for well-known IPv4 addresses frequently encountered in networking. Use these as quick references or to verify our IP to decimal converter results.

IP AddressDecimalHexDescription
0.0.0.000x00000000Unspecified address
1.1.1.116,843,0090x01010101Cloudflare DNS
8.8.8.8134,744,0720x08080808Google Public DNS
10.0.0.0167,772,1600x0A000000Private range (Class A)
127.0.0.12,130,706,4330x7F000001Localhost / loopback
172.16.0.02,886,729,7280xAC100000Private range (Class B)
192.168.0.03,232,235,5200xC0A80000Private range (Class C)
255.255.255.2554,294,967,2950xFFFFFFFFBroadcast address

When You Need IP to Decimal Conversion

While dotted-decimal notation is standard for human reading, there are many scenarios where converting an IP address to decimal or other formats is essential for network professionals and developers.

Database Storage

Store IP addresses as 4-byte integers instead of 15-character strings. Enables efficient range queries with BETWEEN and uses 73% less storage. MySQL's INET_ATON() and PostgreSQL's inet type handle this natively.

Firewall & ACL Rules

Some firewalls and access control lists accept IP ranges as integer ranges. Converting to decimal makes it easy to define rules like 'allow 3232235520 to 3232235775' (covering 192.168.0.0/24).

Network Programming

Low-level socket APIs (C, Rust, Go) represent addresses as 32-bit integers in network byte order. Functions like inet_aton() and inet_ntoa() convert between formats for socket programming.

IP Range Comparison

Checking if an IP falls within a CIDR range becomes a simple integer comparison. For 192.168.1.0/24: check if decimal is between 3,232,235,776 and 3,232,236,031.

Packet Analysis

Network protocol analyzers like Wireshark display IP headers in hexadecimal. Understanding hex-to-IP conversion is essential for reading raw packet dumps and debugging network issues.

API Integration

GeoIP services, threat intelligence feeds, and abuse databases often accept or return IPs as integers. Converting between formats ensures compatibility across different API specifications.

Comparison of four IP address formats - dotted decimal, decimal integer, hexadecimal, and binary representations for common addresses
IP Address Format Comparison — The same address shown in dotted decimal, decimal integer, hexadecimal, and binary

Related Tools

Our IP to decimal converter is part of a comprehensive suite of networking and conversion tools. Explore related utilities for IP address management, network analysis, and DNS lookups.

IPv4 to IPv6 Converter

Convert IPv4 addresses to IPv6-mapped format

IPv6 Compression Tool

Compress and expand IPv6 addresses (RFC 5952)

Subnet Calculator

Calculate CIDR subnets, ranges, and broadcast addresses

IP Lookup

Look up geolocation, ISP, and ASN for any IP

Domain to IP

Find the IP address of any website or domain

What Is My IP

Find your public IPv4 and IPv6 addresses

DNS Lookup

Check all DNS records of any domain online

Reverse DNS Lookup

Look up PTR records for any IP address

Frequently Asked Questions

What is IP to decimal conversion?

IP to decimal conversion transforms a dotted-decimal IPv4 address (like 192.168.1.1) into a single 32-bit unsigned integer (3,232,235,777). Every IPv4 address is fundamentally a 32-bit number — the four octets are a human-readable way to represent it. The conversion multiplies each octet by its positional value (256³, 256², 256¹, 256⁰) and sums the results.

How do I convert an IP address to a decimal number?

Split the IP into four octets, multiply each by its positional power of 256, and sum: (O₁ × 256³) + (O₂ × 256²) + (O₃ × 256¹) + (O₄ × 256⁰). For 192.168.1.1: (192 × 16,777,216) + (168 × 65,536) + (1 × 256) + (1 × 1) = 3,232,235,777.

How do I convert a decimal number back to an IP address?

Divide the decimal by 16,777,216 (256³) for the first octet, then divide the remainder by 65,536 (256²) for the second, by 256 for the third, and the final remainder is the fourth octet. Alternatively, use bitwise operations: (n >>> 24) & 0xFF, (n >>> 16) & 0xFF, (n >>> 8) & 0xFF, n & 0xFF.

Why would I need to convert IP to decimal?

Common uses include: database storage (integers use less space and enable efficient range queries), firewall rules that accept integer ranges, low-level network programming with socket APIs, IP range comparison using simple integer math, packet analysis where addresses appear in hexadecimal, and API integration with services that use integer IP formats.

What is the decimal value of 192.168.1.1?

The decimal value of 192.168.1.1 is 3,232,235,777. In hexadecimal it is 0xC0A80101, and in binary it is 11000000.10101000.00000001.00000001. This is a private IP address commonly used as a default router gateway on home networks.

What is the maximum decimal value for an IPv4 address?

The maximum decimal value is 4,294,967,295 (2³² − 1), corresponding to the broadcast address 255.255.255.255. In hexadecimal, this is 0xFFFFFFFF. The minimum value is 0, which corresponds to 0.0.0.0 (the unspecified address). The full valid range spans 0 to 4,294,967,295.

Can I convert IPv6 addresses to decimal?

IPv6 addresses are 128-bit numbers, so they can theoretically be converted to decimal, but the result can be up to 39 digits long (up to 340 undecillion). Standard 64-bit integers cannot hold this value — you need big integer math. This tool focuses on IPv4 (32-bit). For IPv6 tools, use our IPv6 Compression Tool or IPv4 to IPv6 Converter.

What is the difference between dotted decimal and decimal integer?

Dotted decimal (192.168.1.1) splits the 32-bit address into four 8-bit octets separated by dots. Decimal integer (3,232,235,777) represents the same value as a single number. Dotted decimal is used for network configuration; decimal integer is used for database storage, programming, and IP range calculations.

How do hexadecimal and binary IP representations work?

Hexadecimal (base 16) represents each 4-bit nibble as a digit 0-F. For 192.168.1.1: C0.A8.01.01 → 0xC0A80101. It is used in packet analysis and debugging. Binary (base 2) shows each of the 32 bits as 0 or 1, often dot-separated by octet. Binary is essential for subnet mask calculations and CIDR operations.

Is this IP to decimal converter free?

Yes, completely free with no limits, no registration, and no ads. All conversions happen in your browser via client-side JavaScript — your IP addresses are never sent to any server. It supports bidirectional conversion between IP, decimal, hexadecimal, and binary formats.