IP to Integer

An IP address can be represented by different notations. The most common way to represent an IP address is XXX.XXX.XXX.XXX. Provide an IP address below to display it in different formats
IP Address:

Converted Values

String value 172.165.49.38
Binary 10101100 . 10100101 . 00110001 . 00100110
Integer 2896507174

How to convert

To convert an IP address to integer, break it into four octets. For example, the ip address you provided can be broken into

First Octet: 172
Second Octet: 165
Third Octet: 49
Fourth Octet: 38

To calculate the decimal address from a dotted string, perform the following calculation.

(first octet * 256³) + (second octet * 256²) + (third octet * 256) + (fourth octet)
= (first octet * 16777216) + (second octet * 65536) + (third octet * 256) + (fourth octet)
= (172 * 16777216) + (165 * 65536) + (49 * 256) + (38)
= 2896507174


This website is owned and maintained by Synametrics Technologies Inc. For questions contact support@synametrics.com
Support | Privacy Policy | Company Info Need to get physical address from an IP? Try IP2Location , powered by IP2Location.com