Home > Tips and Tricks

How to Factory Reset/Format Data on Android

In this guide, we will show you various methods to perform a factory reset or format data on your Android device. Erasing all the data from your device is usually the last approach that one could opt for, but in some cases, that might be your only way out. For example, if the device is not working along the expected lines, is frequently lagging, and apps are slowing down, then you might have no choice but to give reset a try.

Likewise, if the data on your device has got corrupted, then it might get stuck in recovery mode, and formatting the device might be your only way to gain access to the OS. Apart from that, if you have forgotten your device unlock pattern, then resetting your device is the only way of removing that pattern/PIN lock. Moreover, if you are in the process of switching from one custom ROM to another, then doing a factory reset of your Android device is a must.

Well, these are just some of the reasons, there could be a plethora of others as to why you would want to carry out this reset. With that said, there exist around 4-5 different methods through which you could factory reset/format data on your Android device. And this plants a seed of confusion in the mind of users as to which method they should opt for. If you are also having a similar doubt, then this guide is here to help you out. Follow along.


It goes without saying that the methods listed below will wipe off all the data from your device. So please take a complete device backup beforehand. In my case, most of the data are backed up via Settings > System > Backup. Then the files in the Internal Storage [especially in the Downloads and Documents folder] are backed up over to Google Drive, and all the media files are synced via Google Photos. Moreover, make sure to manually take a WhatsApp chat backup as well.


Factory Reset/Format Data on Android via Settings Menu

format data android

Benefit: This should be your go-to choice in most 'normal' use-case scenarios.
Drawback: This wouldn't work if you cannot access the OS [such as when you forgot the PIN or the device is stuck in a bootloop] or if you are planning to switch to a custom ROM.
  1. Head over to Settings > System > Reset Options.
  2. Then go to Erase All Data and tap on Erase All Data.format data android
  3. Now type in your PIN/Password to confirm your identity.
  4. The factory reset/format data of your Android device will now start.

Factory Reset/Format Data on Android via Fastboot Mode

Benefit: The best way to format the device if you cannot access the OS or want to flash a ROM via Fastboot Commands [in the absence of a custom recovery]
Drawback: One-time setup might be slightly lengthy
  1. Download and extract Android SDK Platform Tools on your PC.Disable Google Discover on Realme
  2. Then enable USB Debugging and connect your device to your PC.format data android
  3. Now type in CMD in the platform-tools folder address bar and hit Enter.
  4. Then type in the below command to boot your device to Fastboot Mode:
    adb reboot bootloader

    format data android

  5. Now it is recommended to install the Fastboot Drivers on your PC as well.
  6. Finally, type in the below command to format data/reset your Android device
    fastboot -w
  7. Reset will now start. Once done, use the below command to boot your device to the OS:
    fastboot reboot

Factory Reset/Format Data on Android via Stock Recovery

Benefit: Works across all Android devices
Drawback: Navigating via hardware keys in Recovery might be a little bit tough.
  1. First off, download and extract Android SDK Platform Tools on your PC.Disable Google Discover on Realme
  2. Then enable USB Debugging and connect your device to your PC.format data android
  3. Now type in CMD in the platform-tools folder address bar and hit Enter.
  4. Then type in the below command to boot your device to Recovery Mode:
    adb reboot recovery
  5. Now use the Volume Keys to select Wipe Data/Factory Reset and press the Power key to confirm.format data android
  6. Wait for the process to complete. Once done, select Reboot System Now.

Factory Reset/Format Data on Android via TWRP Recovery

Benefit: If you are planning to flash a ROM, then this should be your go-to choice.
Drawback: Not every device has support for TWRP Recovery.
  1. First off, download and extract Android SDK Platform Tools on your PC.Disable Google Discover on Realme
  2. Then, download twrp.img and place it in the platform-tools folder.
  3. Then enable USB Debugging and connect your device to your PC.format data android
  4. Now type in CMD in the platform-tools folder address bar and hit Enter.
  5. Then type in the below command to boot your device to Fastboot Mode:
    adb reboot bootloader

    format data android

  6. Now it is recommended to install the Fastboot Drivers on your PC as well.
  7. Then, type in the below command to boot your device to TWRP Recovery
    fastboot boot twrp.img
  8. From TWRP, go to Wipe > Format Data > type in YES > hit the blue checkmark.format data android
  9. The process will now start. Once done you may then flash the desired custom ROM.

Factory Reset/Format Data on Android via AOSP Recovery

Benefit: Every custom ROM comes with its own custom recovery. So even if TWRP is not available, you could still format your device using the recovery that came with your ROM.
Drawback: You need to have a custom ROM installed beforehand.
  1. First off, download and extract Android SDK Platform Tools on your PC.Disable Google Discover on Realme
  2. Then enable USB Debugging and connect your device to your PC.format data android
  3. Now type in CMD in the platform-tools folder address bar and hit Enter.
  4. Then type in the below command to boot your device to Recovery Mode:
    adb reboot recovery
  5. Now select Factory Reset > Format Data/Factory Reset > Format Data.
  6. Wait for the process to complete. Once done, select Reboot System Now.

Factory Reset/Format Data on Android via ADB Command

Benefit: Useful if the touch is not working in the Recovery Mode
Drawback: Only works with a few AOSP Recoveries
  1. To begin with, download and extract Android SDK Platform Tools on your PC.Disable Google Discover on Realme
  2. Then enable USB Debugging on your device and connect it to PC via USB cable.format data android
  3. Now open CMD inside the platform-tools folder and type in the below command:
    adb reboot recovery

    format data android

  4. Finally, execute the below command to perform a factory reset:
    adb shell recovery --wipe_data
  5. You may now reboot your device to the OS via the below command:
    adb reboot

That’s it. These were the various methods through which you could perform a factory reset/format data on your Android device. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.


Share: