WhatsApp is the most popular messenger in the world, but its file structure remains a mystery for many users. You download photos, videos and documents, but where are they physically stored on the device? Why do some files take up memory space while others don't? And how to recover deleted media or transfer chats to a new smartphone? Android remains a mystery to many users. You download photos, videos and documents, but where are they physically stored on the device? Why do some files take up memory space while others don't? And how to get back deleted media or transfer chats to a new smartphone?

In this article we will look at all possible locations for storing WhatsApp data on Android: from standard media folders to hidden databases and backups. You will learn how to access them through a file manager ADB or root access, as well as how to manage storage so as not to fill up your smartphone's memory. We will pay special attention to unique folders for multimedia from "Disappearing Messages" the nuances of working with external drives.

Structure storing WhatsApp data on Android

The application WhatsApp uses two main directories to store files in Android:

  • ๐Ÿ“ Internal memory โ€”chat databases, settings and cache are located here. Access to this folder is limited without root or ADB.
  • ๐Ÿ“ External memory (or the "Documents" section) โ€”media files (photos, videos, voice messages) are downloaded here. This folder is visible through any file manager.

It is important to understand that the path to the files depends on Android version i smartphone manufacturer. For example, on Samsung with a shell One UI the structure may differ from the "pure" Android on Pixel. It also plays a role whether WhatsApp is installed on internal memory or on SD card (if the device supports it).

Basic hierarchy folder looks like this:

/storage/emulated/0/WhatsApp/

โ”œโ”€โ”€ Databases/ # Chat databases (encrypted)

โ”œโ”€โ”€ Media/ # All media files (photos, videos, voice)

โ”‚ โ”œโ”€โ”€ WhatsApp Images/

โ”‚ โ”œโ”€โ”€ WhatsApp Video/

โ”‚ โ”œโ”€โ”€ WhatsApp Animated Gifs/

โ”‚ โ”œโ”€โ”€ WhatsApp Voice Notes/

โ”‚ โ””โ”€โ”€ WhatsApp Documents/

โ”œโ”€โ”€ Backups/ # Local backups (outdated since 2021)

โ””โ”€โ”€ .Shared/ # Service files for sharing between devices

โš ๏ธ Attention: Starting from Android 11, access to folders of other applications through the file manager is limited by default. To see the content /WhatsApp/you may need Manage all files permission (setting in Developer Options) or use ADB.

Where WhatsApp stores media files (photos, videos, voice messages)

Media files from chats are saved in an open folder by default /storage/emulated/0/WhatsApp/Media/. They can be viewed, copied or deleted without special rights. However, there are nuances:

  • ๐Ÿ“ธ Photos lie in WhatsApp Images/. File names have the format IMG-YYYYMMDD-WAXXXX.jpg, where XXXX โ€”a unique identifier.
  • ๐ŸŽฅ Videos are stored in WhatsApp Video/. Videos from "Statuses" (Stories) are marked with the prefix STATUS-.
  • ๐ŸŽค Voice messages are in WhatsApp Voice Notes/ format .opus (previously - .ogg).
  • ๐Ÿ“„ Documents (PDF, APK, ZIP) are downloaded to WhatsApp Documents/.
  • ๐ŸŽต Audio files (music, recorded tracks) go to WhatsApp Audio/.

Default WhatsApp does not save media from "Disappearing Messages" to the main folder. These files are stored in a temporary cache and are deleted after viewing. However, they can be found in a hidden directory:

/data/data/com.whatsapp/cache/

It can only be accessed through root or ADB.

