How to return Xiaomi to factory settings: 3 proven ways

Resetting Xiaomi to factory settings is a radical but sometimes necessary step to solve system problems, prepare the device for sale or eliminate the consequences of failed firmware experiments. The procedure removes all user data, returning the smartphone to the β€œout of the box” state, but if performed improperly can lead to a blink (complete inoperability) of the device, especially for models with a locked bootloader or custom firmware.

In this article, we will discuss three official reset methods – through the settings menu, Recovery mode and Fastboot – and how to prepare for the procedure to minimize risks. We will focus on the nuances for devices with MIUI 14/15 and HyperOS, where the interface and reset logic have changed compared to older versions. If your Xiaomi does not turn on, hovers on the logo or requires you to unlock your Mi Account, here you will find solutions for each situation.

Preparation for resetting: what to do before the start

Resetting to factory settings is an irreversible process, and even if you plan to restore data from a backup, some settings (such as those tied to Mi Account services) will have to be reconfigured.

  • πŸ“± Back up. Use the built-in Settings tool. β†’ The phone. β†’ Backup or third-party utilities like Swift Backup (requires root). MIUI do not store data of certain applications (for example, WhatsApp or banking programs).
  • πŸ”’ Make sure you know the username and password from Mi Account. Once reset, the device may require authorization to unlock (Factory Reset Protection). If the account is not tied or you have forgotten the data, restore access in advance.

If you reset the device before selling, do the following:

  • πŸ“² Unplug all accounts: Google, Mi Account, Samsung Account (if used).
  • πŸ’³ Remove Bank Cards from Google Pay, Mi Pay and Other Payment Systems.
  • πŸ“ Turn off the Find Device feature in the Mi Cloud settings.

β˜‘οΈ Preparing for Xiaomi's reset

Done: 0 / 5

⚠️ Note: On HyperOS devices (e.g. Xiaomi 14, Redmi Note 13 Pro)+) Recovery reset may require confirmation SMS Or email, even if the Mi Account wasn't tied up before, which is a security measure that was introduced in 2026.

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

This is a method that works if the device is turned on, touch-responsive, and you have access to the menu, and it's the simplest and least risky method, because it doesn't affect the system partitions.

Instructions for MIUI 14/15 and HyperOS:

  1. Open Settings (the gear icon on the main screen).
  2. Go to About Phone (in HyperOS – About Device).
  3. Select Backup and Reset β†’ Resetting.
  4. Click Delete all data (in some firmware – Reset to factory settings).
  5. Enter. PIN-code or pattern lock, if requested.
  6. Confirm the action by clicking Reset phone (or similar button).

It takes 5-15 minutes, and the device restarts, and you'll see the initial setup screen, like after you buy it, and if you have a Mi Account request after you reset, but you don't remember it, use the recovery service.

πŸ’‘

If the device hangs on the MI logo for a long time after reset (more than 20 minutes), try forcibly rebooting it by holding the power button for 10-15 seconds. If the problem recurs, proceed to reset via Recovery.

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

If Xiaomi doesn’t load, hover on the logo or lock with a graphical key, resetting through Recovery will help.This method works on all models, including Redmi, POCO and Black Shark, but requires care: improper actions can lead to loss of access to Recovery.

To enter Recovery:

  1. Turn off the device (press the power button for 10 seconds if it is getting stuck).
  2. Press the button combination: For most models: Volume up + Power. For POCO F1/F2/F3 and some Redmi Notes: Volume up + Volume down + Power. For Black Shark: Volume down + Power.

Mi Recovery

In the Recovery menu, use volume buttons for navigation and power buttons for selection. The interface may vary depending on the firmware version:

Firmware versionThe way to dumpFeatures
MIUI 12–14Wipe Data β†’ Wipe All DataYou may need to confirm it through your Mi Account.
HyperOS (2026)Erase β†’ Format DataAfter formatting, you need to manually restart the device.
Castom Recovery (TWRP)Wipe β†’ Format Data (enter yes)It removes everything, including internal memory (/data).

⚠️ Warning: HyperOS devices may receive a bootloader lock warning after selecting Format Data. Ignore it, it is a standard message that does not affect the reset process.

If after reset, the device requires you to enter Mi Account data, but you do not remember them, try:

  • πŸ“§ Restoring access through the official website.
  • πŸ“ž Contact Xiaomi Service Center with Proof of Purchase.
  • πŸ”§ Use tools like Mi Account Unlock Tool (risky, can lock your device permanently).
πŸ“Š What type of resetting method you used?
Through the settings menu
Through Recovery Mode
Through Fastboot.
I haven't tried it yet.

Method 3: Fastboot Reset (for power users)

Fastboot resetting is the most radical method used if:

  • πŸ”„ The device does not respond to other resetting methods.
  • πŸ”’ You need to remove the custom firmware or return the stock.
  • πŸ“± You need to unlock the bootloader (bootloader).

For this method, you will need a computer with drivers installed ADB/Fastboot original USB-On devices with a locked bootloader, a reset via Fastboot without first unlocking will result in a blink:

fastboot oem device-info

If Device unlocked: false is in the answer, first unlock the bootloader through the official Xiaomi tool.

