.THUMBDATA

THUMBDATA File

Android Gallery Thumbnail Cache
Ask a question
QUICK ANSWER

A .thumbdata file (.thumbdata3, .thumbdata4, .thumbdata5) is the Android gallery's hidden thumbnail cache - one big file that stores small previews of your photos so the gallery loads faster. It is not a photo you open. It is safe to delete to free space; Android rebuilds it automatically. If you need to extract the previews inside, a JPEG-carving tool like PhotoRec can pull them out, but they are low-resolution thumbnails, not your full-size originals.

Developer: Google (Android) / OEM gallery apps Category: Misc Files MIME: application/octet-stream
OPENS ON Windows Linux Android
Related: .TORRENT · .MSO · .MD5 · .SHS

On this page

19k+ extensions indexed
Last reviewed Jul 1, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the THUMBDATA file format?

Files with the .thumbdata extension on Google Android systems are used for storing a temporary database of thumbnails for multimedia files, most importantly for images and videos stored on the device. The thumbnail database is typically saved with a filename that starts with .thumbdata followed by a version number and a device-specific hash string - common variants are .thumbdata3, .thumbdata4, and .thumbdata5 (for example .thumbdata4--1967290299).

.thumbdata system files are created on devices running Android, including smartphones, tablets, TVs, and wearables that handle multimedia content. The cache can hold thumbnails for:

  • images, for example in .JPG or .PNG format,
  • animations, such as .GIF files,
  • videos, for example .MP4 files.

Internally the file is a proprietary binary blob: a flat index region followed by many small JPEG previews packed back-to-back, using little-endian byte order. There is no standard magic number at offset 0, but JPEG SOI markers (FF D8 FF) appear throughout at the start of each embedded thumbnail.

The database file is generated automatically to allow fast access to multimedia file thumbnails. By default .thumbdata files are hidden inside the /DCIM/.thumbnails/ folder - the leading dot hides the directory, and a sibling .nomedia file prevents the gallery app from treating the cache as a photo album. Manually deleting .thumbdata files will not damage the system; Android rebuilds the cache automatically, though thumbnail loading may be slower until it does.

On Android 10 and later, the visible .thumbdata cache has largely been superseded by per-app private thumbnail storage managed by MediaStore and Glide, so the file is now uncommon on current devices.

Security & safety

RISK: LOW

The file itself is harmless passive cache data - it cannot execute. Two real cautions: (1) Deleting it is safe and does NOT delete your photos, but only the .thumbdata cache in .thumbnails is expendable - don't delete unrelated files. (2) Privacy: because it holds previews of every photo the gallery ever indexed, the cache can contain thumbnails of pictures you already deleted; if you hand over a phone or its backup, wipe this file. 'Thumbnail recovery' is a known forensic technique - the cache can reveal deleted images.

Format details

in a nutshell
FULL NAMEAndroid Gallery Thumbnail Cacheaka Google Android Thumbnail Database, thumbdata cache
DEVELOPERGoogle (Android) / OEM gallery appssince Android stock Gallery / MediaStore thumbnail caching (pre-2015; .thumbdata3/4/5 across Android 4-7)
CATEGORYMisc Files
MIME TYPEapplication/octet-stream
TYPEProprietary binary thumbnail cache (concatenated JPEG previews + index)

Programs that open THUMBDATA files

Windows2 apps
PhotoRec Open-source Copy the file to a PC and let PhotoRec carve out the embedded JPEG thumbnails (low-res previews only).
HxD (hex editor) Free Open in HxD only to confirm it's a thumbnail blob - search for repeated FF D8 FF JPEG headers. Not a real 'viewer'.
Linux1 app
PhotoRec Open-source Run photorec over the copied file to carve the embedded JPEG thumbnails.
Android2 apps
Delete via Files by Google (recommended action) Free Enable 'show hidden files', go to DCIM/.thumbnails, delete .thumbdata*; the gallery rebuilds it. There is no reason to 'open' it.
PhotoRec (JPEG carver) Open-source Only if recovering lost previews: run a JPEG carver over the file to extract the embedded thumbnail JPEGs (low-res only).

