You can easily hide your files by setting their attributes to hidden. But that is very common method and anyone who knows, how to show the hidden files, can access them easily. So, we will show you a trick to hide your files or folders in image files using Command Prompt.
Inside images? Yes, we can hide files or even folders inside any image file. And it is not very easy to access hidden files unless you know the right method. Because, every time someone tries to open that image file by clicking on it, only image will open.
Hide Files inside Image Files using CMD in Windows
So, just get your files and sample image ready before we start. You can also hide folders, applications, documents etc. in the image. You just need Command Prompt which is available in Windows by default.
Step 1: Zip all Your Files and Folders into Single Zip File
First of all, copy all your files in a folder on your PC. After the compress all your files and folder into single Zip file. The steps are a bit different for Windows 10 and Windows 11.
Windows 11: Select your files and right-click on them. From the right-click context menu, select Compress to ZIP file.
Windows 10: Select all files that you want to hide in image and right-click on them. From right-click menu, select Send to > Compressed (Zipped) Folder.
A zip file will be created in the same folder. For simplicity, we have named the zip file as
Step 2: Copy Zip file and Sample Image to a Folder
Now, copy the Zip file and your sample image file to same folder in your PC. In this tutorial, we have used a PNG image named as
Step 3: Open Command Prompt in Same Folder
After you have copied your Zip file and sample image to same folder, open command prompt in the same folder. For that, type
cmd in address bar and press Enter.
After that, a Command prompt window will open in the same location. You can verify it by the prompt path. We will now hide your files in image using command prompt.
SEE ALSO: 10 Cool Command Prompt Tricks for You.
Step 4: Hide Files in Image using Command Prompt
Now let’s start hiding process. Type following command in Command prompt and press Enter.
copy /b image.png + file.zip final-image.png
In above command,
image.png is our sample image,
file.zip contains all our files and
final-image.png is our final output image file.
You can see that
final-image.png has been saved to the same folder. You can also see that the size of
final-image.png is equal to the total size of both image and zip file.
Step 5: Open Final Image Normally
Close command prompt and go back to the folder. Now, double-click final-image.png file to open it. It will open with your default photo viewer app.
So, your files are safe now. If someone tries to open
final-image.png, they will only see the photo. The files hidden inside the image won’t be visible.
Step 6: View Hidden Files inside Image using WinRAR
We will need WinRAR to view the hidden files. If you don’t have WinRAR installed, you can download it from official website. You may also try other archiving software.
Now, right-click on
final-image.png and select Open with > WinRAR archiver.
Now, you will see your hidden files or folders in WinRAR archiver. You can easily extract them to unhide them.
Hide Your Files and Folders inside Image to Protect them
Above tutorial explained, how you can easily hide your important files, folders, documents etc. in image. You can use this method to play tricks on your friends. We have used WinRAR in this tutorial, but you can use other archiving softwares also.
Hope you liked this tutorial. In case you face troubles while hiding your files in image, feel free to drop a comment down below. You may also subscribe to our newsletter to get such tips and tricks directly into your inbox.