Categories

Phone Number Extractor

Extract phone numbers from mixed text with support for multiple countries and formats

Key Facts

Category
Text Processing
Input Types
textarea, select, checkbox
Output Type
text
Sample Coverage
4
API Ready
Yes

Overview

The Phone Number Extractor is a text processing tool that automatically identifies and extracts phone numbers from mixed content. It supports multiple countries including China, USA, and Canada, and allows you to filter, deduplicate, and export the results in various formats.

When to Use

  • When you have a block of text containing phone numbers in different formats and need to isolate them.
  • To filter phone numbers by specific country codes, such as extracting only Chinese mobile numbers.
  • When you want to remove duplicate phone numbers from a list to ensure data accuracy.

How It Works

  • Paste or type the text containing phone numbers into the input field.
  • Select a country filter to target specific regions or use auto-detect for all countries.
  • Enable the 'Remove Duplicates' option to eliminate repeated numbers.
  • Choose an export format like list, CSV, or JSON to save the extracted numbers.

Use Cases

Extracting contact numbers from customer emails for CRM data entry.
Cleaning and standardizing phone numbers in a marketing database.
Identifying phone numbers in legal documents or reports for compliance checks.

Examples

1. Extract Chinese Mobile Numbers from a Report

Data Analyst
Background
A data analyst has a PDF report with mixed text including Chinese phone numbers in various formats.
Problem
Need to extract all Chinese mobile numbers to update a contact list.
How to Use
Upload the text content, set the country filter to 'China', and enable duplicate removal.
Example Config
Country Filter: China, Remove Duplicates: Yes, Export Format: CSV
Outcome
A clean CSV file with unique Chinese phone numbers ready for import.

2. Process Customer Feedback for Contact Info

Background
Customer support team receives feedback forms with text containing phone numbers from different countries.
Problem
Quickly identify and list all phone numbers to follow up with customers.
How to Use
Paste the feedback text, use auto-detect country filter, and export as a list.
Outcome
A numbered list of all phone numbers extracted, sorted by appearance.

Try with Samples

video, text

Related Hubs

FAQ

Which countries are supported?

The tool supports auto-detection for all countries, with specific filters for China, USA/Canada, and Canada.

Can I export the results?

Yes, you can export the extracted phone numbers as a numbered list, CSV file, JSON format, or choose not to export.

How does duplicate removal work?

When enabled, the tool identifies and removes duplicate phone numbers based on their normalized format.

What formats of phone numbers are recognized?

It recognizes common formats including international, national, and local variations for supported countries.

Is there a limit to the input text size?

The tool can handle typical text inputs, but for very large texts, processing might take longer.

API Documentation

Request Endpoint

POST /en/api/tools/phone-number-extractor

Request Parameters

Parameter Name Type Required Description
textInput textarea Yes -
countryFilter select Yes -
deduplicate checkbox No -
exportFormat select Yes -

Response Format

{
  "result": "Processed text content",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}
Text: Text

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-phone-number-extractor": {
      "name": "phone-number-extractor",
      "description": "Extract phone numbers from mixed text with support for multiple countries and formats",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=phone-number-extractor",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]