IP Extractor Online — Extract IPv4 & IPv6 Addresses

An instant client-side IP extractor built to extract IP addresses (IPv4, IPv6, and CIDR blocks) from server logs, firewall dumps, email headers, and raw text without false-positive version numbers. Classifies public vs. private RFC 1918 ranges, sorts numerically, and exports clean CSV in-browser.

What is an IP extractor & why matching four numbers is not enough

An IP extractor scans raw logs, email headers, and configuration dumps in your browser to extract valid IPv4, IPv6, and CIDR network addresses while rejecting software version numbers and invalid octets. Instead of a naive regex that returns changelog versions like 1.2.3.4.5 or impossible octets like 999.888.777.666, every candidate undergoes boundary, leading-zero, and 0–255 range checks, then receives an RFC range classification and numeric sort.

The shape of an IPv4 address — four numbers separated by dots — is also the shape of a software version, a build number and several date formats. Three checks separate them: each octet must fall in 0–255, leading zeros (192.168.01.1) are rejected, and any match surrounded by more digits or dots is discarded so 1.2.3.4 inside 1.2.3.4.5 is never reported as an address.

Address Type / InputCIDR / Pattern ScopeAssigned LabelExtractor Behavior
Public IPv4Routable 0–255 octets (optional /0–/32)publicExtracted, sorted numerically, kept under Public addresses only
Private IPv4 (RFC 1918)10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16privateExtracted & counted; hidden when Public addresses only is ticked
Loopback & Link-Local IPv4127.0.0.0/8, 169.254.0.0/16loopback / link-localIsolated so local/APIPA noise does not pollute external lists
CGNAT, Multicast & Reserved100.64.0.0/10, 224.0.0.0/4, 0.0.0.0/8, 240.0.0.0/4carrier NAT / multicast / reservedTagged distinctly in summary pills and CSV export
IPv6 (Full & Hex-Prefixed ::)8-group hex & fe80::1, fc00::/7, ff00::/8, 2001:db8::1public / private / link-local / multicastControlled by Include IPv6 checkbox; exports with IPv6 version tag
Version Numbers & Invalid Runs1.2.3.4.5, 192.168.01.1, 999.0.0.1RejectedFiltered out automatically so changelogs do not trigger false matches

How to extract IP addresses from text

  1. Paste your text. Server logs, firewall rules, config files, email headers, a spreadsheet column — anything with addresses in it.
  2. Choose what to include. IPv6 is on by default. Tick Public addresses only to hide the internal ranges, which is usually what you want when reviewing traffic.
  3. Click Extract. Candidates are matched, then validated: every octet must be 0–255, leading zeros are rejected, and anything embedded in a longer dotted run is discarded.
  4. Copy or download. Copy the plain list, or download a .csv carrying the address, IP version and type.

What comes out

Which ranges are recognised

Private ranges follow RFC 1918: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Also identified are loopback (127.0.0.0/8), link-local (169.254.0.0/16), carrier-grade NAT (100.64.0.0/10), multicast (224.0.0.0/4) and reserved space.

For IPv6: full 8-group addresses and hex-prefixed compressed :: forms are matched — fe80::/10 is link-local, fc00::/7 (fc/fd prefixes) is unique local (reported as private), and ff00::/8 is multicast. Anything else is reported as public. (Bare leading-double-colon tokens such as ::1 are skipped by the hex-prefix boundary check.) Up to 300 rows preview in the table while exports include every extracted address.

Why the log never leaves your device

Matching runs as JavaScript in your browser. Nothing you paste is transmitted.

Server logs are among the worst things to paste into an online tool. A single access log line can carry a session token in a query string, a customer's IP address, an internal hostname and a file path that reveals your directory structure. IP addresses are personal data under GDPR in their own right. Extracting locally means none of that is disclosed to anyone.

What it does not do

This tool finds and classifies addresses. It deliberately does not:

Who extracts IP addresses

Compared with writing the pattern yourself

A regex for IP addresses is a classic interview question and a classic source of quiet bugs — the range check is what most attempts get wrong, and the result is a list polluted with version numbers. This tool bakes those rules in.

If you are parsing structured Nginx or Apache access logs and want HTTP status codes, methods, and timestamps alongside IPs, use the server log field extractor. Once you extract raw IPs, you can collapse them into minimal firewall allowlist subnets with the IP to CIDR aggregator or expand a CIDR block using the CIDR & subnet extractor. If you need a custom pattern, the regex extractor lets you write your own, and the email and URL extractor pulls addresses and links from the same text.

IP address format standards and parsing edge cases

IPv4 is defined in RFC 791: four decimal octets in the range 0–255 separated by dots. IPv6 is defined in RFC 8200: eight groups of four hexadecimal digits separated by colons, with :: as shorthand for one or more consecutive groups of zeros. Both formats are matched.

Four edge cases: (a) loopback addresses 127.0.0.1 and ::1 are returned like any other address — filtering private or reserved ranges requires post-processing; (b) link-local IPv6 addresses include a percent-sign scope ID per RFC 4007 (e.g., fe80::1%eth0) — the extractor returns the address without the scope ID; (c) IPv4-mapped IPv6 addresses such as ::ffff:192.0.2.1 are returned as IPv6; (d) IPv4 octets with leading zeros (e.g., 010.000.000.001) are not matched — they are ambiguous (octal in some C contexts, invalid in dotted-decimal notation) and suppressing them avoids false positives from numeric fields.

Frequently asked questions

How do I extract IP addresses from text or logs online?

Paste your log, email header, or config text into the box above and click Extract. The IP extractor pulls every valid IPv4, IPv6, and CIDR address in browser memory, deduplicates and sorts numerically, and exports TXT or CSV.

How does this IP extractor filter out version numbers?

Octets must be 0–255, leading zeros such as 192.168.01.1 are rejected, and matches adjacent to extra digits or dots (such as 1.2.3.4 inside 1.2.3.4.5) are discarded.

Is my log uploaded to a server?

No. Everything runs in your browser. That matters here, because logs routinely contain tokens, internal hostnames and personal data alongside the addresses.

What is the difference between public and private addresses?

Private ranges (10.x, 172.16–31.x, 192.168.x) are used inside networks and are not routable on the internet. Tick Public addresses only to see just the external ones.

Does it show where an address is located?

No, deliberately. Geolocation would mean sending your addresses to a third-party service, which would undo the reason for extracting them locally.

Does it handle IPv6?

Yes, including full 8-group notation and hex-prefixed compressed :: forms such as 2001:db8::1 and fe80::1. Switch off Include IPv6 if hex identifiers in a document are producing matches.

Are CIDR ranges supported?

They are preserved as written — 10.0.0.0/8 stays as one entry (valid suffixes /0 through /32). The range is not expanded into individual addresses; use the CIDR extractor for expansion or IP to CIDR for summarization.

Why is 192.168.01.1 not matched?

A leading zero in an octet is not valid in an IP address. It is almost always a version number, so it is rejected on purpose.

• Specialist file parsing & security engineer • Verified: in our experience, our hands-on testing measured and verified private in-browser execution with zero file uploads • Last reviewed November 2026.