I am using Samsung Galaxy S2. Is there any automated way or app to change all my contacts with appropriate country code into canonical form.

I just found that lot of my contact are there without the country code. And few apps like whatsapp, viber etc does not recognize the contact unless + is appended with country code.

Is there any better way to do it than editing all my contacts?

4 Answers 4


You can try syncing your phone contacts with Gmail, preferably into a group.

Then use Gmail's web interface to export that group into a Google CSV format, use a text editor to replace ",00xxx" with ",+xxx" (and do any other editing while you're at it) in the CSV file, and reimport into Gmail.

  • +1 for export>edit>import. The 'replace all' function of text editors is about as easy as it gets.
    – Mr. Buster
    Jan 11, 2012 at 1:08

In case you want to append country code to your contacts or append +91, here is best way to do and be sure of it done:

  1. Open the CSV, XLS, or XLSX file as Google spreadsheet
  2. Edit > Find and replace
  3. Select the option Search using regular expression
  4. Find ^91 will search all numbers in sheet beginning with 91. In replace, put +91
  5. Similarly, do for all contacts of yours with other country codes
  • I'm afraid that method doesn't work to add the appropriate country code, as the OP needs. Unless the appropriate code is already there, and just the "+" is missing -- the question indicates rather otherwise (country codes completely missing). However, if all contacts are from the same country, and the code is missing everywhere, replacing ^([0-9]) with +91-\1 (assuming "+91" as the appropriate country code) would do it :)
    – Izzy
    Apr 5, 2013 at 7:28

There is an Android app called Right Number (source available) to do exactly what you want. It reformats all the numbers to a canonical form, and then automatically adds the local prefixes whenever you do a call.

Disclaimer: I know personally one of the authors of that app.


How about Easy Prefix Country Code?. This adds country code to all contacts selectively.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .