Skip to main content
FixLines

Extract IP addresses from text

List every IPv4 address found in a text, one per line.

Editor

Ln 1, Col 10 lines0 words0 characters

Extract IP addresses from text: what it does

Pull IPv4 addresses out of server logs, firewall exports or notes. Only valid addresses are returned, each part between 0 and 255, so a string like 999.1.1.1 is ignored. Each address appears once, in the order it was found.

Extract IP addresses from text: how to use it

  1. Paste the log or text.
  2. Select Apply.
  3. Copy the list of IP addresses.

Extract IP addresses from text: when to use it

  • Pull the client addresses out of a web server or firewall log to count or block them.
  • Collect the addresses mentioned in an incident report or a chat.
  • Build an allow list from a configuration file or an email.

Extract IP addresses from text: examples

Collect addresses from a log

Input

Login from 192.168.1.10 and 10.0.0.5, retry from 192.168.1.10

Result

192.168.1.10
10.0.0.5
Addresses from a firewall log

Input

DROP src=203.0.113.9 dst=198.51.100.2
ACCEPT src=203.0.113.9 dst=192.0.2.1

Result

203.0.113.9
198.51.100.2
192.0.2.1

Extract IP addresses from text: questions and answers

Does it find IPv6 addresses?

Not yet. The tool extracts IPv4 addresses in dotted format only.

Why was an address ignored?

An IPv4 address needs four parts from 0 to 255, so a value such as 300.1.1.1 is not valid and is skipped.

Are private addresses included?

Yes. Every valid IPv4 address is listed, including private ranges such as 10.x.x.x and 192.168.x.x.

Is an address with a port or a mask found?

Yes. The address part is extracted; the port after a colon or the mask after a slash is left out.

Is my text sent to a server?

No. Everything runs in your browser on your own device, so your text never leaves it.

Tools people often use together with this one.

More in ExtractBrowse all text tools