How to Hide Files Inside Pictures

Tutorial Nov 24, 2020

A simple and fun way to hide data from prying eyes. Or maybe you want a fun way to send secret letters to someone without anyone between you and them suspecting anything. This guide will teach you how to hide files inside pictures.

For Windows and Linux, the steps to achieve this is not very complicated. Though, you will need to use the terminal interface. So, I hope you are comfortable with it.

Ingredients required:

  • An image file
  • A zip file containing files you wish to hide away

Note: The image formats that I tested and recommend using are .jpg, .png, .gif (animated and static works).

Note: Password protected .zip files will work too.


On your desktop, create a new folder, you can name it anything you want, or even leave it with the default name windows likes to give newborn folders. For the sake of this walkthrough I'm going to assume that you named it "random_folder", and it will be  our test ground.

Grab and put your picture and .zip file inside this folder for us to use.

The "random_folder"

Now that we have our two files (the picture and zip file) ready, and have a place to work on (the "random_folder") we need to get there on a command prompt. Do Win + R, type in "cmd", and hit enter or click the "OK" button. Then, run the following command to get to our folder.

cd Desktop\random_folder

And then the magic spell that will merge the two files into one.

copy /b chest.jpg + output.jpg

Note: the order of the filenames on the copy command is important, image file comes before the zip file, and the output filename last. The /b switch is used to create binary files.

The newly created output.jpg is capable of acting out two roles. If you change the the file name from output.jpg to it will behave as a zip file instead of as an image file.

You can now use an archiving tool like WinRAR or even Windows File Explorer to access this file to get hold of its contents. Do know that this file is not a typical .zip file. So, not all archiving software out there will recognize and handle it gracefully. I only tested it out with the two I just mentioned and 7zip.

Note: If you're using 7zip and want to open the file with it, atleast at the time of writting this, 7zip will complain and fail. You will need to handhold 7zip and tell it to specificly open the file as a zip file . Rightclick and, 7-Zip -> Open archive -> zip


First, fire up a terminal, change your working directory to where you have your image file (chest.jpg) and zip file (secrets.jpg) is at. And, just execute the below command to merge the two into a single file.

cd random_folder
cat chest.jpg > output.jpg

Note: The order of the filenames on this cat command is important, image file comes before the zip file, and the output filename last.

This will result in a file called output.jpg. You can rename it to to extract its contets.

Rename the .jpg to .zip by,

mv output.jpg

Extract's contents with,


That's all folks!



Simple, like quantum physics.

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.