Without the correct filename extension, macOS appears unable to associate files with apps, preview then using QuickLook, or index them for Spotlight. But there’s more to determining file types than extensions, there’s also a little magic involved.

From the first image thumbnails around 35 years ago, the Mac has delivered better thumbnails and previews of documents, most recently using QuickLook. Here’s how it works, and how it can fail.