How to transfer contacts from Xiaomi phone to your computer via USB: 3 proven ways

Why You Should Move Your Contacts to Xiaomi and What Risks Are There

Transfer contacts from Xiaomi smartphone to computer via USB-cable is a challenge that users face when buying a new phone, resetting settings, or needing to back up. Unlike cloud services like Google Contacts or Mi Cloud, local copying is done through a network of devices. USB gives full control over data, but requires accuracy: wrong actions can lead to loss of information or duplication of records.

The main reasons for this transfer are:

  • ๐Ÿ”„ Migration to a new phone without being linked to the cloud
  • ๐Ÿ’พ Creating a backup copy before resetting MIUI factory-wise
  • ๐Ÿ“Š Import of contacts CRM-System or Excel for analysis
  • ๐Ÿ”’ Privacy โ€“ Data is only stored on your PC

There are pitfalls, however, such as exporting to.vcf (vCard) format, where some fields are lost, such as contact notes or custom tags (if created in Mi Contacts), and Xiaomi phones with MIUI 14 and later have their USB file system disabled by default in File Transfer mode, which must be enabled manually.

Preparing Xiaomi phone for contact transfer

Before connecting to a PC, you need to configure your smartphone to avoid problems with device recognition or blocking access to data.

  1. ๐Ÿ”“ Unlock the phone screen and connect it to the original computer USB-cable (cheap cables often do not support data transmission).
  2. ๐Ÿ“ฑ A notification will appear on the phone screen "USB for file transfer" - tap it and select "File transfer mode" (MTP).
  3. ๐Ÿ”ง If you're optional MTP Inactive, go to Settings โ†’ Connection and sharing โ†’ USB and enable "File Transfer" manually.
  4. ๐Ÿ›ก๏ธ Some models (e.g. Xiaomi 13 Pro or Redmi Note 12) require additional permission to access the "Storage" in the Files settings".

Developer mode is enabled (optional, but useful for debugging)|Used by the original USB-cable|The phone allowed access to storage for PC|Drivers are installed on the PC ADB (Windows)-->

On Windows 10/11 computers, drivers for Xiaomi are installed automatically, but if the device is not identified, download Mi PC Suite or ADB drivers manually. MacOS or Linux users may need an Android-file-transfer package.

