How to reset Xiaomi smartphone to factory settings: all ways of 2026

Why you need to reset Xiaomi to factory settings and when to apply it

Resetting Xiaomi to factory settings is a radical but effective way to bring the device back to its original health, which removes all user data, apps and settings, returning the smartphone to a β€œout of the box” state.

First, if the device has started to slow down or overheat for no apparent reason. Over time, the MIUI operating system has become clogged with cache, remnants of deleted applications and fragmented files. Even regular cleaning through Settings β†’ Memory does not always solve the problem. Second, a reset is necessary before selling or transferring the phone to another user, to ensure that your personal data (photos, messages, passwords) does not fall into the wrong hands. And finally, the third case is critical system failures when the phone does not turn on, cyclically reboots or emits a MIUI crashed error.

It is important to understand the difference between soft and hard resets. Soft resets (via the settings menu) save the firmware version and do not affect system partitions. Hard resets (via Fastboot or Recovery) reinstall the firmware completely, which can help with serious system damage. In this article, we will discuss both options, and also explain how to bypass the Mi Account lock after the reset.

Preparation for resetting: what to do before the procedure

Before you start resetting, do a few critical steps, and ignoring this step can lead to data loss without recovery or even to the β€œbrick” of the device.

First, back up. Use the built-in MIUI (Settings β†’ About Phone β†’ Backup) or third-party services like Google Drive, Mi Cloud. Note: backup via Mi Cloud does not store all data (for example, Wi-Fi passwords and some application settings may not be restored). For a full copy, it is better to connect the phone to your PC and use Xiaomi PC Suite or adb backup.

Make sure the battery is charged > 50%|Backup in Mi Cloud or on PC|Remember the username/password from Mi Account|Remove the memory card and SIM (if there are)|Check that you have access to Wi-Fi (required after reset)-->

Second, check the Mi Account binding. After the reset, Xiaomi will require you to enter the account details that were associated with the device. If you forgot the password or the phone was bought with your hands, it can take 3 to 72 hours to unlock (depending on the model). You can find the associated account in Settings β†’ Xiaomi account.

Third, prepare the unlocking tools if you plan to reset via Fastboot.

  • πŸ–₯️ Windows computer 10/11 (For the Mi Flash Tool)
  • πŸ”Œ Original. USB-cable (don’t use cheap Chinese analogues – they may not transfer data to Fastboot)
  • πŸ“₯ Firmware for your model (download only from the official website of Xiaomi Firmware)
  • πŸ”§ Mi Flash Tool and the Mi Flash Tool ADB/Fastboot drivers

πŸ’‘

If you’re resetting your phone before selling, remember to untie it from Mi Account via Settings β†’ Xiaomi Account β†’ Delete your account. Otherwise, the new owner won’t be able to activate the device!

Method 1: Reset via the settings menu (the safest method)

This method is suitable if the phone turns on and reacts to touch. It does not require a computer and keeps the current firmware version. Instructions are relevant for all Xiaomi, Redmi and POCO models on MIUI 12/13/14.

Steps for discharge:

  1. Open Settings (the gear icon on the main screen).
  2. Go to About Phone (some versions of MIUI call it About Device).
  3. Slip on Backup and Reset (or Reset in MIUI 14).
  4. Select Resetting β†’ Delete all data.
  5. Enter a pattern lock or PIN-code (if installed).
  6. Confirm the action by clicking Reset the phone.

It takes 5 to 15 minutes. The phone will reboot several times, which is normal. Once you're done, you'll see the screen of the initial setup, just like when you first turn on.

What if the "Settings Reset" item is not on the menu?
On some models (e.g., Xiaomi Mi A1/A2 with pure Android), the path is different: Settings β†’ System β†’ Additional β†’ Reset options β†’ Delete all data. If this item is not available, try the method using Recovery (described below).

Advantages of the method:

  • βœ… No need for computer and additional programs
  • βœ… Save the current version MIUI (There is no risk of flying to an older firmware)
  • βœ… Minimum risk of error (suitable for beginners)

Disadvantages:

  • ❌ It won’t help if the phone doesn’t turn on or hangs on the logo.
  • ❌ Does not delete data from internal memory (photos / videos will remain, unless you select the option "Clear internal memory")
