How to format phone numbers consistently in a CSV
Your phone numbers are all over the place: some have dashes, some have parentheses, some are just digits. You need them all in the same format for your system.
This guide uses the spreadsheet editor. Jev adds decision columns instead.
Open Magic CSVspreadsheet editor example
Prompt
"Format all phone numbers as (XXX) XXX-XXXX"
Before
| # | name | phone | |
|---|---|---|---|
| 1 | Alice Brown | 5551234567 | alice@email.com |
| 2 | Bob Smith | 555.987.6543 | bob@work.co |
| 3 | Carol Davis | 1-555-246-8135 | carol@company.io |
After
| # | name | phone | |
|---|---|---|---|
| 1 | Alice Brown | (555) 123-4567 | alice@email.com |
| 2 | Bob Smith | (555) 987-6543 | bob@work.co |
| 3 | Carol Davis | (555) 246-8135 | carol@company.io |
Why use the spreadsheet editor for this?
- Standardize any phone format to your preferred style
- Works with international numbers too
- Clean up messy data from multiple sources
Related guides
- Standardize Date Formats
Convert any date format to your standard
- Format Currency Values
Standardize currency with proper symbols and decimals
Continue in the spreadsheet editor.
Use the spreadsheet editor, AI columns, and cleanup tools within the same Magic CSV account.