Losing contacts on a smartphone is one of the most unpleasant situations for a user. Even if you regularly sync data with Google Account, sometimes you need a physical copy of your phone book as a file. For example, to transfer to another phone, backup or import into a CRM system. But where exactly does Android store contacts as a file, and how to export them correctly?

Unlike iOS, where contacts are stored in a single file AddressBook.sqlitedb, on Android the data is distributed between several sources: internal memory, Google Contacts, SIM card and third-party applications manufacturers. In this article we will analyze all possible ways to extract contacts as VCF, CSV or JSON filesincluding hidden system folders and tools for developers.

It is important to understand that the storage format depends on the Android version and firmware. For example, on Samsung One UI the path to contact files may differ from pure Android by Pixel or Xiaomi MIUI. We will take these nuances into account and provide universal solutions.

1. Standard export of contacts via Google Contacts

The most reliable and easiest way is to use the built-in export function in the application "Contacts"** (formerly Google Contacts). This method works on all devices with Android 5.0+ and does not require root access. The exported file will be in .vcf (vCard) format, which is supported by most devices and services.

Instructions:

  1. Open the application "Contacts"** (icon with a silhouette person).
  2. Tap on the three horizontal lines (menu) โ†’ Settings โ†’ Manage contacts.
  3. Select Export contacts (on some firmware - Import/Export).
  4. Specify which contacts to export: only from the device, only from Google or all.
  5. Click Export to .vcf file and select a save location (for example, Downloads or Google Drive).

The finished file will be called contacts.vcf or similar. It can be sent by mail, downloaded to the cloud or copy to your computer. Please note: if you have a third-party contacts application installed (for example Truecaller or Drupe), the export path may be different.

Make sure all contacts are synced with Google|Check the free space on your device|Turn off the VPN (may block access to Google)|Close other applications running with contacts-->

โš ๏ธ Attention: On some firmwares (for example, ColorOS from Oppo/Realme) the export option may be hidden in the submenu Advanced or Backup. If you donโ€™t find the item, update the Contacts application via Google Play.

2. Searching for a contacts file in Android system folders

Android stores contacts in a database contacts2.db, but you cannot copy it directly - you need root access or access via ADB. However, there are workarounds for extracting data without superuser rights.

Where to look:

  • ๐Ÿ“ /data/data/com.android.providers.contacts/databases/contacts2.db โ€” main contact database (requires root).
  • ๐Ÿ“ /sdcard/ or /storage/emulated/0/ โ€” backup copies in format .vcfif you have previously exported contacts.
  • ๐Ÿ“ Application folders: /Android/data/com.google.android.contacts/ - sometimes contain temporary files.

To access these folders:

  1. Use a file manager with root support (for example, Root Explorer or FX File Explorer).
  2. Connect your phone to the PC and use ADB Pull:
    adb pull /data/data/com.android.providers.contacts/databases/contacts2.db

    (requires enabled mode USB debugging in the developer settings).

If you don't have root access, an alternative is to use applications like Contact Backup & Restorethat create backups in accessible folders (for example, /sdcard/ContactBackup/).

How to convert contacts2.db to a readable format?

File contacts2.db is a database SQLite. To open it on a PC:

1. Download the app DB Browser for SQLite.

2. Open the file and export the data to CSV.

3. For automation, use a Python script with the library sqlite3.

Extraction method root access required? File format Complexity
Export via Google Contacts โŒ No VCF โญ (easy)
Copying contacts2.db โœ… Yes SQLite (DB) โญโญโญ (difficult)
Backup applications (for example, Super Backup) โŒ No VCF/XML โญโญ (average)
ADB Pull โœ… Yes (or debugging) DB/VCF โญโญโญ (for advanced)

3. Exporting contacts via SIM card

If you need to transfer contacts to another phone without the Internet, you can use SIM card. This method is suitable for older devices or when there is no access to a Google Account. Please note that the SIM card stores a limited number of contacts (usually up to 250) and does not support. photos or additional fields.

How to export:

  1. Open the application "Contacts"**.
  2. Go to Settings โ†’ Manage contacts โ†’ Import/Export.
  3. Select Export to SIM card.
  4. Specify which contacts to copy (for example, only from the device).
  5. Confirm the export. The contacts will be saved in the SIM card memory.

