IP Address Extractor

Paste server logs or any text and this tool finds every IPv4 and IPv6 address, deduplicates them, and classifies each as public or private/reserved using CIDR range math (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 127.0.0.0/8, 169.254.0.0/16 for IPv4; ::1, fc00::/7, fe80::/10 for IPv6). Filter to just public or private addresses and export the list. Everything runs locally in your browser, so logs never leave your device.

PrivateFreeWorks offline

Reviewed by Vincenzo Manto, Founder & Lead Developer · Last updated September 27, 2026

How it works

  1. 1

    Paste server logs or any text into the box, or upload a .txt/.log file.

  2. 2

    The tool matches valid IPv4 and IPv6 addresses and deduplicates them.

  3. 3

    Each address is classified as public or private/reserved using real CIDR range checks.

  4. 4

    Filter by class and copy or download the results as .txt or .csv.

Making sense of IPs buried in logs

Server logs, firewall exports, and support tickets are full of IP addresses mixed in with everything else. Manually picking them out and figuring out which ones are internal versus internet-facing is slow and error-prone. This tool extracts and classifies them in one pass.

Real range math, not string guessing

Public/private classification here uses bitmask CIDR containment checks for both IPv4 and IPv6, not naive string-prefix matching, so addresses at range boundaries (like 172.31.255.255, at the edge of 172.16.0.0/12) are classified correctly.

Safe for sensitive logs

Because everything runs client-side, this is safe to use on internal logs, firewall rules, or infrastructure documentation you wouldn't want to paste into a random online tool that uploads your input to a server.

Frequently asked questions

Does this tool upload my logs anywhere?

No. Extraction, validation, and classification all run locally in your browser with JavaScript, so nothing is sent to a server. That matters since logs often contain sensitive infrastructure details.

How are private/reserved IPv4 addresses determined?

The tool checks each address against real bitmask CIDR math for the standard private and reserved ranges: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 (private), 127.0.0.0/8 (loopback), and 169.254.0.0/16 (link-local).

Does it support IPv6, including compressed notation?

Yes. It parses full and '::'-compressed IPv6 addresses and classifies ::1 (loopback), fc00::/7 (unique local), and fe80::/10 (link-local) as private, everything else as public.

Can I get just the public IPs, or just the private ones?

Yes, use the Public/Private filter above the results to narrow the export to one class.

Will it match text that just looks like numbers with dots, not real IPs?

No, every candidate is validated against IPv4/IPv6 parsing rules (octet ranges 0-255, correct IPv6 group counts) before being included, so malformed lookalikes are excluded.

Related tools