deftools.io Text & Data

Text Extractor

Extract emails, URLs, phone numbers, IP addresses, dates, hex colors, hashtags, and more from any text. Paste content and pull out structured data instantly.

Extract
Paste text above, then click an extractor to pull structured data from it.
Try a sample

About this tool

Extract structured data from any block of text. Paste a document, email body, log file, web page, or any free-form text, then click a category to pull out every match: email addresses, URLs, IP addresses (v4 and v6), MAC addresses, phone numbers, dates, times, hex color codes, UUIDs, credit card numbers, hashtags, @mentions, or plain numbers. Use Extract all to run every extractor at once and group results by type.

When it's useful: pulling contact details from an email thread, harvesting URLs from a web page, finding all IP addresses in a server log, extracting hashtags from social media posts, or collecting hex colors from a CSS file.

Example: pasting Contact support@example.com or visit www.shop.io — call +1 (555) 123-4567 and clicking Emails returns support@example.com. Clicking Extract all returns all three items grouped by type.

Options let you toggle duplicate removal (on by default), sort results alphabetically, and switch case sensitivity. Every match is highlighted in the source text so you can see exactly where it was found.

FAQ

How accurate is the phone number extraction?

Phone number patterns vary enormously across countries. This tool uses a general pattern that catches common international and US-style formats like +1 (555) 123-4567, 555-123-4567, or 5551234567. It may miss or misidentify numbers in unusual formats. For mission-critical extraction, validate results manually.

Does the credit card extractor validate card numbers?

No — it finds sequences that look like credit card numbers (16 digits, optionally grouped with spaces or hyphens). It does not run a Luhn checksum or identify the card issuer. Treat results as candidates that need further validation.

What is the difference between this and the Regex Tester?

The Regex Tester is for writing and testing your own regular expressions. This tool has built-in patterns for common data types, so you click a button instead of writing a regex. If you need a custom pattern not covered here, use the Regex Tester.

Why are some IPv6 matches incomplete?

IPv6 addresses with embedded IPv4 endings or zone IDs can be tricky for pattern matching. The tool catches the most common formats including compressed :: notation, full 8-group notation, link-local with zone IDs, and IPv4-mapped addresses. Edge cases in unusual notation may be missed.

Can I extract multiple types at once?

Yes — click "Extract all" to run every extractor simultaneously. Results are grouped by type (emails, URLs, IPs, etc.) and each group shows its count. Duplicates across types are removed automatically.

Related text & data tools

Copied!