πŸ“Š Which way of resetting do you prefer?
Through the settings menu
Through Recovery.
Through Fastboot.
I don't know which one to choose.

Method 2: Reset via Recovery Mode (if the phone is not turned on)

If Xiaomi doesn’t respond to touch, reboots cyclically, or hangs on the MI logo, use Recovery mode, which works even on locked phones (unless Mi Account protection is activated).

Instructions for entering Recovery:

  1. Turn off the phone (press the power button for 10-15 seconds).
  2. Press the button combination: For most models: Volume up + Power For POCO F1/F2/F3: Volume down + Power For Xiaomi Mi 11/12: Volume up + Volume down + Power

Mi Recovery

In the Recovery menu, the volume buttons (Up/Down for navigation, Power for selection) are controlled.

  1. Choose a language (usually English or English).
  2. Go to Wipe Data β†’ Wipe All Data.
  3. Confirm the action by selecting Confirm.
  4. Once you have finished, select Reboot β†’ Reboot to System.

πŸ’‘

If you don't have Wipe All Data on the Recovery menu, you have customized recaps (such as TWRP) installed, in which case, select Wipe β†’ Format Data β†’ enter yes to confirm.

Frequent mistakes and their solutions:

Problem.Reason.Decision
Can't get into Recovery.Wrong button combination or discharged batteryTry another combination (see table above) or charge your phone for 10-15 minutes
Recovery menu does not include Wipe DataInstalled Custom Recavery (TWRP)Use Wipe β†’ Format Data (see spoiler above)
After reset, the phone requires a Mi Account password.Xiaomi account was tied to the deviceEnter your account details or use the unlock instructions below
The discharge process is suspended by 50%The file system or firmware is damagedTry resetting via Fastboot (method 3)

⚠️ Note: On some models (Redmi Note 8 Pro, POCO X3) After resetting through Recovery, it can fly IMEI. This will cause network loss. To avoid the problem, write down before resetting. IMEI (dial *#06# in the dialer and save it in a safe place.

Method 3: Fastboot Reset (for power users)

Fastboot reset is the most radical method that completely reinstalls the firmware, and it will help if:

  • πŸ”„ The phone does not turn on or respond to Recovery
  • 🐒 System is severely damaged (for example, after a failed update)
  • πŸ”’ You need to bypass the Mi Account lock (only for older models until 2019)

This method will require a computer with ADB/Fastboot drivers installed and firmware for your model.

Step-by-step:

  1. Download the official firmware for your model from the Xiaomi Firmware website. Choose the version of Fastboot (file with the extension.tgz or.zip).
  2. Unpack the archive in folder C:\miui\ (the path should not contain Cyrillic!).
  3. Install ADB/Fastboot drivers (you can download via Mi Flash Tool or manually from the Android site).
  4. Turn off the phone and press Volume Down + Power to enter the Fastboot (a screen with a rabbit and the inscription Fastboot).
  5. Connect your phone to your PC and start the Mi Flash Tool.
  6. In the program, click Select, specify the path to the unpacked firmware, then select Clean all (full clean) or Save user data (save user data is not recommended).
  7. Press Flash and wait until it is completed (10-20 minutes).

On Xiaomi 2020 and later models (with a Snapdragon 8xx or Dimensity processor), you must unlock the bootloader through the Mi Unlock Tool before the firmware. Without this, the Mi Flash Tool will give an Anti Rollback error.

⚠️ Note: If you are flashing a phone with a locked bootloader, after the procedure, it may require authorization to Mi Account, even if there was no previously account.This is due to Xiaomi's anti-theft policy.Unlocking the bootloader takes up to 720 hours (30 days) of waiting!

Method 4: Reset via Mi Account (if you forgot your password)

If after resetting the phone requires you to enter Mi Account details, but you do not remember the password, there are two official ways to unlock:

Method 1: Recovery of password

  1. Go to the Mi Account website and select Forgot your password.
  2. Enter the linked email or phone number.
  3. Confirm the recovery via SMS or mail.
  4. Create a new password and try unlocking your phone.

Method 2: Unlock with Xiaomi support (if you bought your phone with your hands)

  • πŸ“„ Prepare documents confirming the purchase (check, warranty card, box with a box of goods) IMEI).
  • πŸ“§ Write in support of Xiaomi on email support@mi.com Unlock Mi Account Theme.
  • πŸ“Ž Attach photo of documents, IMEI phone and description of the problem.
  • ⏳ Expect a response (usually 1-3 days).

