A THM file is a thumbnail image that Windows or another program created automatically to speed up how fast your folders load

When you open a folder full of photos or videos, your computer needs to show you small preview pictures of each file. Rather than recreate that tiny image every single time you open the folder, Windows saves a copy as a THM file — short for thumbnail. The THM file sits in the same folder as your original photo or video and contains that preview image.

You almost never need to do anything with a THM file. It exists only to make your computer faster. If you delete it, Windows will simply create a new one the next time you open that folder. THM files are harmless and take up very little space — usually between 1 and 50 kilobytes each.

Key Takeaways

  • THM files are automatically generated thumbnail previews that Windows creates to speed up folder loading.
  • You will find THM files in the same folder as your photos, videos, or other media files.
  • Deleting THM files is safe and will not harm your original files — Windows will recreate them automatically.
  • THM files take up minimal storage space and are not a sign of a problem with your device.

Where THM files come from and why they exist

Your device creates THM files without asking you. When you save a photo or video, or when you first open a folder containing images, Windows or your media player automatically generates a small preview version and stores it as a THM file. This happens in the background — you will not see a dialog box or notification.

The reason is speed. If your folder contains 500 photos, your computer would have to read and process each full-size image file every time you open that folder. That takes time. By storing a tiny preview version separately, Windows can show you all 500 thumbnails almost instantly. The THM file is that stored preview.

Different programs create THM files in slightly different ways. Windows Explorer creates them for photo folders. Some digital cameras save THM files alongside the original image files on the memory card. Video players like Windows Media Player may create them for video files. The purpose is always the same: to make browsing faster.

How to find THM files on your device

THM files are usually hidden by default, so you may not see them even if they exist in your folders. To view them, you need to turn on the option to show hidden files.

On Windows 10 or 11: Open File Explorer and navigate to the folder where your photos or videos are stored. Click the View tab at the top. Look for a checkbox labeled "Hidden items" and click it to turn it on. Any THM files in that folder will now appear alongside your regular files.

On Mac: Open Finder and go to the folder containing your media. Press Command + Shift + Period (.) to toggle hidden files on and off. THM files will appear if they exist in that location.

Once you can see them, THM files are easy to spot — they have the .thm extension at the end of the filename, like "photo.thm" or "video.thm".

Whether you should delete THM files

Deleting THM files is completely safe. They are not part of your original photo or video — they are just copies of a preview image. Removing them will not damage your files, lose your data, or cause any problems.

The only downside to deleting them is that your computer will need to recreate them the next time you open that folder, which may take a few extra seconds. For most people, this is not noticeable. If you are trying to free up storage space and your device is running low, deleting THM files will recover a small amount of room — but the space saved is usually minimal since each file is small.

If you delete a THM file and then change your mind, you can simply delete the original photo or video file and recreate the THM file by opening the folder again. Or, if you have a backup, you can restore the original file. The THM file itself cannot be recovered separately because it is just a preview — the real image is in the original photo or video file.

How to prevent THM files from being created

You cannot completely prevent Windows from creating THM files — this is a core feature of how the operating system works. However, you can reduce how many are created by changing a few settings.

Turn off thumbnail caching in Windows: Open File Explorer and click View at the top. Select Options, then go to the View tab. Uncheck the box that says "Always show icons, never thumbnails." This tells Windows to show file icons instead of preview images, which means fewer THM files will be created. However, your folders will look less visually organized.

Some third-party programs also create THM files. If a specific program is creating them and you want to stop it, check that program's settings for an option to disable thumbnail generation or preview caching. The exact steps vary depending on which program you are using.

THM files from cameras and memory cards

If you have ever used a digital camera or smartphone, you may have noticed THM files on the memory card itself. Many cameras automatically create a THM file for each photo or video as it is taken. These files help the camera display images quickly on its small screen.

When you transfer photos from a camera to your computer, the THM files usually come along with them. You can safely delete these camera-created THM files from your computer — they were only useful on the camera. Your original photo files will remain intact.

Some people prefer to delete all THM files from a memory card before putting it back in the camera, but this is not necessary. The camera will simply recreate them if it needs them. Deleting them does free up a tiny amount of space on the card, but the savings are usually less than 1 percent of the card's total capacity.

Frequently Asked Questions

Is a THM file a virus or malware?

No. THM files are legitimate system files created by Windows, cameras, and media players. They are not associated with viruses or malware. If you are concerned about a specific file, you can scan it with antivirus software, but THM files themselves are safe.

Can I rename a THM file?

You can rename it, but there is no reason to. Renaming it will not break anything, but Windows will not recognize it as a thumbnail file anymore and may recreate a new one. It is easier to just leave THM files alone or delete them if you want them gone.

Why do I see THM files in my cloud storage or backup?

Cloud services like OneDrive, Google Drive, or Dropbox sometimes sync THM files along with your photos. You can safely delete them from the cloud to save storage space. The original photo files will remain, and new THM files will be created on your device as needed.

Do I need THM files to view my photos?

No. THM files are only for previews and folder browsing speed. Your actual photo or video file is completely separate and works without the THM file. You can open and view your images even if all THM files are deleted.

What is the difference between a THM file and a JPG or PNG file?

A THM file is a small preview image, while JPG and PNG are full image files that contain all the detail and color information. THM files are typically much smaller and lower quality because they only need to show a tiny preview. Your original photos are stored as JPG, PNG, or another image format — the THM is just a helper file.