🔒 100% private — runs in your browser, nothing is uploaded

IP Extractor

Pull every valid IPv4 and IPv6 address out of pasted text — invalid look-alikes are rejected, not listed.

Finding addresses in text is easy; believing them is the work. This extractor validates as it goes. An IPv4 candidate must be four segments of digits, and every segment must be a number from 0 to 255 — so from “ping 192.168.0.1 and 999.1.1.1 and 2001:db8::1” it returns exactly 192.168.0.1 and the IPv6 address 2001:db8::1, and 999.1.1.1 is rejected outright, because no segment of a real IPv4 address can be 999. IPv6 candidates are checked against the real grammar: hexadecimal groups of up to four digits, either the full eight-group form or a single :: compression (two :: sequences are invalid), which is also why an ordinary time like 12:30:45 or a colon-separated identifier is not mistaken for an address.

Your text is processed in this browser only — it is not uploaded, not stored and never put into a link. Nothing here pings or looks up the addresses found.

Quick answers

How do I extract IP addresses from text or a log?

Paste the text into an extractor that validates as it matches: IPv4 segments must each be 0–255, IPv6 must follow the real grammar. “ping 192.168.0.1 and 999.1.1.1 and 2001:db8::1” yields exactly 192.168.0.1 and 2001:db8::1 — the 999 form is rejected.

Both families are covered, duplicates are removed, and the order of first appearance is kept across the combined list.

What makes an IPv4 address valid?

Four numeric segments separated by dots, each from 0 to 255. Anything with a segment above 255 — 999.1.1.1, 10.0.0.256 — is not an IPv4 address, however address-like it looks.

Validity here means well-formed. It says nothing about whether the address is assigned or reachable; this tool never pings or looks up what it finds.

How to use

  1. Paste the text into the top box — a log excerpt, a config dump, a network note, anything with addresses in it.
  2. The extractor runs as you paste: dotted IPv4 candidates are range-checked segment by segment, and colon-form IPv6 candidates are fully validated.
  3. Read the list below, one address per line in the order they first appeared, with the unique count beside it.
  4. Copy the whole list with one click, or select and copy just the lines you need.

About this tool

Duplicates are removed while first-appearance order is kept, across both families — an IPv4 and an IPv6 address interleave in the list exactly as the text presents them. Two limits to keep in mind. Validation proves an address is well-formed, not that it is assigned, reachable or the one you meant; 192.168.0.1 is a private address in millions of unrelated networks. And exotic spellings — IPv4 written as a single integer or in hexadecimal, IPv6 with an embedded dotted tail — are out of scope: the extractor covers the standard written forms that actually appear in logs and configuration. Your text is processed in this browser only — never uploaded, and no address found is pinged or looked up.

Frequently asked questions

Why was 999.1.1.1 rejected while 192.168.0.1 was extracted?

Because every IPv4 segment must be between 0 and 255 — a segment is one byte. 999 cannot occur in a real address, so the whole candidate is refused rather than listed with a warning. The same range check quietly rejects typos like 10.0.0.256.

Does the extractor support IPv6, including the :: short form?

Yes, both the full eight-group form (2001:0db8:85a3:0000:0000:8a2e:0370:7334) and compressed forms such as 2001:db8::1, fe80::1ff:fe23:4567 and the loopback ::1. A candidate must follow the IPv6 grammar — hex groups, at most one :: — so times and other colon-separated strings are not swept up.

Does a listed address mean it exists or is reachable?

No. The extractor certifies the shape of the address only. It performs no ping, no lookup and no connection of any kind — it cannot, since it runs entirely in your browser — and a well-formed address may be unassigned, private or behind a firewall.

Are duplicate addresses removed?

Yes. Each unique address is listed once, in order of first appearance, and the count is the unique count. IPv6 comparison ignores case, since hexadecimal groups are case-insensitive.

📦 Embed this tool on your site

<iframe src="https://verystep.com/embed/ip-extractor/" title="IP Extractor" width="100%" height="520" loading="lazy" style="border:0"></iframe>

Free to use. The embed shows a small "Powered by Verystep" link.

First time embedding? Read the step-by-step guide →

More free tools