To extract contacts from the SIM card to a file:

  • ๐Ÿ“ฑ Insert the SIM into another phone and export the contacts to .vcf.
  • ๐Ÿ’ป Use SIM reader for PC (for example, SIM Card Data Recovery) and save the data in CSV.
โš ๏ธ Attention: Not all modern smartphones support export to a SIM card. For example, to Google Pixel and some models Samsung this option may not be available. Check the menu of your device.

4. Using third-party backup applications

If the built-in Android tools do not suit you, you can use third-party applications. They offer advanced features: automatic backup, export to various formats (including Excel) and cloud storage.

Top 3 applications for exporting contacts:

  • ๐Ÿ”„ Super Backup & Restore - saves contacts, SMS and call logs in .vcf and .xml. Supports sending by email.
  • โ˜๏ธ Contacts Backup โ€”automatically downloads backups to Google Drive or Dropbox.
  • ๐Ÿ“Š My Contacts Backup โ€”exports to CSV for import into Excel or CRM (for example, Bitrix24).

Example of working with Super Backup:

  1. Install the application from Google Play.
  2. Open it and select Contact.
  3. Click Backup and specify the save location (for example, Internal memory or Google Drive).
  4. The file will be saved as contacts_YYYYMMDD.vcf.

The advantage of third-party applications is the ability to set up an automatic backup schedule. For example, you can set up daily saving of contacts to the cloud so that you never lose data.

Via Google Account|Using third-party applications|Export to SIM card|Manual export to VCF|I donโ€™t make a backup-->

5. Extracting contacts via ADB (for advanced users)

If you need to get a complete contact database without root access, you can use Android Debug Bridge (ADB). This method is suitable for developers or users familiar with the command line.

Step-by-step guide:

  1. Enable Developer mode on your phone: go to Settings โ†’ About phone and tap on Build number.
  2. Go back to Settings โ†’ System โ†’ For developers and turn on USB debugging.
  3. Connect your phone to the PC and open a terminal (or Command Prompt on Windows).
  4. Enter the commands:
    adb devices
    

    adb shell content query --uri content://com.android.contacts/data > contacts_backup.csv

    This will create a file contacts_backup.csv with all contacts.

To export to format .vcf use the command:

adb shell content query --uri content://com.android.contacts/contacts > contacts.vcf

ADB also allows you to extract contact metadatasuch as creation dates, groups and related accounts. However, this will require understanding the Android database structure.

๐Ÿ’ก

If ADB does not recognize the device, update the USB drivers for your smartphone model. On Windows, use the app Zadig to install the correct driver adb interface.

6. Where contacts are stored in cloud services (Google, Samsung, Xiaomi)

If you use sync with the cloud, your contacts are duplicated on the manufacturerโ€™s servers. This allows you to restore them even after resetting the phone to factory settings.

