Xiaomi reset to factory settings via Fastboot: the full guide 2026

When to reset via Fastboot and how it differs from the standard

You can reset your Xiaomi smartphone to factory settings in a number of ways, but the Fastboot method is the most radical and effective. It comes in handy if the device is getting stuck on the Mi logo, does not respond to touch, or is locked after a failed firmware. Unlike resetting via the Settings menu โ†’ About Phone โ†’ Reset, Fastboot works at the firmware level, bypassing system locks.

This method is suitable for all Xiaomi, Redmi and POCO models (including Redmi Note 12, POCO X5 Pro, Mi 11), but requires a connection to a PC. Its key advantage is the ability to restore performance even if:

  • ๐Ÿ”„ The phone does not turn on or cyclically restarts (bootloop).
  • ๐Ÿ”’ Forgotten pattern lock/PIN-code and Mi Account is not tied.
  • ๐Ÿ› ๏ธ After the firmware update, critical errors appeared.
  • ๐Ÿšซ The device is blocked by antivirus or third-party software.

However, the method has disadvantages: it erases all data (including photos in internal memory), and if used incorrectly can lead to a brick. OEM Unlock in the developer settings โ€“ without this, Fastboot will not work.

๐Ÿ“Š Why You Need to Reset via Fastboot?
The device is not switched on.
Forgot my password.
After a failed update
Other

Preparation for resetting: what to do before the start

Before you start, gather everything you need.

  • ๐Ÿ’ป Windows computer 10/11 macOS (Linux requires additional drivers).
  • ๐Ÿ”Œ Original. USB-cable (preferably from the set).
  • ๐Ÿ“ฑ Charged smartphone (minimum 50% battery).
  • ๐Ÿ› ๏ธ Mi Flash Tool (official) or fastboot from Android SDK.

The most important step is to unlock the bootloader, without which the Fastboot will not allow the reset.

  1. Turn off the phone.
  2. Press Volume Down + Power before the Fastboot logo appears.
  3. Connect the device to the PC and type in the command line: fastboot oem device-info
  4. If you see Device unlocked: false in the answer, the bootloader is blocked, you can unlock it through the official Xiaomi website (requires a Mi Account and wait up to 72 hours).

