Skip to content
LookupOwl

Extract IP addresses from text

Paste a log, an email or a report and get every IP address in it, each once, with how often it appears and what kind it is, read in your browser.

Up to 10 MB in your browser, 1 MB without JavaScript or over the API. Nothing you paste is saved.

Without JavaScript, your text goes to our server for this one requestWe read it, show the result and keep nothing. To read a file or more text, turn JavaScript on.

Read defanged addresses such as 1.2.3[.]4 and 1(.)2(.)3(.)4 as the real address.

Which address families to return.

Return each address once, with a count of how often it appears.

Sort numerically instead of in order of first appearance.

Also find blocks written with a prefix length, such as 10.0.0.0/8.

Say what kind each address is (private, shared, documentation, global, and so on).

What it finds

The extractor reads your text with a scanner, not one giant search pattern, so a large log stays quick and a hostile paste cannot make it hang. It finds:

  • IPv4 addresses, with or without a port: 203.0.113.45 and 100.64.9.1:443.
  • IPv6 addresses in any form: compressed (2001:db8::17), in brackets with a port ([2001:db8::1]:443), with an IPv4 tail (::ffff:192.0.2.1) or with a zone (fe80::1%eth0).
  • Blocks written with a prefix length: 10.0.0.0/8 and 2606:4700::/32. Turn this off and the prefix is dropped, so you get the address alone.
  • Defanged addresses, the way threat reports write them so a link cannot be clicked by mistake: 192.0.2[.]99, 198(.)51(.)100(.)23 and hxxp://198[.]51[.]100[.]23/. They are read back as the real address, and the row says what was written.

Each address is listed once with a count and the first lines it appears on, and has a kind: public, private, shared (carrier-grade NAT), documentation, loopback, link-local, multicast and so on. The kinds come from the IANA special-purpose registries; the IP type checker explains each one.

What it leaves out on purpose

A log is full of numbers that look like addresses and are not. The extractor lists them apart, under "things that looked like addresses and were left out", each with one reason, so you can see what was skipped and copy any of it by hand:

  • A version string: OpenSSL 1.1.1.1 is four numbers, but it is a version, not an address. A short list of words before the number (version, build, release, openssl and a few more) gives it away.
  • A number above 255: 300.1.2.999 cannot be an address.
  • Three numbers or five: 10.0.12 is missing a part, and 1.2.3.4.5 has one too many.
  • A leading zero: 010.1.1.1 is read as octal by some programs (it would be 8.1.1.1), so it is not reported as an address. The IP validator shows how each program reads it.
  • A number stuck to letters or to a longer name.

Where your text goes

With JavaScript on, the text is read in your browser and nothing you paste or drop is sent to us or saved. It works offline. Big input (over about 1 MB) is read in a separate worker so the page stays usable, with a status line and a Cancel button.

Without JavaScript the form sends your text to our server for that one request. We read it, show the result and keep nothing: it is not stored, not logged and not cached, and the page address has no query. Logs often hold other people's addresses, which is why the browser path is the default.

Limits and options

WhereTextResults
In your browserUp to 10 MBFirst 10,000 addresses listed; the counts cover all of them
Without JavaScript, API and MCPUp to 1 MBUp to 10,000 addresses

Options: read defanged addresses, IPv4 only or IPv6 only, each address once (with a count) or every mention, sort by address instead of order of appearance, find blocks, and say what kind each address is. For scripts and AI assistants the same tool is ip_extract on the API and over MCP.

What to do with the list

Nothing is carried from the text to those tools: copy the addresses and paste them there.

Questions people ask

What is a defanged address?

A defanged address has its dots wrapped, as in 1.2.3[.]4, so it is not clickable and a filter does not match it. Threat reports write them this way. The extractor turns them back into the real address and says it did.

How much text can it read?

Up to 10 MB in your browser, and up to 1 MB without JavaScript or over the API. A list longer than 10,000 addresses is cut there and says so; the counts still cover all of it.

Why was an address left out?

It looked like one but was not: a version string, a number above 255, a missing or extra part, a leading zero or a number stuck to letters. Each is listed with its line and the reason.

Is my log sent anywhere?

Not with JavaScript on: it is read in your browser. Without JavaScript it goes to our server for one request and is not kept.

Does it find IPv6 addresses?

Yes, in every written form: compressed, with brackets and a port, with an IPv4 tail, and with a zone. Short ones such as a::b are reported too, with the line number and kind so you can judge.

Use it from AI, the API or the command line

Every LookupOwl tool is also a free API and an MCP tool, with no key and no account. This one is ip_extract. Please be kind to the rate limits.

curl
curl "https://lookupowl.com/api/v1/tools/ip-extract"
MCP
claude mcp add --transport http lookupowl https://lookupowl.com/mcp