What the tool extracts
Paste text or upload a text file to extract valid IPv4 and IPv6 addresses. Each result can include the address, type, and port. The result count appears below the output.
How to extract IP addresses
- Paste text into the input, or select Upload and choose a supported text file such as
.txt,.csv,.json,.log,.md,.html, or.htm. You can also drop a file onto the input. - Choose Unique only, Include IPv4, Include IPv6, and Retain ports as needed. Results and the count update when the input or these checkboxes change.
Review, copy, or download results
The results table shows Address, Type, Port, Line, and Context. The output box contains only the displayed address values.
- Use Copy to copy the address list.
- Use Download to save the list as
ip-addresses.txt. - With Unique only enabled, repeated address-and-port results are removed. Clearing Retain ports can combine entries that differ only by port.
Validation and port handling
- IPv4 octets must be between
0and255. Invalid candidates such as999.1.1.1and10.0.0.256are discarded. - IPv6 syntax is checked, including compressed forms and embedded IPv4 forms. Bracketed IPv6 can have a separated trailing port; unbracketed IPv6 is detected without a reliably separated port.
- Ports from
0through65535are accepted. When Retain ports is enabled, an accepted port, including0, appears in the Port column and output.
Limitations and privacy
- Files are read as text in the browser. Dropped files are read as text without the picker extension filter, and packet-capture binaries are not parsed.
- This is syntax detection only. It does not ping, connect to, geolocate, or test whether an address is reachable.
- A mapped IPv6 value such as
::ffff:192.168.1.10is treated as one IPv6 match; its embedded IPv4 is not listed separately.
Frequently Asked Questions
Does this tool check whether an IP address is reachable?
No. It only detects and validates IP address syntax. It does not ping, connect to, geolocate, or otherwise probe an address.
How are invalid IPv4 addresses excluded?
Each candidate is checked octet by octet. A value such as 999.1.1.1 or 10.0.0.256 is discarded because an octet is outside the 0-255 range.
What bracketed IPv6 formats are supported?
Bracketed forms such as [2001:db8::1] and [2001:db8::1]:8080 are recognized. Unbracketed IPv6 is also detected, but its trailing number cannot be reliably separated as a port.
Why is this separate from a general text or email extractor?
It validates IPv4 and IPv6 syntax, including octet ranges, compression, and embedded IPv4 forms, instead of relying only on a broad text pattern.