How to format Xiaomi phone: 3 proven ways + tips for data recovery

Why Xiaomi Formatting Needs a Special Approach

Xiaomi, Redmi and POCO smartphones run on customized MIUI firmware, which is significantly different from β€œpure” Android. This also affects the formatting process: a standard reset through settings here often leaves behind β€œtails” in the form of app cache, residual files or even incorrectly working services. Moreover, on devices with a locked bootloader (which is 90% of official firmware), a deep reset through Recovery can lead to a β€œbrick” if you do wrong things.

In this article, we will not only discuss the basic formatting methods (via menus, Recovery and Fastboot), but also the nuances that the manufacturer does not say, for example, why NFC stops working on some Xiaomi 12T or Redmi Note 11 models after reset, or how to avoid losing data in the Mi Account tied to the device.

Before you start, answer yourself 3 questions:

  • πŸ”Ή Formatting Purpose: Selling a Phone, Eliminating Lags, Preparing for Firmware, or Something Else?
  • πŸ”Ή Model: new flagships (Xiaomi 14, 13 Ultra) or budget series (Redmi) A2, POCO M6)?
  • πŸ”Ή Phone status: whether it is turned on, whether there is access to Recovery, whether the bootloader is unlocked?
πŸ“Š Why you are formatting Xiaomi?
Preparation for sale
Removing system lags
Virus removal
Transition to custom firmware
Another option

Method 1: Soft reset via MIUI settings

The safest method, which is suitable for 95% of users, is to delete user data but save system files and MIUI settings. Importantly, this method will not help if the phone is locked, not turned on or requires a complete flashing.

Instructions:

  1. Open Settings β†’ About the phone β†’ Reset settings.
  2. Choose to Erase All Data (not to be confused with Settings Reset – these are different options!).
  3. Enter the Mi Account password if the phone is linked to your account.
  4. Confirm the action and wait for the reboot (it will take 5-15 minutes).

What's removed:

  • πŸ“± Installed applications and their data
  • πŸ“· Photos, videos and music (if not saved) SD-map)
  • πŸ“ž Contacts, SMS, call-book
  • πŸ”‘ Wi-Fi passwords and account data in apps

What persists:

  • πŸ”„ System updates (no need to download them again)
  • πŸ“‘ Network settings (IMSI, APN β€” but not passwords)
  • πŸ› οΈ Service data (e.g. screen or battery calibration)

β˜‘οΈ Preparing for reset via settings

Done: 0 / 4

⚠️ Note: On Xiaomi models with HyperOS (e.g. Xiaomi 14 or Redmi) K70) The path to reset has changed: Settings β†’ Memory. β†’ Data reset. Old versions. MIUI This section may be called differently!

Method 2: Hard Resetting with Recovery Mode

This method is used when the phone is not turning on, getting stuck on the MI logo, or requires a deeper cleaning (for example, before firmware), unlike the first method, it removes all partitions, including cache and temporary files of the system.

How to log in to Recovery:

  1. Turn off the phone.
  2. Press the Power button + Volume up for 10-15 seconds.
  3. When the Mi logo appears, release the buttons.

Further action:

  • 🌐 Choose a language (usually English or Chinese).
  • 🧹 Press Wipe Data. β†’ Wipe All Data.
  • πŸ”„ Confirm the action and wait until it is completed (may take up to 30 minutes).
  • πŸ”™ Go back to the main menu and select Reboot.
Xiaomi modelCombination for entering RecoveryFeatures
Redmi Note 10–12, POCO X3–X5Food + Volume upYou may need confirmation via Mi Account
Xiaomi 11–14, Mi 10Power + Volume up (hold 20+ seconds)Some firmware works only after 3-4 attempts.
Redmi A1–A2, POCO M3–M5Food + Volume up + Volume downBe careful – on budget models, it’s easy to accidentally log into Fastboot
What to do if Recovery asks for a Mi Account password?
If the phone was tied to a Mi Account and you forgot your password, the only way out is to unlock through the official account.xiaomi.com website. In rare cases, a Fastboot reset (see Method 3) helps, but it is risky for beginners.

⚠️ Note: On devices with a locked bootloader (most official firmware), a reset via Recovery can result in a "brick" (phone not turned on). This occurs due to a reset of the persist or modem partition. If you are not sure, use Method 1!

Method 3: Formatting via Fastboot (for advanced)

The most radical method that removes all partitions, including system partitions, is used to:

  • πŸ› οΈ Eliminating critical errors (bootloop, constant reboots)
  • πŸ”„ Preparations for custom Recovery firmware (TWRP) or ROM
  • πŸ”’ Unlock the loader (if it is blocked)

This method will require:

  • πŸ–₯️ Computer with installed ADB and Fastboot
  • πŸ”Œ Cable USB (preferably original)
  • πŸ”“ Unlocked bootloader (if not, see the instructions below)

Commands for full formatting:

fastboot erase boot


fastboot erase system




fastboot erase userdata




fastboot erase cache




fastboot erase recovery




fastboot flash recovery [name file recovery.img]

πŸ’‘

Before you execute the commands, check if the device is recognized in Fastboot. To do this, type in fastboot devices β€” if the list is empty, install drivers or try another cable.

After formatting, the phone will be in a β€œbrick” state – you will need to flash new firmware through fastboot flash-all or Mi Flash Tool.

How to Unlock the bootloader Before Formatting

On all official Xiaomi firmware, the bootloader is blocked.

  • ❌ It is impossible to sew custom Recovery (TWRP)
  • ❌ It will not be possible to install an unofficial firmware
  • ❌ Fastboot commands for formatting system partitions won’t work

