Split a link into protocol, host, port, path, query and fragment, as the browser does.
IPv4 Address Converter
Use IPv4 Address Converter
What it does
Convert a dotted-decimal IPv4 address to its 32-bit decimal integer, hexadecimal and binary forms, or a whole number such as 3221225985 or 0xC0000201 back to dotted form, for example to match an IP that a phishing link writes as one number.
It runs entirely in your browser: nothing you enter is uploaded.
How to use IPv4 Address Converter
- Enter the address. Replace the sample with a dotted IPv4 address such as 198.51.100.7, or with a whole number such as 3325256711 or 0xC6336407 to turn it back into dotted form. No port or scheme.
- Convert. Press Convert or Enter. The conversion is plain arithmetic in your browser, and nothing is looked up.
- Read the three forms. Decimal (int) is the whole address as one number, Hexadecimal is the same number in base 16, and Binary shows each part as 8 bits.
- Search for the other forms. Look for the decimal or hex value in links, logs or email source. A browser opens http://3325256711/ as http://198.51.100.7/, so both forms point to the same server.
- Pass it on. Use Send to… to find the abuse contact for the address, add it to an abuse report or convert it with IOC Converter.
Example
Documentation address
192.0.2.1DOTTED DECIMAL
192.0.2.1
DECIMAL (INT)
3221225985
HEXADECIMAL
0xC0000201
BINARY
11000000.00000000.00000010.00000001Decimal 3221225985, hexadecimal 0xC0000201, binary 11000000.00000000.00000010.00000001. A browser opens http://3221225985/ and http://0xC0000201/ as this same address.
What it checks
| Signal | What it means |
|---|---|
| Decimal (int) | The 32-bit value of the address, from 0 to 4294967295. A link whose host is one long number uses this form. |
| Hexadecimal | 0x followed by eight hex digits. A link host that starts with 0x is an IPv4 address written in hex. |
| Binary | Each of the four parts as 8 bits, separated by dots, which helps when you work out network ranges by hand. |
| Invalid IPv4 | Shown when dotted input does not have four decimal numbers from 0 to 255 without leading zeros, or a whole number is above 4294967295. A port or http:// in front also gives this message. |
| Hex or octal parts | Dotted input with 0x7f or 010 in one part is rejected, because browsers read such parts as hex or octal: http://0x7f.0.0.1/ opens 127.0.0.1. Check such links in URL Parser. |
| Leading zeros | A browser reads a leading zero in a URL host as octal, so http://010.0.0.1/ opens 8.0.0.1. The converter refuses 010.0.0.1 instead of guessing; URL Parser shows the address the browser uses. |
| No owner lookup | The tool does not say who runs the address, where it is or whether it has been reported. Send it to Abuse Contact Lookup to find the network owner. |
| Empty parts | An empty part, as in 192.0..1, counts as 0 here. A browser refuses such a host, so the conversion does not match any real link. |
More examples
Documentation address
198.51.100.7Decimal (int) 3325256711, Hexadecimal 0xC6336407, Binary 11000110.00110011.01100100.00000111.
Last address of a documentation range
203.0.113.255Decimal (int) 3405804031, Hexadecimal 0xCB0071FF, Binary 11001011.00000000.01110001.11111111.
Only three parts
192.0.2Invalid IPv4. The input has three parts, and the tool needs exactly four.
FAQ
Can it turn a decimal or hex number back into an IP?
Yes. Enter the whole number, such as 3221225985 or 0xC0000201, and it shows the dotted address 192.0.2.1 with the other forms. For a host inside a full link, such as http://3221225985/, URL Parser shows the address the browser opens.
Does it handle IPv6 or unusual notations?
IPv4 only. Dotted input must be four decimal numbers from 0 to 255 without leading zeros, so 010.0.0.1, 0x7f.0.0.1 and 192.0..1 are rejected: a browser reads a leading 0 in a URL host as octal and 0x as hex (http://010.0.0.1/ opens 8.0.0.1). Paste such links into URL Parser to see the address the browser uses.
Is the address sent anywhere?
No. The conversion is plain arithmetic in your browser; nothing is looked up or uploaded.
Why would a phishing link use a number instead of an IP address?
A single number does not look like an address, so readers and some filters do not recognise it. Browsers still open it: http://3325256711/ goes to 198.51.100.7. Converting the IP you suspect lets you search messages and logs for that number.
Can I paste an address with a port or a whole URL?
No. Enter only the four dotted numbers. 198.51.100.7:8080 or http://198.51.100.7/ gives Invalid IPv4, so remove the rest first, or use URL Parser for a full link.
Which addresses can I use safely in examples and reports?
RFC 5737 reserves 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 for documentation. They are never assigned to real hosts, so you can use them in training material without pointing at anyone's server.
Does a browser accept the hexadecimal output as a host?
Yes. http://0xC6336407/ opens 198.51.100.7. Browsers also accept each part in hex, such as http://0xC6.0x33.0x64.0x07/, which leads to the same address.