Phone number formatter
Reformat mobile numbers into 3-4-4 or other groupings: strips a +86 / 0086 country code, spaces, hyphens and brackets, supports custom separators and groupings, and keeps unrecognized lines unchanged — all locally.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Formatted numbers
One number per line; unrecognized lines are printed unchanged.
Enter numbers to format
Text normalization only: no carrier lookup, no check that a number exists, and no support for country codes outside mainland China.
What this tool does
- Normalise numbers pasted from a spreadsheet into 3-4-4 so they are easy to proofread or re-import.
- Strip a +86 prefix, spaces or hyphens from an Excel export to get clean 11-digit strings.
- Format numbers for templates: switch to `-`, `·` or 3-3-5 grouping while keeping unrecognized lines visible instead of silently dropping them.
Example
Input
13800138000 +86 13912345678 not-a-number
Output
138 0013 8000 139 1234 5678 not-a-number
The second line loses its +86 country code and is counted in the statistics; the third line is not a mobile number, so it is printed unchanged.
Frequently asked questions
Which lines get formatted?
Lines that, after removing spaces, hyphens, dots and brackets, are exactly 11 digits starting with 1 and with a second digit of 3–9. Everything else is kept as-is and counted as unrecognized; tick "Drop unrecognized lines" to remove them instead.
How is the country code handled?
Only mainland China prefixes +86, 0086 and 86 are recognized, and only when the remainder is already a valid 11-digit number, so digits belonging to the number itself are never eaten. Other country or region codes (such as +852) are out of scope.
Can I choose a custom grouping?
The UI offers 3-4-4, 3-3-5, 4-4-3 and 4-3-4; the function itself accepts any digit string whose group sizes add up to 11 with at most four groups, such as 344 or 2261. Group sizes that do not sum to 11 raise an error instead of being silently truncated.
Does it verify that a number exists?
No. This is text normalization only: no carrier lookup, no online validation, no number portability handling, and no check whether the number is in service.
Are numbers uploaded?
No. Everything runs in the browser with no network requests and no local storage.
Keywords:3-4-4phone number formatterphone number groupingphone-formatter