Skip to content
UniKit

Phone number extractor

Extract mainland-China mobile numbers from messy text: +86 or 86 prefixes and space- or hyphen-separated digits are normalised to 11 digits, with optional de-duplication and ascending or descending order plus match, unique and duplicate counts. Regex only, everything local.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Numbers may be written as 13800138000, 138 0013 8000, 138-0013-8000 or with a +86 / 86 prefix; output is always 11 digits, one per line.

Extracted numbers

Matched by the published number plan (starts with 1, second digit 3–9); a number flanked by other digits is not matched, so nothing is cut out of a longer run.

Paste text to see the extracted numbers

Matches: 0 · Output rows: 0 · Duplicates: 0

What this tool does

  • Pick every mobile number out of chat logs, spreadsheet columns or backend exports instead of filtering rows by hand
  • Normalise "+86 138 0013 8000" and "138-0013-8000" into plain 11-digit numbers so they can be imported again
  • Count how many numbers and how many duplicates a batch contains before deciding whether to send anything

Example

Input

客服:138 0013 8000,备用 +86-139-0013-9000

Output

13800138000
13900139000

Both numbers lose the country code and separators; a repeated number is printed once by default.

Frequently asked questions

Does it find landlines, 400 numbers or Hong Kong numbers?

No. The rule covers mainland-China 11-digit mobile numbers only (starting with 1, second digit 3–9). Landlines (010-…), 400/95 service numbers and numbers from Hong Kong, Macau, Taiwan or abroad are out of scope; use a different rule for those.

Do country codes and separators break the match?

They do not: a +86 or 86 prefix is stripped and spaces or hyphens between digits are allowed, with output normalised to 11 digits. The number must not be flanked by other digits, so an 11-digit fragment inside "1234567890123456" is not picked up.

How are duplicates handled?

De-duplication is on by default (each number printed once), and the statistics separate matches, output rows and duplicates. Turn it off and output rows equal matches with duplicates counted as 0.

Are all number ranges covered?

The rule encodes the published plan as "1 + 3–9 + 9 digits", so newer ranges such as 19x and 16x match as well. It does not map numbers to carriers and does not check whether a number exists — there is no lookup service behind it.

Is my text uploaded?

No. Matching runs as a regular expression inside your browser; the text never leaves the machine and no request is made.

Keywords:Phone number extractorregexoffline

Related tools