How to find out Xiaomi code: a complete guide to device identification

Owning a smartphone or smart appliance from Xiaomi often requires accurate device identification, not only for warranty service, but also for authenticating the gadget on the official website. Many users wonder how to find out Xiaomi code, referring to unique identifiers such as IMEI or serial number (SN), which are the digital passport of your device.

There are several proven ways to get this information, and they don't require a lot of technical knowledge. You can find codes right in the interface of the MIUI or HyperOS operating system, use special combinations of numbers or look at physical labeling. It's important to understand the difference between the global version and the Chinese version, because the codes may differ in format. Below we will discuss each method in detail.

Don’t ignore the need to keep this data in a safe place. In the event of a theft or loss of a device, these numbers will help law enforcement or telecom operators block the gadget. In addition, knowing the model code helps avoid problems when buying parts or accessories that may not fit your specific audit.

Use of the Engineering Menu through USSD-team

The fastest and most versatile way to learn the code of a device is to use an engineering menu, which works on most Xiaomi, Redmi and POCO smartphones, regardless of the firmware version. You don't have to install third-party apps or get superuser rights. You just have to open a standard caller.

Enter *#06# on the dial keyboard. Immediately after entering the last character, the information window will automatically appear on the screen. Here you will see the main IMEI 1, the additional IMEI 2 (for dual-symbol models) and the serial number SN. This is the code that service centers most often require.