How to find and download contacts from the cloud:

  • ๐ŸŒ Google Contacts:
    1. Go to the website contacts.google.com.
    2. In the left menu select Export.
    3. Specify the format (Google CSV or vCard) and click Export.
  • ๐Ÿ“ฑ Samsung Cloud:
    1. Open Settings โ†’ Accounts and archiving โ†’ Samsung Cloud.
    2. Select Contact โ†’ Export.
    3. The file will be saved in Internal memory in a folder Samsung/Backup.
  • ๐Ÿ”ด Xiaomi Cloud:
    1. Go to Settings โ†’ Mi Account โ†’ Mi Cloud โ†’ Contacts.
    2. Click Export and select format .vcf.
  • Cloud services also allow recover deleted contacts. For example, Google Contacts has a function to undo changes for the last 30 days. To do this, click on the gear (Settings) โ†’ Cancel changes.

    โš ๏ธ Attention: When using cloud services, check if contact synchronization is enabled. On some firmware (for example, Huawei EMUI) it may be disabled by default to save battery power.

    7. How to convert a contacts file to other formats

    Exported file .vcf or .csv may require conversion for import into other systems. For example, for loading into Excel, Outlook or 1C.

    Conversion methods:

    • ๐Ÿ“‘ VCF โ†’ CSV/Excel:
      1. Open .vcf to Google Contacts (import โ†’ export to CSV).
      2. Use online services like VCF to CSV Converter (for example, bitmesra.in).
    • ๐Ÿ”„ CSV โ†’ VCF:
      1. Use Excel: open CSV, save as Delimited table and rename to .vcf.
      2. Applications like CSV to vCard (available c Google Play).
  • ๐Ÿ“Š Export to JSON:
    1. For developers: use a Python script with the library vcf2json.
    2. Service ConvertCSV.com supports conversion of CSV to JSON.
    3. When converting, pay attention to the file encoding. Select the correct display of the Cyrillic alphabet UTF-8. If crappy text appears in the file, open it in Notepad++ and resave with the correct encoding.

      ๐Ÿ’ก

      VCF format (vCard) is a universal standard for exchanging contacts. It is supported by all modern smartphones and services, so it is preferable for backup.

      8. Common errors and their solutions

      When exporting contacts, users often encounter problems. Let's look at typical errors and ways to eliminate them.

      Problem Possible cause Solution
      The โ€œExportโ€ option is not visible Outdated version of the application โ€œContactsโ€ Update the application in Google Play
      Empty file is being exported Contacts are not synchronized with Google Check the synchronization settings in Settings โ†’ Accounts
      Out of memory error Too many contacts or not enough space on the device Export in parts or save to the cloud
      VCF file does not open Corrupted during saving Repeat the export or use another application
      Not all contacts were exported Filter by groups or accounts In the export settings, select โ€œAll contactsโ€

      If none of the methods helped, try:

      • ๐Ÿ”ง Reset the Contacts application settings (Settings โ†’ Applications โ†’ Contacts โ†’ Storage โ†’ Reset).
      • ๐Ÿ“ฑ Restart the phone and repeat the export.
      • ๐Ÿ’ฌ Contact the manufacturer's support (for example, Samsung Members or Mi Community).
      โš ๏ธ Attention: On some firmware (for example, Flyme from Meizu) contacts can be stored in proprietary format. In this case, use proprietary backup tools from the manufacturer.

      FAQ: Frequently asked questions

      Is it possible to export contacts without a Google Account?

      Yes, you can use:

      • Export to SIM card (limited to 250 contacts).
      • Third-party applications like Super Backupthat save data locally.
      • ADB commands for retrieving the database contacts2.db.

    However, without a Google Account, you lose automatic synchronization and cloud backup.

    Where is the contacts file stored on Samsung Galaxy?

    On devices Samsung with firmware One UI contacts are stored in:

    • /data/data/com.android.providers.contacts/databases/contacts2.db (requires root).
    • Backups in /sdcard/Samsung/Backup/ (if backup is enabled c Samsung Cloud).
    • To export without root, use the built-in application "Contacts"** โ†’ Settings โ†’ Contact management โ†’ Export/Import.

    How to transfer contacts from Android to iPhone?

    The most reliable way:

    1. Export contacts from Android to a file .vcf (via Google Contacts).
    2. Send the file by email or download c iCloud.
    3. On iPhone, open the file .vcf - contacts will be automatically added to the phone book.
    4. Alternative: synchronize contacts with Google Account on Android, then add this account to iPhone (Settings โ†’ Contacts โ†’ Accounts โ†’ Add a Google account).

    Is it possible to recover deleted contacts?

    Yes, if:

    • The contacts were synchronized with Google Account โ€” restore them on the site contacts.google.com (menu Cancel changes).
    • You have a backup in Samsung Cloud, Xiaomi Cloud or another cloud.
    • You previously exported contacts to a file .vcf or .csv.

    If synchronization has not been configured, try data recovery apps (for example, Dr.Fone or EaseUS MobiSaver), but they require root access and do not guarantee 100% results.

    Why does the exported VCF file not open on a PC?

    Possible reasons:

    • The file was damaged during saving - repeat the export.
    • Inappropriate app for opening - use Google Contacts, Outlook or Thunderbird.
    • Problems with encoding - open the file in Notepad++ and resave in UTF-8.
    • If the file is still the same does not open, try converting it to CSV using online services.