IP Address ExtractorExtract IPv4 and IPv6 addresses from text.

IP Address Extractor
Extract IPv4 and IPv6 addresses from text.
Paste Text
Paste text containing IP addresses.
Auto-Extract
IPv4 and IPv6 addresses are found and categorized.
Copy Results
Copy the extracted IP addresses.
What Is IP Address Extractor?
The IP Address Extractor scans text and finds both IPv4 and IPv6 addresses. IPv4 addresses are validated to ensure each octet is in the 0-255 range. IPv6 addresses in full notation are detected. Results are categorized by IP version and deduplicated. This tool is useful for network analysis, log parsing, security audits, and extracting server addresses from documentation.
Why Use Our IP Address Extractor?
- Extract both IPv4 and IPv6 addresses from text
- IPv4 octet validation (0-255 range)
- Results categorized by IP version
- Deduplication of found addresses
Common Use Cases
Log Analysis
Extract IP addresses from server logs for analysis.
Network Audit
Find all IP addresses mentioned in network documentation.
Security
Identify IP addresses in security reports or incident logs.
Configuration
Extract IP addresses from configuration files.
Technical Guide
The extractor uses separate patterns for IPv4 and IPv6. The IPv4 pattern uses word boundaries and validates each octet: /\b(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\b/g. This ensures octets do not exceed 255. The IPv6 pattern matches full notation: /(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}/g. A shortened IPv6 pattern also matches addresses with trailing colons indicating compressed format. Results are categorized as IPv4 or IPv6 and deduplicated using Set.
Tips & Best Practices
- 1IPv4 addresses are validated for correct octet ranges (0-255)
- 2Full and abbreviated IPv6 formats are detected
- 3Results are grouped by IP version
- 4Word boundaries prevent partial matches in longer numbers
Related Tools

Email Extractor
Extract all email addresses from text and list unique results.

Number Extractor
Extract all numbers from text with sum, average, min, and max statistics.

Phone Number Extractor
Extract phone numbers from text with international format support.

Regex Tester
Test regular expressions with live matching, highlighting, and group extraction.

Word Counter
Count words, unique words, characters, and see word frequency in any text.

Character Counter
Count characters with and without spaces, plus word, line, and paragraph counts.
Frequently Asked Questions
QDoes it validate IPv4 ranges?
QDoes it find shortened IPv6 addresses?
QCan it find CIDR notation?
QAre private/reserved IPs distinguished?
QDoes it handle IPv4-mapped IPv6 addresses?
About IP Address Extractor
IP Address Extractor is a free online tool from FreeToolkit.ai. All processing happens directly in your browser — your data never leaves your device. No registration required. No ads. Just fast, reliable tools.