๐Ÿ“Š How often do you empty the WhatsApp folder? Media?
Once a week
Once a month
Only when memory runs out
Never clear
File type Folder storage Name format Is it visible in the gallery?
Photos from chats WhatsApp Images/ IMG-YYYYMMDD-WAXXXX.jpg Yes (if not disabled in the settings)
Videos from chats WhatsApp Video/ VID-YYYYMMDD-WAXXXX.mp4 Yes
Voice messages WhatsApp Voice Notes/ PTT-YYYYMMDD-WAXXXX.opus No
Documents WhatsApp Documents/ Original file name No
Media from "Statuses" WhatsApp Media/.Statuses/ STATUS-XXXXXX.jpg None (hidden folder)
โš ๏ธ Attention: If you disabled the option "Save incoming media" in settings WhatsApp (Settings โ†’ Storage โ†’ Save incoming media, the files will not automatically appear in folder WhatsApp Media/. You will have to save them manually from the chat.

Location of the chat database and backups

The most important data - chat history, contacts and settings - is stored in an encrypted database. These files cannot be opened without special tools, but they can be used to restoring correspondence when reinstalling the application.

Databases are located along the path:

/data/data/com.whatsapp/databases/

โ”œโ”€โ”€ msgstore.db # Main message database (current)

โ”œโ”€โ”€ msgstore.db.crypt12 # Encrypted copy (relevant for new versions)

โ”œโ”€โ”€ wa.db # Additional data (contacts, settings). with

โ””โ”€โ”€ axolotl.db # Encryption keys (for end-to-end encryption)

Earlier WhatsApp created local backups in the folder /sdcard/WhatsApp/Backups/, nose 2021 this function outdated. Now backups are created only in Google Drive (if enabled in the settings). However, old backups may remain on the device and take up space.

Install a file manager with root support (for example, Root Explorer)

Go to /data/data/com.whatsapp/databases/

Copy the msgstore.db and wa.db files to an external drive

When reinstalling WhatsApp, return the files back before restoring

Do not change the file names - this will violate their integrity-->

If you do not have rootrights, you can access the database via ADB (Android Debug Bridge). To do this:

  1. Enable USB debugging in the developer settings.
  2. Connect your smartphone to the PC and run the command:
    adb pull /data/data/com.whatsapp/databases/msgstore.db C:\Backup\
  3. The copied file can be used to restore chats through special utilities (for example, WhatsApp Viewer).

How to find WhatsApp files on an SD card

If you transferred WhatsApp to SD card (the function is not available on all devices), the folder structure will remain the same, but the path will change. For example:

/storage/XXXX-XXXX/WhatsApp/

where XXXX-XXXX is the unique identifier of your SD card.

To check if SD card for media storage:

  1. Open WhatsApp and go to Settings โ†’ Storage and data โ†’ Manage storage.
  2. See how much space the files take up in internal memory and on SD card (if it is connected).
  3. If folder WhatsApp is on the memory card, but the files continue to be saved to the internal memory, try manually transferring them through the file manager.
โš ๏ธ Attention: On some devices (for example, Xiaomi or Huawei) transfer WhatsApp on SD card may work unstable due to manufacturer restrictions. In this case, media files will be duplicated in both memories, taking up extra space.
Why does WhatsApp not see files on the SD card?

If you manually moved the WhatsApp folder to the SD card, but the application does not see the media, the reasons may be as follows:

1. Incorrect access rights โ€” the folder must have read/write permissions for the application.

2. SD card format โ€”some devices do not support exFAT or NTFS for applications. Recommended format FAT32.

3. Android restrictions โ€” starting from Android 11, applications are prohibited from creating files on external drives without the user's explicit permission.

4. The manufacturer has blocked the function โ€”for example, Samsung and OnePlus often limit work with SD cards for third-party applications.

How to clear the memory occupied by WhatsApp

Folder WhatsApp may occupy several gigabytes memory, especially if you actively share media. You can clear it in several ways:

  • ๐Ÿงน Manually through the file manager: remove unnecessary files from WhatsApp Media/ (for example, old videos or memes).
  • ๐Ÿ”„ Through WhatsApp settings: go in Settings โ†’ Storage โ†’ Storage management and sort the files by size.
  • ๐Ÿ—‘๏ธ Clear cache: in Android settings (Settings โ†’ Applications โ†’ WhatsApp โ†’ Storage โ†’ Clear cache) temporary files.
  • ๐Ÿ“ฅ Disable automatic saving of media: in Settings โ†’ Storage โ†’ Save incoming media select "Never".

Pay special attention to the folder .Statuses โ€”all viewed โ€œStatusesโ€ (Stories) of friends are stored here. These files can be safely deleted, since they are not associated with your chats.

If you want completely reset WhatsApp data (for example, before selling your phone), do the following:

  1. Create a backup copy of your chats Google Drive.
  2. Delete the folder /WhatsApp/ via the file manager.
  3. Reinstall the application.
๐Ÿ’ก

To prevent media from WhatsApp from being displayed in the gallery, create an empty file in the WhatsApp Media folder named .nomedia. This hides all files in this directory from the Android media scanner.

Recovering deleted WhatsApp files

If you accidentally deleted important media files or correspondence, you can try to recover them. Success depends on whether the backup was enabled and how long ago the data loss occurred.

Recovery methods:

  • ๐Ÿ”„ From Google Drive backup:
    1. Delete and reinstall WhatsApp.
    2. When you first start, enter the same phone number.
    3. Follow the instructions for restoring from Google Drive.
  • ๐Ÿ“‚ From the local database (if there is a file msgstore.db.crypt12):
    1. Copy the database file to your PC.
    2. Use utilities like WhatsApp Viewer or Dr.Fone to extract messages.
  • ๐Ÿ—‘๏ธ Through data recovery apps (for example, DiskDigger or RecuvaThis method only works if the files have not been overwritten with new ones). data.
  • Specialized tools are suitable for recovering media files (photos, videos):

    • GT Recovery (for Android)
    • EaseUS MobiSaver (for PC)
    • PhotoRec (free utility for deep scanning)
    โš ๏ธ Attention: If you use WhatsApp Business, backup copies of chats and media are stored separately from regular WhatsApp. The paths to the files are similar, but in the folder WhatsApp Business/. recovery!

    Additional hidden folders and files WhatsApp

    In addition to the main directories, WhatsApp creates several service folders and files that few people know about:

    Folder/file Path Destination
    .Shared /WhatsApp/.Shared/ Temporary files for sharing between devices (for example, when using WhatsApp Web).
    CrashLogs /WhatsApp/CrashLogs/ Application error logs (useful for debugging if WhatsApp is constantly crashes).
    Databases (cache) /data/data/com.whatsapp/cache/ Temporary databases and media thumbnails (including files from Disappearing Messages).
    files /data/data/com.whatsapp/files/ Service application files (for example, encryption keys).

    Folder .Shared is especially interesting: files that you send via WhatsApp Web or Desktopare stored here. If the transfer is interrupted, the files may remain in this directory and take up space.

    Log files (CrashLogs) are useful if WhatsApp falls frequently. They can be sent to support to diagnose the problem. However, under normal conditions, these folders can be cleared without risk to the operation of the messenger.

    ๐Ÿ’ก

    Hidden WhatsApp folders (starting with a dot, for example .Shared or .Statuses) are not visible in the standard file manager. To see them, enable the display of hidden files in the manager settings (for example, in ES Explorer or Solid Explorer).

    FAQ: Frequently asked questions about storing files in WhatsApp

    Can I move the WhatsApp folder to an external drive or cloud?

    Official WhatsApp does not support transferring the folder WhatsApp/ to an external drive (for example, a flash drive) or the cloud (Google Drive, Dropbox). However, there are workarounds:

    • Use the function "Saving data" in the settings so that media is not downloaded automatically.
    • Manually copy files from WhatsApp Media/ to the cloud via file manager.
    • On some firmware (for example, MIUI) you can specify SD card as the default storage location for new files.

    Important: if you simply move the folder WhatsApp to another drive, the application will stop seeing media and chats.

    Why does WhatsApp duplicate files in the internal memory and on the SD card?

    This is a known issue on devices with Android 6.0+where WhatsApp cannot work correctly with SD card as the main storage. Reasons:

    • The manufacturer has blocked recording on SD card for third-party applications (relevant for Samsung, Huawei).
    • In settings WhatsApp The main storage location is not specified (the folder is created both there and there).
    • Error in file caching (for example, after updating the application).
    • Solution: manually delete duplicates and in the settings WhatsApp specify the preferred storage location (Settings โ†’ Storage โ†’ Default memory).

    How to find files from "Disappearing messages"?

    "Disappearing messages" in WhatsApp are stored in a temporary cache and are deleted after viewing. However, you can try. recover:

    1. Connect your smartphone to the PC and use ADBto copy the folder /data/data/com.whatsapp/cache/.
    2. Use utilities like WhatsApp Viewer to view cached media.
    3. Try apps to recover deleted files (for example, DiskDigger), if messages were recently deleted.

    Please note: files from "Disappearing Messages" are not saved to the main folder WhatsApp Media/ and are not included in backups.

    Is it possible to change the storage path for WhatsApp files?

    Officially - no. WhatsApp hardly tied to the folder /storage/emulated/0/WhatsApp/However, there are unofficial methods:

    • Use symbolic links (symlink) via ADB or Termux (requires root-rights).
    • Reassign folder via Xposedmodules (for example HandleExternalStorage), but this does not work on all versions of Android.
    • Manually copy files from WhatsApp Media/ to another location (but they will not update automatically).

    Risks: unofficial methods may lead to messenger malfunctions or data loss.

    Why do WhatsApp files take up space even though I deleted them?

    This happens due to:

    • Application cache โ€” clear it in the Android settings (Settings โ†’ Applications โ†’ WhatsApp โ†’ Storage โ†’ Clear cache).
    • Temporary files in folder /data/data/com.whatsapp/cache/ (available only through root or ADB).
    • Duplicates โ€” WhatsApp sometimes creates copies of files with the suffix -EDITED or -WA.
    • Hidden folders (for example, .Statuses or .Shared), which are not visible in the standard Explorer.

    Use a file manager with support root (for example, FX File Explorer) or utilities like SD Maid for deep cleaning.