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).
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.
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: