Online Tools
  • Picture Tools
  • Format Conversion
  • JSON Tools
  • Encryption and Decryption
  • Text Processing
  • Web Tools
  • Webmaster Tools
  • Calculation
  • Other
  • Quick Checklist
  • Wallet Tools
  • Change Language
    • العربية
    • български
    • čeština
    • dansk
    • Deutsch
    • ελληνικά
    • English(England)
    • English(USA)
    • español
    • eesti
    • suomi
    • français
    • magyar
    • bahasa Indonesia
    • italiano
    • 日本語
    • 한국어
    • lietuvių
    • latviešu
    • norsk bokmål
    • Nederlands
    • polski
    • português do Brasil
    • português
    • română
    • русский
    • slovenčina
    • slovenščina
    • svenska
    • Türkçe
    • українська
    • 简体中文
  • Password Generator
  • UUID online generation
  • GUID Generator
  • htpasswd generation
  • Barcode Generator
  • IP/Numeric Address Conversion
Source data:

Post-Processing:

Copy Result

IP to Numeric Address Conversion Tool

This tool enables fast bi-directional conversion of IP addresses to integer numbers, using the standardip2long andlong2ip algorithms to ensure that the results are consistent with the built-in functions of programming languages (e.g. PHP, Python).

Functionality

IP to Numbers: Converts IPv4 addresses (e.g. 66.102.7.147) to 32-bit unsigned integers (e.g. 1113982867).
Numbers to IP: Reduces a decimal number to the standard dotted decimal IP format.

Application Scenarios

  • Database storage optimisation: replace IP strings with integer numbers to save space.
  • Network development and debugging: directly access the target server through the numeric address.
  • Data analysis: Quickly compare IP segment attribution ranges.

Technical principle

Conversion formula: The first part x 256³ + The second part x 256² + The third part x 256 + The fourth part
Example: 66.102.7.147 = 66×16777216 + 102×65536 + 7×256 + 147 = 1113982867

Note: The result of the conversion should be added to the address bar of the browser.http:

Copyright ©2025 01022.hk