โš ๏ธ Note: If the bootloader is locked and the Mi Account is not tied, a reset via Fastboot will result in a permanent lock of the device (hard brick.

โ˜‘๏ธ Checklist before reset

Done: 0 / 5

Step-by-step: reset via Fastboot on Xiaomi

If you're done, start resetting. Follow the instructions in strict order:

Step 1: Transfer your phone to Fastboot mode

Turn off the device. Press Volume down + Power for 10-15 seconds until the image of a hare labeled FASTBOOT appears. Some models (such as the POCO F5) may need to keep Volume up + Power.

Step 2: Connect to the PC and check the connection

Connect the phone to your computer. Open the command line (Win + R โ†’ cmd) and type in:

fastboot devices

If the device serial number appears in the answer (for example, 1234abcd fastboot), the connection is installed. If not, install Xiaomi USB Drivers drivers or try another cable.

Step 3: Performing the discharge

Enter the commands one by one:

fastboot flashing unlock


fastboot erase userdata




fastboot erase cache




fastboot reboot

After the first command, a warning will appear on the phone screen, confirm the reset with Volume Up, then press Power.

It takes 2-5 minutes, and when it's done, it automatically reboots to factory status.

What to do if the team is not working?
If you enter fastboot flashing unlock with a FAILED (remote: unknown command) error, use an alternative command for older models: fastboot oem unlock. Some devices (e.g. Redmi 9A) may need to unlock the bootloader first via the Mi Unlock Tool.

Common Mistakes and How to Fix Them

Even with the correct following of the instructions, problems can arise, and here are the most common ones and ways to solve them:

Mistake.Reason.Decision
waiting for devicePC doesn't see the phoneCheck the cable, install the drivers, try another one. USB-port (preferably) USB 2.0)
FAILED (remote: oem unlock is not allowed)bootloader lockedUnlock the Mi Unlock Tool (requires a tied Mi Account)
The phone will not turn on after resettingFirmware damaged.Swipe your device through the Mi Flash Tool with the clean all option option
invalid sparse file format at headerFile system errorRun fastboot format:ext4 userdata, then repeat the reset.

โš ๏ธ Warning: If after resetting the phone requires you to enter a password from Mi Account, and you do not remember it, use the recovery service.

๐Ÿ’ก

If the reset didnโ€™t help and the phone still doesnโ€™t turn on, try flashing it through. EDL-This will require a Qualcomm box or service center.

Resetting with Mi Flash Tool: an alternative method

If fastboot commands donโ€™t work, use the official Mi Flash Tool.Itโ€™s suitable for completely reflashing the device, including resetting to factory state.

Download the utility from the official website and follow the steps:

  1. Unpack the archive with the Mi Flash Tool and launch XiaoMiFlash.exe.
  2. Connect your phone in Fastboot mode.
  3. In the utility, click Select and select the folder with the firmware (download it in advance for your model from the Xiaomi website).
  4. Select the clean all mode (full reset).
  5. Press Flash and wait until it is completed (about 5-10 minutes).

This method is guaranteed to reset all settings, but requires the right firmware. - For the Redmi Note 10 Pro will suit files marked fastboot (for example, vayu_global_images...), for POCO X3 โ€” surya_global_images....

๐Ÿ’ก

Use the Mi Flash Tool only if fastboot commands don't work, which is more reliable, but requires more time and proper firmware.

What to do after resetting: the first steps

After a successful reset, the phone will turn on as new.

  1. Choose the language and region (we recommend Russia for the correct operation of Xiaomi services).
  2. Connect to a Wi-Fi network (required to download updates).
  3. Skip Mi Account binding if you donโ€™t plan to use cloud services.
  4. Update the firmware through Settings โ†’ About the phone โ†’ System update.

If you have backed up your data through Mi Cloud or Google Account, restore it at this point, but please note that:

  • ๐Ÿ“ Photos and videos from internal memory are not restored โ€“ they can only be returned using specialized programs (for example, DiskDigger).
  • ๐Ÿ”‘ Passwords from Wi-Fi and applications will have to be re-entered.
  • ๐ŸŽฎ Game settings (such as Genshin Impact or PUBG Mobile will only be restored if they were linked to an account.

To avoid problems in the future, set up automatic backup in Settings โ†’ Additional โ†’ Backup and Reset.

FAQ: Answers to Frequent Questions

Can you reset Xiaomi via Fastboot without a computer?
No. Fastboot is a protocol for interacting with a PC. Without a computer, you can only reset settings via the Recovery menu (click Volume Up + Power when your phone is off) or in system settings (Settings โ†’ About Phone โ†’ Reset).
Why does the phone ask for a password from Mi Account?
This is Factory Reset Protection (FRP) that is activated if you have a Mi Account attached to your device and you have Find your device enabled. To unlock your phone, enter the account you used before you reset. If you don't remember your password, restore it on Xiaomi.
Will Fastboot reset data on a memory card (SD)?
No. The fastboot erase userdata and fastboot erase cache commands only affect internal memory. The data on the microSD will remain intact. However, if you use the Mi Flash Tool with the clean all and lock option, the memory card will be formatted.
Can the reset be cancelled after the process has begun?
No. Once you confirm the fastboot flashing unlock or fastboot erase userdata, the process is irreversible. Interruption (e.g., disconnecting the cable) can cause a brick to break the device. If the reset is stuck in the erasing phase, wait 10-15 minutes. If there is no change, contact the service.
Does this method work on Xiaomi with custom firmware (like LineageOS)?
Yes, but with reservations, a Fastboot reset will return the device to the MIUI stock firmware if you use the official image. If you have custom firmware installed (like Pixel Experience), the phone may not boot after the reset, in which case you will need to re-install custom software via TWRP.