Step-by-step instructions for discharge:

  1. Turn off the device and put it into Fastboot mode, clamping Volume down + Power.
  2. Connect your smartphone to your PC and check for detection by the command: fastboot devices If the device doesn’t show up, install drivers or try another cable.
  3. Run the reset command: fastboot erase userdata fastboot erase cache fastboot reboot

For a complete reset with stock firmware reflash, use the Mi Flash Tool:

  1. Download the firmware for your model from MIUI Downloads (select the Fastboot version).
  2. Unpack the archive in a folder without Cyrillic characters.
  3. In the Mi Flash Tool, select the firmware folder and click Refresh β†’ Flash.
What if the device does not turn on after reset via Fastboot?
If the phone doesn't boot after fastboot erase commands, try flashing the stock firmware through the Mi Flash Tool. If that doesn't help, the boot or recovery section may be damaged. In this case, you will need to flash it through EDL Mode (requires an authorized Xiaomi account or contact the service center).

Frequent post-reset problems and their solutions

Even after a successful reset, there can be problems, and here are the most common ones and ways to fix them:

Problem.Possible causeDecision
Requesting Mi Account after resetFactory Reset Protection (FRP) is activated.Enter your account details or restore access through the Xiaomi website.
The phone hangs on the MI logoThe system partition or incompatible firmware is damaged.Swipe the stock firmware through Fastboot or Recovery.
No net after resetIMEI or Baseband settings are reset.Check it out. IMEI *#06#. If not, restore through QCN-file (requires root).
Not working on touchscreen.The sensor driver is damaged after an incorrect reset.Re-flash the firmware or reset through Recovery again.

If photos or contacts are missing after reset, try to restore them with:

  • πŸ“ Built-in backup (Settings) β†’ The phone. β†’ Restore from backup copy).
  • πŸ–₯️ Data recovery software (DiskDigger, EaseUS MobiSaver) requires root).
  • ☁️ Cloud Services (Google Photos, Mi Cloud).

πŸ’‘

If the device requires an old password from a Wi-Fi account or an account that no longer exists after reset, the only way out is to contact the service center with proof of purchase.

Reset on locked devices (without password)

If you have forgotten the pattern lock, PIN-A code or password from Xiaomi, a reset via Recovery or Fastboot can help bypass the lock. MIUI 13+ And HyperOS, after this reset, often gets a request for Mi Account data entry, which is a measure of protection against theft, and you can legally circumvent it only with your login/password.

Algorithm for unlocking:

  1. Reset through Recovery (see Method 2).
  2. If you have a Mi Account request after you reboot, try to restore access through the recovery page. If the account is not tied, but the request appears, it's a firmware bug. Try flashing an older version of MIUI through Fastboot.

Mi Flash Tool

⚠️ Attention: Use of informal unlocking methods (e.g. through EDL or Test Point can cause hard-brick damage on new devices (Xiaomi) 13/14, Redmi Note 12/13) These methods often require authorization through an official Xiaomi account.

Reset on HyperOS devices: what has changed

In 2026, Xiaomi began the transition from MIUI to a new HyperOS shell, which changed the reset logic and added additional security measures.

  • πŸ”„ A New Path to Reset: Settings β†’ About the device β†’ Resetting settings (instead of additional settings) β†’ Recovery and discharge).
  • πŸ”’ Two-step authentication: After resetting via Recovery, confirmation may be required SMS email, even if the Mi Account is not tied.
  • πŸ“± Quick reset: HyperOS has a Quick Reset option that saves some system settings (e.g. region and language).
  • πŸ”§ New Fastboot commands: For HyperOS devices, it is recommended to use fastboot erase userdata and fastboot erase cache instead of the outdated fastboot command -w.

If you upgraded your device from MIUI to HyperOS and encountered errors after resetting, try:

  1. Return to MIUI via Mi Flash Tool (if you have firmware available for your model).
  2. Perform a reset via Fastboot with a complete flashing.
  3. Contact the service center for flashing through EDL (if the device is not turned on).

FAQ: Answers to Frequent Questions

Can you reset Xiaomi without losing data?
No, factory reset always deletes user data (photos, apps, settings).However, you can back up via Settings β†’ About Phone β†’ Backup or manually copy important files to your PC.
What to do if your phone asks for an old Wi-Fi password after resetting?
This is a firmware bug that's associated with saving network data in the system partition. Try: Connect to another Wi-Fi network. Reset network settings via Recovery (select Wipe β†’ Wipe Cache Partition). Swipe stock firmware through Fastboot.
How to reset Xiaomi if you forget your Mi Account password?
If the device requires Mi Account data after a reset, restore access through the official website. If the account is not yours (for example, the device is bought with hands), contact the service center with a check of purchase.
Will the unlocked bootloader reset after resetting?
No, bootloader status doesn't change when you reset through menus or Recovery. However, if you do a full flashing through Fastboot with official firmware, the bootloader can lock again. To avoid this, use the fastboot flashing unlock command after the firmware.
Can you reset Xiaomi through a computer without a Fastboot?
Yes, using Mi PC Suite (the official utility from Xiaomi), connect the device to a PC, open the program, and select System Restore, which only works if the phone is turned on and recognized by the computer.