How to find a hidden thumbnail inside an image file
Learn where image files store embedded thumbnails, how to check for one, and how to extract or remove it without changing the original photo.
An image file can contain a small embedded preview as well as the full-size picture. That preview might be an older version, show a crop that is not obvious in the current image, or reveal information you did not intend to share. It is usually stored inside the file, not as a separate picture in the folder.
You can check for common embedded previews and extract one with ExifTool, a metadata utility. The steps below use a duplicate of your image so you can inspect it without changing the original.
Check for an embedded thumbnail
- Make a copy of the image. Put the copy in a folder you can find easily. Use the copy for inspection and extraction, and keep the original unchanged.
- Install ExifTool. Get it from the official ExifTool site and follow the installation instructions for your computer. If you already have it installed, continue to the next step.
- Open a command line in the image folder. On Windows, open Command Prompt, not Windows PowerShell. On macOS, open Terminal. Change to the folder containing the copied image, or use its full file path in the commands below.
- Look for preview tags. Run
exiftool -G1 -a -s -ThumbnailImage -PreviewImage -JpgFromRaw "photo.jpg", replacingphoto.jpgwith your file name. ExifTool may report a binary data size rather than display the image itself. - Extract the thumbnail. If the output lists
ThumbnailImage, runexiftool -b -ThumbnailImage "photo.jpg" > "thumbnail.jpg". The new file is saved in the current folder. Open it like a normal image.
The example commands work in macOS Terminal and Windows Command Prompt when ExifTool is available as exiftool. If Windows says the command is not recognized, ExifTool may not be in your system path. Run it from the folder where you installed it, or follow the installation instructions on its official site. Replace the example file names with your own, and keep quotation marks around names that contain spaces.
What the result means
ExifTool lists ThumbnailImage
The file contains a thumbnail stored in that metadata tag. Extract it using the command above. The embedded copy is often much smaller than the main photo, so it may look blocky or lack detail. That is normal for a thumbnail.
ExifTool lists PreviewImage or JpgFromRaw
The file has a preview under a different tag. A camera RAW file, for example, may keep a larger JPEG preview alongside its original sensor data. To extract a listed tag, replace -ThumbnailImage in the command with the tag name, such as -JpgFromRaw, and save the result under a new file name. Do not assume every preview is a JPEG just because it comes from a photo file. If the extracted file will not open, its data may use a different format.
No preview tags appear
ExifTool did not find those common EXIF preview tags. That does not prove the file contains no embedded image data at all. Formats store previews in different ways, and some files do not contain a thumbnail. Check that you entered the correct file name and that ExifTool can read the format before drawing a conclusion.
The extracted image looks different from the current photo
The preview may have been created before a crop, rotation, or other edit. It is a separate stored copy, so it can become outdated. Finding an older preview does not by itself mean the main image has been secretly changed.
Remove a preview from a copy
If the embedded preview shows private or outdated content, remove the matching preview tags from your duplicate. This changes metadata in the copy, not the visible pixels in the photo. Keep the original until you have checked the edited file.
- Work on the duplicate. Confirm the file name in your command line and make another copy if you are unsure. The command below edits the named file.
- Remove the listed preview tags. Run
exiftool -ThumbnailImage= -PreviewImage= -JpgFromRaw= "copy.jpg", replacingcopy.jpgwith the duplicate's name. ExifTool removes matching tags that are present. - Check the result again. Run the preview-tag check from the earlier steps on the edited copy. Open the main image to confirm it still looks right.
Removing these tags does not remove every kind of embedded preview or all other metadata. If your goal is to remove location, camera, or other private details too, check the file's metadata separately before sharing it. An embedded thumbnail is not usually a hidden full-resolution copy of the photo, but it can still expose an earlier view of the image.
