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 CSV

spreadsheet editor example

Prompt
"Format all phone numbers as (XXX) XXX-XXXX"
Before
#namephoneemail
1Alice Brown5551234567alice@email.com
2Bob Smith555.987.6543bob@work.co
3Carol Davis1-555-246-8135carol@company.io
After
#namephoneemail
1Alice Brown(555) 123-4567alice@email.com
2Bob Smith(555) 987-6543bob@work.co
3Carol Davis(555) 246-8135carol@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

Continue in the spreadsheet editor.

Use the spreadsheet editor, AI columns, and cleanup tools within the same Magic CSV account.

How to format phone numbers consistently in a CSV | Magic CSV