โš ๏ธ Note: If you connect Xiaomi to your computer for the first time, a request for debugging permission will appear on the phone screen USB (If the developer mode is on, don't confirm it unless you plan to use it. ADB โ€” It's an unnecessary safety risk.

Method 1: Export contacts to a VCF file via the Contacts app

The easiest method is to export contacts to the universal.vcf (vCard) format directly from the standard Mi Contacts app, which works on all Xiaomi phones regardless of the MIUI version.

Instructions:

  1. Open the Contacts app on your phone.
  2. Tap it on. โ‹ฎ (three dots) in the upper right corner and select "Contact management".
  3. Scroll down and click "Import/Export Contacts" โ†’ "Export to File".
  4. Select the accounts you want to export from (e.g., โ€œPhoneโ€ or โ€œGoogleโ€).
  5. Specify a folder to save (for example, โ€œDownloadsโ€) and confirm export.

A file with the.vcf extension will appear in the selected folder. Now connect the phone to your PC in MTP mode, find this file through Windows Explorer (or Finder on a Mac) and copy it to your computer.

๐Ÿ’ก

If there are many exported contacts (more than 500), break them into several. VCF-Some programs (such as Outlook) do not handle large vCard files well.

File formatAdvantagesDeficiencies
.vcf (vCard)Universal format, supported by all devicesNotes and user fields may be lost
.csv (Excel)Convenient for editing in tablesRequires conversion, not all fields are saved
.xml (Android Backup)Stores all data, including call historyIt is difficult to open without specialized programs.

Method 2: Copying a contact database through a file manager

For power users, there is an alternative method to copy the contact database directly from the Android system folder, which allows you to save all fields, including notes and tags that are lost when exported to VCF. However, this method requires root rights or access to hidden folders through ADB.

If you donโ€™t have root, follow the following steps:

  1. Connect your phone to your PC in MTP mode.
  2. Enable "Show Hidden Files" in Windows Explorer settings.
  3. Go along the way: Internal Memory โ†’ Android โ†’ Data โ†’ com.android.providers.contacts โ†’ databases
  4. Copy the contacts2.db file to your computer.

To open this file, use programs like DB Browser for SQLite or SQLiteStudio. Note: the database contains all contacts, including remote ones (they are marked as deleted=1).

โš ๏ธ Note: Do not edit the file contacts2.db A mistake in the database structure can lead to the loss of all contacts on the phone.

How to get contacts out of contacts2.db without SQL-knowledge?
Use the online service SQLite Browser: 1. Open the file. contacts2.db programmatically. 2. Go to the tab "Data review". 3. Select a table "raw_contacts" โ€” Here's where the basic data is stored. 4. For export, click File โ†’ Exports โ†’ Table like CSV-file.

Method 3: Sync with Mi PC Suite (official software from Xiaomi)

If previous methods seem complicated, use the official Mi PC Suite utility. the program automatically recognizes the connected Xiaomi, offers backup of contacts and other data, as well as recovery from the backup.

Step-by-step:

  1. Download Mi PC Suite from the official website and install it on PC.
  2. Connect your phone via USB by selecting File Transfer mode.
  3. In the program, go to the "Backup" section.
  4. Check "Contacts" and click "Create backup".
  5. After the process is complete, the backup will be saved to the MiPhoneBackup folder on the C: disk.

The advantage of this method is automatic backup updates when you reconnect your phone, but there are also disadvantages: the program does not export contacts to a readable format (for example, VCF or CSV), but saves them in a proprietary format Xiaomi.

Exports to VCF via the โ€œContactโ€ annex"|Copying the database contacts2.db|Use of Mi PC Suite|Cloud synchronization (Google/Mi Cloud)|Another option-->

Solving common problems when transferring contacts

Even when following instructions, users often encounter errors, and here are the most common ones and ways to fix them:

  • ๐Ÿšซ Computer can't see phone: Try another USB-cable or port. Update drivers through Device Manager (Windows).Reboot your phone and PC.
  • ๐Ÿ”„ Contacts are not fully exported: Check if all accounts are selected from the export menu. Delete duplicate contacts via Settings โ†’ Contacts โ†’ Combining and correcting.
  • ๐Ÿ“‚ Can't find the file. contacts2.db: Make sure that the hidden folder display is enabled. ADB To extract the file (command: adb pull) /data/data/com.android.providers.contacts/databases/contacts2.db).

If your phone is permanently disconnected when connecting via MTP, try:

  1. Disable battery optimization for Media application (Settings โ†’ Applications โ†’ Application Management โ†’ Media โ†’ Battery โ†’ No restrictions).
  2. Enable Developer Mode and disable Debugging MTP (Settings โ†’ About Phone โ†’ MIUI Version (Tap 7 times) โ†’ Additional โ†’ For Developers โ†’ Debugging MTP).

๐Ÿ’ก

If none of these methods work, check to see if you block access to files from the antivirus on your PC or the โ€œPersonal Data Protectionโ€ function in MIUI (located in Settings โ†’ Privacy).

How to import PC contacts back to Xiaomi

If you need to return contacts from your computer to your phone (for example, after resetting your settings), use the reverse process:

For.vcf files:

  1. Copy the file to your phone into any folder (such as Downloads).
  2. Open the "Contact" appendix" โ†’ โ‹ฎ โ†’ Contact management โ†’ Imports/Exports โ†’ File-based import.
  3. Select the copied.vcf file and confirm the import.

For the base. contacts2.db:

  1. First, back up your current database (rename it) contacts2.db into contacts2_backup.db).
  2. Copy the saved file back to the databases folder.
  3. Reboot the phone.

โš ๏ธ Note: When importing from VCF Before the procedure, delete all existing records or use the option "Combine with existing" (if available).

FAQ: Frequent questions about moving contacts with Xiaomi to PC

Can I transfer contacts without USB-cable?
Yes, there are several alternative ways: ๐ŸŒ Through Google Contacts: sync your contacts to your Google account, then export them to your PC via contacts.google.com. โ˜๏ธ Mi Cloud: Upload contacts to Xiaomi cloud, then download archive to your computer. ๐Ÿ“ฒ Bluetooth or Wi-Fi: Use apps like Send Anywhere or Xender.
Why do VCFโ€™s photos of contacts disappear when exporting?
VCF 2.1 (used by default in MIUI) does not support attachments, including photos. To save avatars: Use VCF 3.0 (requires third-party software, such as Contacts+). Export contacts via Google Contacts - there are photos saved. Copy photos separately from the /Pictures/Contacts folder.
How to transfer contacts from Xiaomi to iPhone?
For migration to iPhone: Export your contacts to VCF (as described above). Send the file to the mail or upload to iCloud. On iPhone, open the.vcf file - contacts will be added automatically. Alternative: sync your contacts to Google Account, then add this account to your iPhone in Settings โ†’ Contacts โ†’ Accounts.
Can I transfer my phone history with my contacts?
Call history is stored separately from contacts and not exported through standard means. To save it: Use Mi PC Suite (backup includes history). Install Call Logs Backup & Restore from Google Play. Copy the calllog.db database from /data/data/com.android.providers.contacts/databases (root required).
What to do if contacts on the PC are displayed by Krakozabras?
An encoding problem arises when you open a VCF or CSV in inappropriate programs. Solutions: Open the file in Notepad++ and convert the encoding to UTF-8. Import VCF to Outlook or Google Contacts - they handle the encoding correctly. For CSV, use Excel with the encoding setting when you import.