⚠️ Warning: Do not try to enter other engineering codes (e.g. ##4636##) if you are not sure what you are doing. Changing the settings in the engineering menu can lead to malfunctioning of communication modules or a complete failure of the phone.

If the standard combination doesn’t work or an empty window is displayed, try an alternative for some versions. MIUI: ##64663## This command opens an extended hardware testing menu where the serial number and other technical details can also be found in the Version section. IMEI It is better to use the first method.

💡

Take a screenshot of the codes as soon as they appear. In some versions of the firmware, the IMEI window disappears after a few seconds, and you have to re-enter the command.

Search for identifiers in system settings

If the screen of the phone is broken or the touchscreen is intermittent, it can be difficult to enter combinations, in which case it is more logical to go to the software settings. The path to information may vary slightly depending on the version of the shell, but the general principle remains the same. You need to find the section "About the phone".

Go to the Settings menu → It's about the phone. It shows the basic information: model, Android version, version. MIUI. To see the full data, including IMEI and MAC-address, often need to click several times in a row on the logo version MIUI In newer versions of HyperOS, this data can be hidden inside the "Status" or "General Information" option».

  • 📱 Open the Settings app on the main screen.
  • ℹ️ Select “About the phone” (usually at the top of the list).
  • 🔍 Find a line «IMEI» or click on “All settings” for detail.
  • 📝 Copy or record the displayed serial number.

Importantly, in the same section, you will find the device version code, which consists of an alphanumeric set (e.g. 2201123G), which is critical when searching for firmware on forums or ordering cases, and indicates a specific modification of the device for your region.

📊 Where you most often look IMEI?
In the phone settings
Through USSD-code *#06#
On the box.
On a check from the store.

Physical marking and documentation

When the phone is not turned on or completely locked, the only way to know its codes is to look at physical media. The primary source of data is the original packaging. There is always a barcode sticker on the back or side of the box that shows IMEI, S/N and the model.

If the box is lost, check out the smartphone itself. On older Xiaomi models, information was applied to a non-removable back cover. In modern single-body devices, data can be engraved in fine print on the bottom edge, next to the charging connector, or on the tray for the charger. SIM-Be careful: the engraving on the tray sometimes corresponds only to this tray, and not to the entire device, if it was changed in the service.

Source of informationLocation of dataCredibility
Phone screen (USSD)Policy conclusionHigh (current state)
The factory boxSticker on the hullHigh (original)
Tray SIM-mapEngraving on metalMedium (could have been replaced)
Guarantee passSeal of the seller/serviceHigh (legal)

Remember the documents. On a warranty card or check, sellers often enter or enter the serial number of the device when they sell it, it's a legally valid document that confirms that this particular code belonged to you at the time of purchase, and keep the checks digitally so that they don't fade over time.

Authentication check on the official website

Knowing how to find out the Xiaomi code, you can move on to the next step, which is verification. The manufacturer's official website provides a tool to verify the authenticity of the device. This is especially true when buying a smartphone from hand or in unverified stores. IMEI or SN factory-based.

To check, go to mi.com/verify, enter the serial number you found in one of the ways described above, the system will give you the result: model confirmation, activation date (if new) and warranty status. If the site says "Not found", this is an alarm.

⚠️ Attention: There are clone sites that mimic the design of the official Xiaomi portal. Always check the browser address bar. The official domain should end in.com or a regional domain (for example,.ru,.in), but belong to Xiaomi.

What if the codes don't match?
If the IMEIs on the box and the phone are different, maybe the device has been repaired with a replacement motherboard, or you have a refurbished machine assembled from different parts. For used equipment, this is acceptable if you sell it honestly, but for a new one, it is a sign of fraud.

Determination of the regional version by model code

One of the most important aspects for the owner is understanding which version of the firmware is installed and which region the device is intended for. The model code consisting of numbers and letters at the end (eg Global, CN, RU), tells about it more than just the name. Chinese versions (CN) often do not have Google Play preinstalled and may not support some LTE frequencies used in Europe.

To find out the version, again, refer to Settings → About phone. In the line "Model" you will see the code. If at the end is the letter G (for example, M2101K7G) is the global version. The letter I usually indicates the version for India, R for Russia, no letter or C for China. Global versions have an unlocked bootloader in most cases, which is important for enthusiasts.

  • 🌍 Global (G): Full language support, Google services, broadband.
  • 🇨🇳 China (C/N): Chinese and English only (often), no Google out of the box.
  • 🇮🇳 India (I): Camera and radio specific settings for India.
  • 🇪🇺 EEA (E: Enhanced compliance version for EU countries GDPR.

Understanding the differences helps avoid problems with notifications and app performance, such as the Chinese version of global firmware (China ROM) may not receive notifications from instant messengers in the background due to the aggressive energy savings characteristic of Chinese operators.

☑️ Check before buying used Xiaomi

Done: 0 / 5

Solution: If the codes are not read

Sometimes users are faced with a situation where instead of IMEI numbers, zeros or bars are displayed, which is a serious problem, indicating damage to the NVRAM partition or a modem malfunction, this can happen after a failed flashing, resetting or mechanical impact. Without IMEI, the phone will not be able to register with the valid carrier network.

Recovery of lost code is a complex process that requires specialized software (such as MiFlash Pro or tools for engineers) and, often, an authorized account on Xiaomi servers. You can’t just “write” IMEI yourself — it violates the law in many countries. The only legal way is to contact an authorized service center with a check for purchase.

If the problem is software and it's a menu problem, try a full Wipe All Data reset, back up your contacts and photos, and often it brings back the correct readout.

💡

Saving IMEI and SN codes in cloud storage or on paper outside the home is the best insurance against losing access to the device in the event of a theft or breakdown.

Can I change the IMEI to Xiaomi?
Technically, this is possible with root rights and special utilities, but it is illegal in most countries of the world, and it leads to a loss of warranty and the risk of “bricking” the phone, telecom operators can block a device with a modified IMEI at the network level.
What if Xiaomi doesn’t accept my serial number?
You may be typing the model code instead of the serial number (SN), the serial number is longer and contains letters and numbers, and check if there are any typos, especially in characters that are similar to each other (0 and O, 1 and I).
Where can I find the code to unlock the bootloader?
There is no separate “code” to unlock, the process takes place through the official Mi Unlock Tool utility on the PC after linking the Mi Account to the device and waiting (7 to 30 days), the confirmation code comes to SMS or to the mail associated with the account.
Does the model code region affect the NFC?
Global versions usually support all the necessary NFC frequencies for payment (Google Pay, Mi Pay). Chinese versions also often have NFC, but the operation of banking applications can be limited due to the lack of certification of Google Pay in the region.