Extract IP addresses from text
List every IPv4 address found in a text, one per line.
Editor
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
- Paste the log or text.
- Select Apply.
- 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
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
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.
Related tools
Tools people often use together with this one.
- Extract links from text
List every web link found in a text, one per line.
- Extract numbers from text
List every number found in a text, one per line.
- Sort lines
Sort lines A to Z, Z to A, by number or by length.
- Extract email addresses from text
Pull every email address out of a text, one per line.
- Extract hashtags and mentions
Pull #hashtags and @mentions out of a text.
- Remove empty lines
Delete blank lines from your text in one click.