Google Sheets iconSwift icon
Published at
Updated at
Reading time
1min

This post is part of my Today I learned series in which I share all my learnings regarding web development.

We've all been there: we worked on a Microsoft Word or Macos Keynote document, pasted lots of images/screenshots, crafted a beautiful storyline, and moved on with our lives.

A few weeks later, we have another use case for the embedded high-res images, but now they're gone. Maybe we deleted the original files, or they're buried somewhere in our email inboxes; who knows... We see the files right in front of us in Keynote or Word, but there doesn't seem to be a way to get our own images out of these programs. It's 2020; how can it be so hard?

Today I came across a tweet from Chris Heilmann that gave the solution. He shared that docx and key files are zip archives.

Follow these steps to extract your images and media files from Word and Keynote files:

  • Copy the docx or key file that embeds your media files.
  • Rename and change the file extension of the copy to zip (e.g. presentation.key should become presentation.zip).
  • Unpack the renamed copy.
  • Access your media files in full glory and resolution!

If you're a developer and want to save some manual steps, I published the CLI tool extract-media that does the renaming and unpacking in one go.

Related Topics

Related Articles