Technical details

deep spec
Format typeProprietary binary thumbnail cache (flat index + concatenated JPEG previews)
Internal structureIndex/bookkeeping region followed by many small JPEG thumbnails packed back-to-back
Byte orderLittle-endian
Embedded thumbnail formatStandard baseline JPEG, 24-bit color, lossy-compressed
Thumbnail dimensionsSmall previews only (typically 512 px or smaller on the longest side); never full-resolution originals
Magic bytesNone at offset 0; JPEG SOI markers (FF D8 FF) appear at internal offsets where each embedded thumbnail starts
Version namingEncoded in the filename suffix: .thumbdata3, .thumbdata4, .thumbdata5, plus a trailing device-specific hash (e.g. --1967290299)
Typical file sizeTens of MB to several GB on photo-heavy devices
Typical location/DCIM/.thumbnails/ (hidden folder on Android internal storage or SD card)
MIME typeapplication/octet-stream (no registered MIME type)
Gallery indexing suppressionHidden by directory dot-prefix; sibling .nomedia file stops the gallery app from scanning the cache folder as a photo album
Container compressionNone at container level; embedded thumbnails are already JPEG-compressed
Safe to deleteYes - Android rebuilds the cache automatically; deletion may temporarily slow thumbnail loading for images and videos
PlatformAndroid only (not created or read on other operating systems)
Cache integrityNo checksums or integrity verification; treated as expendable - Android rebuilds the file rather than repairing it
Superseded byAndroid 10+ uses per-app private MediaStore/Glide thumbnail cache; visible .thumbdata files are rare on current devices
ReleasedAndroid stock Gallery / MediaStore thumbnail caching (pre-2015; .thumbdata3/4/5 across Android 4-7)
Latest versionNo public spec; filename variants .thumbdata3, .thumbdata4, .thumbdata5

THUMBDATA conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with THUMBDATA files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about THUMBDATA files.

Frequently asked questions

What is the .thumbdata file and can I delete it?
It is the Android gallery's hidden thumbnail cache (preview images for fast loading). Yes, it is safe to delete to free space - your real photos are untouched and Android rebuilds the cache automatically.
Why is .thumbdata so large (hundreds of MB or GB)?
It stores one small preview for every photo your gallery has ever indexed, so on phones with many images it grows large. Deleting it reclaims that space; it regenerates smaller and grows again over time.
How do I open a .thumbdata file to see the pictures?
You don't open it directly - it's a cache, not an image. To see the previews inside, run a JPEG-recovery tool like PhotoRec over it, which carves out the embedded thumbnail JPEGs (low resolution only).
Can I recover my deleted photos from .thumbdata?
Only the small thumbnails, not full-resolution originals. A carver extracts the cached previews - helpful when the original is gone, but quality is limited to the preview size.
What's the number after .thumbdata4 (e.g. -1967290299)?
An internal hash/version identifier the gallery app generated for the cache; it varies by device and Android version and has no meaning to the user.
Will deleting .thumbdata break my gallery?
No. The gallery just rebuilds the cache on the next scan. Thumbnails may load a bit slower the first time afterward.

References

1CGSecurity - PhotoRec (carves JPEGs from a cache file)www.cgsecurity.org
2Android Developers - MediaStore (thumbnail handling)developer.android.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.NOMEDIAAndroid No-Media Marker File
7.BINCD/DVD Disc Image (BIN/CUE)
8.RPMSGRestricted Permission Message
9.MDMarkdown Document
10.TMPTemporary File

Related extensions

.TORRENTBitTorrent Metainfo File
.MSOMicrosoft Office HTML/OLE Data Stream (oledata.mso)
.MD5MD5 Checksum File
.SHSShell Scrap Object File
.DDDAdobe Acrobat Distiller file
.DWLDrawing Lock File (CAD)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z