Informal methods (via EDL or TestPoint) require soldering work and specialized equipment, which is better entrusted to service centers, because the wrong actions can bring the phone down.

πŸ’‘

If you buy Xiaomi with your hands, always check the status of Mi Account through Settings β†’ Xiaomi Account. If the seller can not untie the account in front of you – refuse the deal!

What to do after a reset: initial setup and data recovery

After a successful reset, the phone will turn on in initial settings. Follow the instructions on the screen, but pay attention to a few key points:

1. Wi-Fi connection

  • 🌐 Select your network and enter your password. Without the Internet, you can't download updates and restore backup.
  • ⚠️ If Wi-Fi is not connected, check if it has crashed. MAC-Address (relevant to MediaTek models).

Data recovery

  • πŸ“± If you have backed up through Mi Cloud, select Restore from the Cloud and log in.
  • πŸ’» For local copy, connect your phone to your PC and use Xiaomi PC Suite.

3. Firmware update

  • πŸ”„ Go to Settings. β†’ The phone. β†’ Update the system and install the latest security patches.
  • ⚠️ On older models (Redmi) 4X, Mi A1) Google Play Services can be dropped after the reset, in which case download GApps manually from OpenGApps.

4. Checking the performance

  • πŸ“ž Call from another phone to make sure that IMEI failed.
  • πŸ”Š Check the speaker, microphone and camera.
  • πŸ”‹ Make sure the phone is charging normally (sometimes the power controller settings are knocked down after resetting).

FAQ: Frequent questions about Xiaomi reset

Can you reset Xiaomi without losing data?
No, a full reset always deletes user data. However, you can: Back up through Settings β†’ About Phone β†’ Backup; Copy important files (photos, videos) to your PC or cloud manually; Use Wipe Cache Partition in Recovery β€” it only clears the cache without affecting personal data.
The phone after the reset asks for the old Mi Account password, even though I untie it.
This is a common problem on MediaTek models (e.g. Redmi Note 8T, POCO M3). Reasons: The account was not completely deleted from the device (only log out). Reset was done via Fastboot without formatting the persist partition. Solutions: Try to enter the old password (it may have been saved in cache). If the phone is bought from hand, ask the seller for account details or contact Xiaomi with proof of purchase. To unlock through EDL, contact the service center (this is not recommended).
After the dump, the IMEI's gone. How do you recover it?
Loss of loss IMEI β€” critical error as the phone will lose access to the mobile network. Causes: Reset via unofficial Recovery (TWRP). Damage to the nvram or modem partition when you are firmware. Recovery methods: If you have a nvram backup (made through a MTK Droid Tools, restore it. For MediaTek processors, use the utility SN Writer Tool (requires Auth File for your model). On Snapdragon, try flashing modem through Fastboot: fastboot flash modem. NON-HLOS.bin fastboot erase modemst1 fastboot erase modemst2 If nothing helps, contact the service center – they will restore the service. IMEI It's a programr. Attention: Recovery. IMEI manually (through engineering menu ##4636##) It's temporary and can fly off after the reset!
How to reset Xiaomi if you forget the pattern lock?
If you have forgotten the pattern lock or PIN-code, there are three ways: Through Mi Account: On the lock screen, click Forgot your password? Enter the Mi Account data associated with the phone. Reset the lock password through SMS via Recovery: Enter Recovery Mode (see Method) 2). Choose Wipe Data β†’ Wipe All Data. This will delete all data, including the lock password. ADB (if debugging is on USB): adb shell rm /data/system/gesture.key Reboot After reboot, the password will reset, but this method only works if previously activated. USB.
Can you reset Xiaomi through a computer without a Fastboot?
Yes, there are two options: Through Mi PC Suite: Download and install Mi PC Suite. Connect your phone to your PC via USB. In the program, select Backup β†’ Reset β†’ Factory Reset. Through ADB (if debugging is enabled): adb reboot recovery This command will restart the phone to Recovery, where you can reset (see Method 2). Limitations: both require the phone to be turned on and recognized by the computer. If the device doesn't respond, only Fastboot or service center remains.