The unlocking process:

  1. Connect the phone to Mi Account in the settings.
  2. Activate Developer Options (7 times click on the MIUI version in About Phone).
  3. Enable OEM Unlock and USB Debugging in Settings β†’ Additional β†’ For Developers.
  4. Connect your phone to your PC and do:
adb reboot bootloader


fastboot oem unlock

After that, the phone will reboot and reset completely -- that's OK. Now the bootloader is unlocked, and you can use Fastboot commands to format.

⚠️ Warning: Unlocking the bootloader voids the warranty and can lead to problems with Google Pay, Widevine L1 (no HD Netflix and Mi Account bank with frequent unlocks. on new models (Xiaomi) 13/14, Redmi K60) wait 7 days after the account is linked!

What to do after formatting: restore and setup

Many users think that after a reset, you can use your phone right away. This is a mistake! To avoid lags, quick discharge and other problems, follow these steps:

  1. Update the firmware to the latest version through Settings β†’ System Update.
  2. Restore data from backup (if you backup in Mi Cloud or locally).
  3. Set up accounts: πŸ”‘ Add Mi Account (required, otherwise Xiaomi services will not work) πŸ“§ Add a Google account (for Play Market and sync)

Turn off unnecessary services

  • πŸ“Š Settings β†’ Annexes β†’ Application management β†’ Auto-Start (Disable for Unnecessary Applications)
  • πŸ”„ Settings β†’ Accounts. β†’ Synchronization (leave only the necessary data)

Pay special attention to the battery setting:

  • πŸ”‹ Complete a full charge cycle (discharge to 0%, charge to 100% without interruptions).
  • ⚑ Turn off Accelerated Charging in Settings β†’ Battery if you plan to use your phone for a long time on a single charge.
  • πŸ“‰ Enable Battery Optimization for Important Applications (e.g. Messengers).

πŸ’‘

After formatting, the phone works faster, but the first 2-3 days the system can "brake" - this is normal. MIUI adapts to your usage habits (the Memory Extension algorithm).

Frequent Mistakes and How to Avoid Them

Even experienced users make mistakes when formatting Xiaomi, and here are the most common ones:

Mistake.Effects of consequencesHow to avoid
Resetting without detachment Mi AccountPhone requires password after rebooting ("Mi Account Lock")Delete your account in Settings β†’ Accounts β†’ Mi Account before resetting
Formatting via Fastboot on a blocked bootloaderThe phone turns into a brick (not turned on)Unlock the bootloader first (see section above)
Interrupting the reset process (removed the battery, disconnected the power)Damage to system files, bootloopWait until the process is complete (even if it has been suspended for 20+ minutes)
Use of informal firmware after formattingLoss of IMEI, network problems, ban of Mi AccountSwitch only official ROMs through the Mi Flash Tool

Another common problem is the loss of IMEI after improper formatting, which occurs when modem or nvram partitions have been removed, and you can restore IMEI through the engineering menu (#4636##), but this will require root rights or special utilities like the SN Write Tool.

How to check the IMEI after formatting?
Dial *#06# β€” if Null or Invalid is displayed instead of a 15-digit code, then IMEI is lost. On new models (Xiaomi 12T, Redmi Note 12), this can lead to the loss of 4G/5G network.

FAQ: Answers to Frequent Questions

Can you format Xiaomi without losing data?
No, any formatting deletes user data. However, you can back up through Settings β†’ System β†’ Backup or manually copy files to your PC. Importantly, the MIUI backup does not save some settings (such as application data or Wi-Fi passwords).
The phone asks for the old Mi Account password after the reset.
This means that the device was linked to a Mi Account, and now you need confirmation. If you don't remember the password: Go to account.xiaomi.com and restore access. If the phone is bought from hand, contact the previous owner (you can't unlock it without it). In extreme cases, contact the Xiaomi service center with proof of purchase. ⚠️ Note: Do not use bypass methods from the Internet (such as firmware through TestPoint) – this often leads to complete loss of the phone!
After formatting, the camera/Wi-Fi/NFC doesn't work.
This is a typical problem after a Recovery or Fastboot reset on devices with a locked bootloader, and it's caused by damage to the persist or vendor partitions where the calibration data for the hardware is stored: πŸ”„ Sweep through the official firmware via the Mi Flash Tool (select the Clean All option). πŸ› οΈ If the firmware doesn't work, contact the service (you'll need to reflash persist manually). On Xiaomi 11-14 and Redmi models. K50–K70 This problem is more common due to anti-Rollback protection.
How to format Xiaomi if it does not turn on and does not go to Recovery?
If the phone doesn't respond to buttons or is stuck on the logo, try: Hard reboot: press Power + Volume up + Volume down for 20-30 seconds. Fastboot mode: connect the phone to the PC and check if it is determined by the fastboot device command. If yes, run the firmware through the Mi Flash Tool. TestPoint: on some models (Redmi 9, POCO X3) you can enter emergency mode by closing contacts on the board. Dangerous for beginners! If nothing helps, do not cause frequent attempts to the service.
Should I format Xiaomi before selling?
Yes, but it's not enough to just reset. To completely clean your phone: Delete your Mi Account and Google account. Reset through Settings. β†’ If your phone is older than 2020, format it with Recovery (to delete the residual data) and make sure that the phone does not require the old password to be reset (see the Mi Account Lock question above). πŸ’‘ Tip: Before selling, take a screenshot of your phone information (Settings) β†’ On the phone - this will confirm that the device is not in the blacklist (on the phone) IMEI).