IP Address Converter

Convert IPv4 addresses to decimal format and back. Useful for networking and IP calculations.

Auto-detection: lines with dots → IPv4; digits only → decimal; contains : → IPv6 (unsupported). Comma-separated paste is converted to newlines. Blank lines preserved.

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 Address to Decimal

  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.
  3. View the result instantly. Each line shows the conversion and direction (IP → Decimal or Decimal → IP).
  4. Use Copy or Copy All Results to use the output in your database, script, or firewall rules.

IPv4 to Decimal Formula

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 (decimal) is common in development and infrastructure:

  • 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.

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.

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

Explore these related free tools to enhance your productivity and workflow.

Frequently Asked Questions

What is IPv4 decimal format?

IPv4 decimal format is the 32-bit unsigned integer representation of an IP address. Each octet is weighted by powers of 256: (a×256³)+(b×256²)+(c×256)+d. For example, 192.168.1.1 becomes 3232235777. Used in databases and IP range calculations.

Why convert IP to decimal?

Converting IP to decimal is useful for database storage (compact integer column), IP range comparisons, firewall rules, and network programming where IPs are compared or stored as numbers. Many APIs and configs use decimal or integer IP format.

How do I convert an IP address to decimal?

Enter an IP address (e.g., 192.168.1.1) in the input. The tool auto-detects IPv4 and converts it to its decimal representation using bitwise operations. You can paste multiple IPs, one per line. Blank lines are preserved.

How do you convert an IP address to an integer?

Each IPv4 octet is multiplied by powers of 256 and summed. This tool performs the conversion instantly using bitwise operations.

How do I convert decimal to IP address?

Enter a decimal number (0 to 4294967295) in the input. The tool detects numbers and converts them to dotted-decimal IP format. Multiple decimals are supported, one per line.

What is IP address to decimal conversion?

IP to decimal represents an IPv4 address as a single 32-bit unsigned integer. It is useful for database storage, IP range calculations, and network programming where IPs are stored or compared as integers.

What is the valid range for decimal IP?

The decimal representation of an IPv4 address ranges from 0 (0.0.0.0) to 4294967295 (255.255.255.255). Any number outside this range is invalid for IPv4.

Is the IP converter free to use?

Yes! The IP converter is 100% free, with no registration, no usage limits, and no hidden fees. All conversion runs in your browser.

Are my IP addresses stored or tracked?

No. All conversion happens locally in your browser. We do not store, save, or have access to any IP addresses you convert.

Why convert IP addresses to decimal?

Converting IPs to decimal is useful for database storage (as integers), IP range calculations, network programming, and comparing IP addresses numerically.

What's the formula for IP to decimal conversion?

The formula is: (octet1 × 256³) + (octet2 × 256²) + (octet3 × 256) + octet4. The tool uses equivalent bitwise operations for performance.

Can I convert private IP addresses?

Yes. The tool works with any valid IPv4 address, including private ranges (192.168.x.x, 10.x.x.x, 172.16–31.x.x) and public IPs. Leading zeros in octets (e.g. 192.168.001.1) are rejected.

What's the maximum decimal value for an IP?

The maximum decimal value for IPv4 is 4294967295, which represents 255.255.255.255.

Does this work with IPv6 addresses?

No. This tool only supports IPv4 (32-bit). IPv6 uses a 128-bit format. If you paste an IPv6 address, the tool shows: This tool currently supports IPv4 only.