UTILS.
100% in-browser
🌐

IP Address Extractor

Pull every IPv4 and IPv6 address out of logs or pasted text, deduplicated, counted, and sorted — all locally in your browser.

output

About this tool

The IP Address Extractor scans any block of text — server logs, config dumps, emails, packet captures — and pulls out every IPv4 and IPv6 address it contains. Finding IPs by hand is tedious and error-prone, so this tool does it with two validated regular expressions: a strict IPv4 matcher that rejects octets above 255, and a comprehensive IPv6 matcher that handles full, compressed (::), and IPv4-mapped forms. Matches are collected into a set so duplicates are removed, then counted and sorted.

Everything runs locally in your browser — the text you paste is parsed in-page with JavaScript and never uploaded, so you can safely process private logs and internal addresses. IPv4 results are sorted numerically by converting each address to its 32-bit integer value (o1·2^24 + o2·2^16 + o3·2^8 + o4), so 10.0.0.9 correctly precedes 10.0.0.10. IPv6 results are sorted by expanding the :: shorthand to the full eight-group form and comparing the zero-padded hextets lexicographically.

Use the four toggles to control the output: include IPv4, include IPv6, keep only unique addresses, and sort the results. The tool reports how many of each family it found plus a combined total, and lists them in separate IPv4 and IPv6 sections you can copy with one click. Empty arrays and malformed candidates are ignored rather than reported as false matches.

Frequently asked questions

Does it validate the addresses it finds?
Yes. The IPv4 pattern only matches octets in the 0–255 range, so 256.1.1.1 is rejected. The IPv6 pattern accepts full, compressed (::), and IPv4-mapped forms while allowing at most one :: compression, so malformed candidates are skipped.
How are the results sorted?
IPv4 addresses are sorted numerically by their 32-bit integer value, so dotted order is respected (10.0.0.9 before 10.0.0.10). IPv6 addresses are sorted after expanding :: to the full eight-group form and comparing the zero-padded hextets. Turn sorting off to keep the original order of appearance.
Can I extract only one address family?
Yes. Uncheck ‘IPv4’ or ‘IPv6’ to limit the scan to a single family. The unique toggle deduplicates each family independently, and the counts update to reflect exactly what is included in the output.
Is my text uploaded anywhere?
No. All matching, deduplication, and sorting happen entirely in your browser with plain JavaScript. Nothing is sent to a server, so pasting private logs or internal IP ranges is safe.

More tools