Free online text tool

Extract IP Address

Extract IP Address finds every IP address in your text and lists each one on its own line. Paste your text or log, click the button and copy the result. It is free and runs in your browser.

Extract IP Address Tool

0Character Count
0Character Count (without spaces)
0Word Count
0Sentence Count
0Paragraph Count
0Line Count

IP Address Extract Example

Before
192.168.0.1 is the default gateway that is used by many routers. Another IP address is 192.168.0.101
After
192.168.0.1
192.168.0.101

Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.

Suggest a New ToolProvide Feedback on This Tool

What does Extract IP Address do?

This tool finds the IP addresses in your text and puts each one on its own line. Everything else is removed from the result.

It finds IPv4 addresses, which are four numbers from 0 to 255 separated by dots, like 192.168.0.1. Numbers above 255 and dotted numbers with too few or too many parts are skipped, and a port after an address, as in 192.168.1.10:8080, is left out.

Use it to list the addresses in a server log, a config file, an email header or a report. Repeated addresses can be listed once.

Extract IP address examples

Each example shows the text before and after extracting. Duplicates are removed unless the option is off.

CaseBeforeAfter
Example sentence
192.168.0.1 is the default gateway that is used by many routers. Another IP address is 192.168.0.101
192.168.0.1
192.168.0.101
Several lines
Server A: 10.0.0.5
Server B: 10.0.0.6
10.0.0.5
10.0.0.6
Log line
203.0.113.7 - - [08/Nov/2026] "GET / HTTP/1.1" 200
203.0.113.7
Port number is left out
Connect to 192.168.1.10:8080
192.168.1.10
Invalid addresses are skipped
Bad: 256.1.1.1, 1.2.3 and 1.2.3.4.5. Good: 8.8.8.8
8.8.8.8
Duplicates removed
8.8.8.8, 1.1.1.1, 8.8.8.8
8.8.8.8
1.1.1.1
Duplicates kept (option off)
8.8.8.8, 1.1.1.1, 8.8.8.8
8.8.8.8
1.1.1.1
8.8.8.8

How to extract IP addresses from text

  1. 1
    Add your text
    Paste your text or log into the box, or import a text file.
  2. 2
    Choose duplicates
    Keep Remove duplicate addresses ticked to list each address once, or untick it to keep every match.
  3. 3
    Click Extract IP Address
    Every IPv4 address is found and put on its own line. Use Undo if you change your mind.
  4. 4
    Copy it
    Click Copy and paste the list where you need it.

When to extract IP addresses

Good for

Listing the addresses in server logs, config files, email headers and reports, and building a clean list to check, block or count.

Check first

Only IPv4 addresses are found, so IPv6 addresses such as 2001:db8::1 are not included. Addresses are not checked to see if they are in use, and the result replaces your text, so use Undo if you need the original.

Other tools

For IPv6 addresses try Ipv6 Address Extractor. To get web links try Extract Urls.

Extract IP address FAQ

What does the Extract IP Address tool do?

It finds every IP address in your text and puts each one on its own line. Everything else is removed from the result.

How do I extract IP addresses from text?

Paste your text or log, or import a text file, then click Extract IP Address. The addresses replace the text in the box. Click Copy to use them, or Undo to go back.

Which IP addresses are found?

IPv4 addresses, which have four numbers from 0 to 255 separated by dots, such as 192.168.0.1 or 8.8.8.8. IPv6 addresses are not extracted.

Are invalid addresses skipped?

Yes. A number above 255, such as 256.1.1.1, a group with fewer than four numbers, such as 1.2.3, and a longer dotted number, such as 1.2.3.4.5, are not returned.

What happens to a port number after the address?

It is not part of the result. In the text 192.168.1.10:8080 the tool returns 192.168.1.10.

Does it remove duplicate IP addresses?

Yes, by default. An address used more than once is listed once. Untick Remove duplicate addresses to keep every match, for example to count how often each address appears in a log.

What if my text has no IP address?

The text is left as it is and you see the message No IP addresses found.

Is this tool free and is my text private?

Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.

Looking for more text tools?

Browse Extract Tools

Last updated: 8 November 2026