IP Address Extractor

Extract IPv4 and IPv6 addresses from logs or text, then dedupe and export.

The IP Address Extractor scans server logs, config files, or any block of text you paste and pulls out every IPv4 and IPv6 address it can find, ignoring timestamps, URLs, and the rest of the surrounding content. Instead of squinting through a wall of log lines to note which addresses appear, you get a clean list with one IP per line, ready to review, block, or investigate in seconds.

It is built for system administrators, security analysts, developers, and support engineers who regularly sift through logs looking for the addresses behind traffic, errors, or suspicious activity. You can choose to capture both IP versions at once or narrow the results to just IPv4 or just IPv6, which makes it easy to focus on exactly the kind of address your task requires.

Everything runs locally in your browser using JavaScript, so nothing you paste is uploaded to a server or stored anywhere. Paste your log excerpt or text, pick the IP version you care about, toggle deduplication and sorting, and the finished list appears instantly with a small statistics panel showing how many addresses were found and returned.

Features

  • Extracts both IPv4 and IPv6 addresses from logs and text using strict, well-tested patterns.
  • Validates each IPv4 octet so numbers above 255 are never mistaken for a valid address.
  • Lets you choose to capture both versions at once or restrict results to IPv4 or IPv6 only.
  • Ignores timestamps, ports, URLs, and other numbers so the output stays focused on real IPs.
  • Removes duplicate addresses so each unique IP appears only once in the final list.
  • Offers optional sorting so a long list of addresses is easier to scan and compare.
  • Shows a stats panel counting IPs found, IPs returned, and duplicates removed.

How to use IP Address Extractor

  1. Paste your server log excerpt, config file, or any text containing IP addresses into the input box.
  2. Choose whether you want both versions, IPv4 only, or IPv6 only using the version selector.
  3. Toggle Remove duplicates and Sort A to Z depending on how tidy you want the output.
  4. The extracted IP list updates live as you paste or change any option.
  5. Review the statistics panel to confirm how many addresses were found and returned.
  6. Copy the finished list to your clipboard or export it as a TXT file for later use.

Benefits

  • Speeds up log analysis by pulling the addresses out of noisy log lines automatically.
  • Helps security teams build blocklists or allowlists from a batch of suspicious traffic.
  • Lets developers quickly gather the IPs referenced in config files or error output.
  • Keeps output clean from the start with built-in deduplication and optional sorting.
  • Processes internal logs safely because nothing you paste ever leaves your device.
  • Gives instant, transparent feedback through counts so you can trust the extraction result.

This tool is most useful when you have a large log excerpt and only need the addresses inside it. Common sources include web server access logs, firewall output, application error logs, and network configuration files. Because the IPv4 pattern validates each octet against the 0 to 255 range, ordinary numbers, version strings, and dates are not mistaken for addresses, which keeps the results reliable.

IPv6 addresses come in many forms, including the compressed :: notation, so the extractor recognises both full eight-group addresses and shortened versions. If you only need one version, the selector keeps the noise down. Keep in mind the tool confirms an address matches a valid IP pattern rather than checking whether the host is reachable, so pair it with your own network tools when you need to verify a live connection.

Frequently asked questions

Related tools