Convert an IP Address to a Decimal
cross-browser testing tools
World's simplest online IP to integer converter for web developers and programmers. Just paste your IP address in the form below, press the Convert button, and you'll get an IP as a single decimal number. Press a button – get a decimal IP. No ads, nonsense, or garbage. Useful if you store your IP addresses as integers in your database.
Announcement: We just launched Online Fractal Tools – a collection of browser-based fractal generators. Check it out!
Want to convert decimal to IP instead?
Use the Decimal to IP converter tool!
Using an IP to Integer Converter in Cross-browser Testing
An IP to integer converter can be useful if you're doing cross-browser testing. For example, if your web application is saving IP addresses in the database as base-10 numbers, then with this utility, you can generate test cases that verify that the conversion from a dot-separated IP to a decimal IP is done correctly. In this case, the input of a test case would be a dot-separated IP, such as 192.168.1.1 and the output would be a single number, such as 3232235777. This program can also be used to quickly obfuscate IP addresses. For example, if you load http://3232235777 in your browser, then the browser converts it to http://192.168.1.1. Additionally, if you think something looks like a decimal IP address, you can quickly test to see what IP it converts to.
Looking for more web developer tools? Try these!
Pro tip: You can use ?input=text query argument to pass text to tools.