IP Converter

Convert IP addresses into different formats.

Quick IP to Decimal Examples

192.168.1.1 → 3232235777

8.8.8.8 → 134744072

1.1.1.1 → 16843009

Auto-detection: lines with dots → IPv4; digits only → decimal; contains : → IPv6 (unsupported). Paste one value per line or comma-separated values.

All conversion runs in your browser and no IP addresses are stored.

Example

192.168.1.1

3232235777

Common IP Address Conversions

IP AddressDecimal
127.0.0.12130706433
192.168.1.13232235777
8.8.8.8134744072
1.1.1.116843009
10.0.0.1167772161
172.16.0.12886729729
255.255.255.2554294967295

Common IPs like 127.0.0.1, 192.168.1.1, 8.8.8.8, and 1.1.1.1 are frequently converted into decimal integers for database storage and network programming. Use the table above or paste values into the converter to get results instantly.

How to Convert IP to Decimal (Step-by-Step)

  1. Enter an IPv4 address (e.g. 192.168.1.1) or a decimal number (0–4294967295) in the box above.
  2. The ip to decimal converter auto-detects each line: dotted notation is treated as IPv4, digits only as decimal to ip input.
  3. View the result instantly. Each line shows the conversion and direction (IP → Decimal or Decimal → IP), making it easy to convert ip to number and store an ip address to integer value in logs and scripts.
  4. Use Copy or Copy All Results to use the output in your database, script, or firewall rules.

How to Convert Decimal to IP

  • Enter a decimal number (e.g. 3232235777) into the input box.
  • The tool automatically converts decimal to IP format (e.g. 192.168.1.1).
  • Supports bulk conversion for multiple decimal values.

3232235777 → 192.168.1.1

134744072 → 8.8.8.8

IP to Decimal Formula (IPv4 Explained)

To convert an IP address to an integer, each octet is multiplied by powers of 256 and summed:

(octet1 × 256³) + (octet2 × 256²) + (octet3 × 256) + octet4

Example: 192.168.1.1 → (192×16777216) + (168×65536) + (1×256) + 1 = 3232235777. This tool uses bitwise operations for the same result.

Why Convert IP Addresses to Integers

Converting IP addresses to integers (IP to decimal) is common in development and infrastructure when working with IP ranges, databases, and network systems.

  • Databases — Storing IPs as integers saves space and speeds up range queries.
  • IP range comparisons — Checking if an IP is in a range is simpler with numeric comparison.
  • Networking tools — Many APIs and configs use decimal or integer IP format.
  • Firewall rules — Some systems expect IP address to integer format for rules.

You can also use related tools like URL parser, domain extractor, and cookie parser to work with web data and requests more efficiently.

About IP Address Converter

This IP to decimal converter converts IPv4 addresses to decimal (integer) and decimal back to IP. It supports bulk conversion: paste multiple IPs or decimals, one per line. Blank lines are preserved. Invalid lines are shown inline with a clear error. All processing runs in your browser—no data is sent to any server. Developers often combine this tool with subnet calculators, CIDR calculators, and IP range tools when working with network data.

For related workflows, you can also parse URLs using our URL parser, extract domains using our domain extractor, or parse cookies using our cookie parser.

Use cases

  • Storing IP addresses as integers in databases
  • IP range calculations and comparisons
  • Network programming and scripting
  • Converting IPs for API requests
  • Understanding IP address representation
  • Debugging network-related code

Features

  • Auto-detect IPv4 vs decimal per line
  • Bulk conversion with preserved line order
  • Inline error feedback for invalid lines
  • IP to decimal and decimal to IP (bitwise)
  • Strict validation: no leading zeros in octets
  • Copy single or all results
  • 100% browser-based
By Muhammad Abdullah Rauf · Founder, EverydayTools.proUpdated 2026

Workflow guides

Step-by-step chains that connect related tools for common tasks.

Convert an IP address for database storage

  1. Paste the dotted-decimal IP address (e.g. 203.0.113.42) to get the 32-bit integer and hex representations.
  2. Convert between number bases (decimal, binary, hex, octal) for network calculations with Base Converter for any multi-radix conversion beyond IP-specific formats.
  3. Construct the full URL with IP host using URL Builder to verify the IP-based URL is properly formatted with port and path.

Advertisement

Frequently Asked Questions

Why would I need to convert an IP address to decimal?

Some databases and APIs store IPv4 addresses as 32-bit integers (decimal) for efficient sorting and range queries: 192.168.1.1 = 3232235777. Converting to integer enables fast subnet range queries with BETWEEN clauses. IP reputation APIs often accept integer format. This tool converts between dotted decimal, binary, hexadecimal, and 32-bit integer in both directions.

How is an IPv4 address stored as a 32-bit integer?

Each of the 4 octets is an 8-bit value (0-255). The 32-bit integer is formed by bit-shifting: (octet1 << 24) | (octet2 << 16) | (octet3 << 8) | octet4. For 192.168.1.1: (192 × 16777216) + (168 × 65536) + (1 × 256) + 1 = 3232235777. The reverse is done by masking and shifting each byte.

What does an IP address look like in binary?

Each octet is 8 bits. For 192.168.1.1: 192=11000000, 168=10101000, 1=00000001, 1=00000001, giving the full binary: 11000000.10101000.00000001.00000001. The network mask determines which bits identify the network vs the host. Binary representation is essential for understanding subnetting and CIDR notation.

How do I convert an IPv4 address to hexadecimal?

Convert each octet to a 2-digit hex value and concatenate: 192 = C0, 168 = A8, 1 = 01, 1 = 01 → C0A80101. Often written as 0xC0A80101 or C0:A8:01:01. Hex IP addresses appear in network packet captures, kernel routing tables, and some legacy system logs.

More free tools for the same workflow.

Advertisement