Phone to IP Address Converter

Read ten digits as a 32-bit integer and split it back into the four octets of an IPv4 address.

Phone style digits
IPv4 addresses
Runs locally in your browser

About the Phone to IP Address Converter

This page undoes the mapping made by the IP Address to Phone Converter. Every non digit is stripped first, so brackets, spaces, dashes and dots in the input make no difference, and a leading country code 1 on an eleven digit string is dropped. What remains is read as a single decimal number and split into four bytes: divide by 16777216 for the first octet, then by 65536, then by 256, then take what is left.

A ten digit string can reach 9999999999, but an IPv4 address stops at 4294967295, so anything above that is refused with a message naming the value rather than wrapping around and returning a wrong address. That is the check worth knowing about, because any number starting with a 5 or higher is out of range, which is most real telephone numbers.

The output can be a dotted quad on its own, the quad next to the decimal value it came from, or the raw integer in decimal or hexadecimal, which are the forms that turn up in log files and in database columns where an address was stored as a number to save space. One value per line is converted independently, so a pasted column works in a single pass. Nothing here identifies a subscriber, a carrier or a location: it is arithmetic on digits, and the same input always produces the same output. For addresses stored as plain integers, Decimal to IP is the more direct route.

How to use

  1. Paste one number per line, formatted however you copied it.
  2. Pick an Output form: a dotted quad, the quad with its decimal value, or the raw integer.
  3. Fix any value flagged as above 4294967295, which is the highest an IPv4 address can reach.
  4. Press Swap to send an address back to the forward converter and confirm the round trip.

Common questions

Why was my number rejected as out of range?
Ten digits can reach nearly ten billion, but IPv4 stops at 4294967295. Any number above that has no matching address, so it is refused rather than truncated.
Does it matter how the number is punctuated?
No. Brackets, spaces, dashes, dots and a plus sign are all stripped before the digits are read, so any common layout works.
What happens to a leading 1?
On an eleven digit string it is treated as a country code and removed. On a ten digit string it is kept, because it is part of the number itself.
Can this identify who owns a phone number?
No. There is no lookup, no database and no network request. The digits are only being reinterpreted as a 32-bit integer.