How to remove a pin code from a Xiaomi phone: all working ways in 2026

Forgot the pin code from Xiaomi and can not unlock the phone? This situation is familiar to many users, especially after a long break in use of the device or changing the password. Fortunately, there are official and alternative methods of unblocking without contacting the service center. In this article, we will discuss all the current methods of removing the pin code, taking into account the features of the MIUI 14/15 firmware and the models of Redmi, POCO, Xiaomi 13/14.

It's important to understand that some methods require some pre-preparedness (e.g., Mi Account binding or USB debugging). If you haven't done these steps beforehand, some of the methods will be unavailable. We'll also show you how to minimize the risk of data loss and what to do if your phone is completely locked, and let's start with the safest options and move on to radical measures.

1. Pin code withdrawal via Mi Account (official method)

This is the most reliable method if your Xiaomi is tied to your Mi Account and has the Find Device feature enabled, which works even when the screen is locked, but requires access to the Internet on your phone (via mobile network or Wi-Fi).

Instructions:

  • 🌐 Go to i.mi.com from a computer or other phone.
  • πŸ”‘ Sign in with the same account that is linked to the locked device.
  • πŸ“ Select the Find Device tab β†’ Find your phone on the map.
  • πŸ”“ Press Unlock Device and confirm the action.

After that, the pin code will be reset and the phone unlocked.If the Find Device feature has been disabled in the settings, this method will not work.

⚠️ Note: Xiaomi may request proof of identity (such as a linked phone number or email) to protect against unauthorized access.If you do not remember your account details, restore them through the official website.

πŸ“Š What kind of Xiaomi phone is you?
Redmi Note 12/13
POCO X5/F5
Xiaomi 13/14
Another model

2 Unlocking via Fastboot (for advanced users)

The method is suitable if you have a bootloader unlocked and USB debugging enabled. Otherwise, you will need to pre-unlock through the Mi Unlock Tool, which takes up to 720 hours of waiting (according to Xiaomi rules).

What you need:

  • πŸ’» Computer with drivers installed ADB/Fastboot.
  • πŸ”Œ Cable USB (preferably original).
  • πŸ“± Phone with a charge of at least 50%.

Step-by-step:

  1. Turn off your phone and press the Power button + Volume down to enter Fastboot mode.
  2. Connect the device to your PC and open the command line in the folder with ADB.
  3. Enter the command to check the connection: fastboot devices If the device is displayed, continue.
  4. Do a lock reset: fastboot erase frp or for older models: fastboot erase locksettings
  5. Reboot the phone: fastboot reboot

Once rebooted, the pin code will be reset, but all data on the device will be deleted.This method does not work on devices with a locked bootloader without an anlock beforehand.

β˜‘οΈ Preparing for Unlocking via Fastboot

Done: 0 / 4

3. Reset via Recovery Mode (full data cleanup)

If the previous methods didn’t work, it’s hard to reset through recovery mode, which will delete all data, including photos, contacts and apps, but is guaranteed to unlock the phone.

How to reset:

  1. Turn off the phone.
  2. Press the Power button + Volume up until the Mi logo appears.
  3. From the Recovery menu, select the language (if available) and go to Wipe Data.
  4. Confirm the reset by selecting Wipe All Data.
  5. After completion, press Reboot.

The newer models (Xiaomi 13/14, Redmi Note 12/13) may require data entry from Mi Account if Mi Cloud protection has been activated.

⚠️ Attention: On some firmware MIUI After resetting through Recovery, you may still have a pin request, in which case only flashing through Fastboot will help.

What if the phone asks for an old pin code after resetting?
This means that the lock data is stored in the protected section frp. Solution: repeat the reset via Fastboot with the command fastboot erase locksettings or reflash the device.

4. Use of service codes (for older models)

Xiaomi devices until 2019 (e.g. Redmi 4/5, Mi A1/A2) sometimes use service codes to reset the lock. Current models (MIUI 12+) block this method, but it is worth trying.

Try entering in the dialer:

  • πŸ“ž ##7780## - Resetting settings (saves data).
  • πŸ“ž *2767*3855# β€” full reset (remove everything).

If the codes don't work, the phone will send a message, Connection problem or invalid MMI code, in which case move on to other methods.

πŸ’‘

Before entering service codes, extract SIM-This will prevent accidental blocking of the network.

5. Unlocking through EDL Mode (for power users)

EDL (Emergency Download Mode) is an emergency boot mode that allows you to reflash your phone even with a locked bootloader. The method requires special equipment (EDL cable or circuit contacts on the board) and firmware for your model.

Instructions:

  • πŸ”§ Connect your phone to your PC in mode EDL (You need a cable or a test point closure).
  • πŸ’Ύ Download the firmware for your model from the Xiaomi Firmware Updater website.
  • πŸ–₯️ Use the Mi Flash Tool to Firmware in Clean All Mode.

This is guaranteed to remove the pin code, but requires hardware skills, and the wrong actions can turn the phone into a brick.

MethodMi Account requiredData retainedDifficulty
Through Find Deviceβœ… Yes.βœ… Yes.⭐
Fastboot❌ No.❌ No.⭐⭐⭐
Recovery Mode❌ No.❌ No.⭐⭐
Service codes❌ No.⚠️ Partially.⭐
EDL Mode❌ No.❌ No.⭐⭐⭐⭐

6. Contact the Xiaomi Service Center

If independent attempts were unsuccessful, the official service remains: Xiaomi provides a service of unlocking the passport of the owner (purchase confirmation is required).

What to bring with you:

  • πŸ“„ Passport (to confirm possession).
  • πŸ›’ Check or warranty card (if any).
  • πŸ“± Charged phone (minimum 30%).

Service centers usually unlock within 1-3 days, and the device is guaranteed if the reset is performed by an authorized Xiaomi partner.

πŸ’‘

The official service is the only way to unlock the phone without risking damaging it if other methods don’t work.

Frequent Questions (FAQ)

Can I remove the PIN code without losing data?
Yes, but only if you have Mi Account tied and Find Device enabled, in which case unlocking through i.mi.com will save all files, and other methods (Fastboot, Recovery) result in a complete reset.
What to do if you forget your Mi Account login/password?
Restor access via account.xiaomi.com, you will need a linked email or phone number, and if the data is lost forever, you can only unlock it through a service center with a passport.
Does the method work by resetting through ADB if debugging was not enabled?
No. To use ADB, USB debugging must be activated before the phone locks, and if the option is turned off, this method is not available.
Can I unlock Xiaomi with a fingerprint if I forgot the pin code?
No. Starting with MIUI 12, fingerprint or face unlock requires you to enter a pin at least once after you reboot, and if you forget it, the print won't help.
How much does it cost to unblock in unofficial services?
Prices range from 1,000 to 5,000 rubles depending on the model and complexity, but the risk of getting scammed is high - unofficial services can install malware or damage the phone.