How to Hide Files in Image Using Command Prompt

You can easily hide your files by setting their attributes to hidden. But that is a 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 the image will open.

SEE ALSO: How to Hide Text Message in Images using Command Prompt?

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 a Single Zip File

First of all, copy all your files into a folder on your PC. After that compress all your files and folders into a 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 the image and right-click on them. From the right-click menu, select Send to > Compressed (Zipped) Folder.

Select And Zip All Your Files That You Want To Hide Behind The Image
Select and Zip all the files that you want to hide inside the image

A zip file will be created in the same folder. For simplicity, we have named the zip file as

All Files Compressed Into A Single Zip File - hide files in image using command prompt
All files are compressed into a single Zip file

Step 2: Copy Zip file and Sample Image to a Folder

Now, copy the Zip file and your sample image file to the same folder on your PC. In this tutorial, we have used a PNG image named as image.png.

Copy The Sample Image And Zip File To A Folder
Copy the sample image and Zip file to the same folder

Step 3: Open the Command Prompt in the Same Folder

After you have copied your Zip file and a sample image to the same folder, open the command prompt in the same folder. For that, type cmd in the address bar and press Enter.

Type Cmd In The Address Bar And Press Enter To Open Cmd In Same Folder Location
Type cmd in the 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 the image using the command prompt.

Open Cmd In The Current Folder
Command Prompt in the current folder

SEE ALSO: 10 Cool Command Prompt Tricks for You.

Step 4: Hide Files in the Image using the Command Prompt

Now let’s start the process. Type the following command in the Command prompt and press Enter.

copy /b image.png + final-image.png

In the above command, image.png is our sample image, contains all our files, and final-image.png is our final output image file.

Hide Zip Files in inside The Image Using Command Prompt
Hide the Zip File in the image using the Command Prompt

You can see that final-image.png has been saved to the same folder. You can also see that the size final-image.png is equal to the total size of both the image and the zip file.

Final Image Saved To Same Folder
The final image saved to the same folder

Step 5: Open Final Image Normally

Close the command prompt and go back to the folder. Now, double-click the “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.

Final Image Opens Normally With Photos App
Final-image.png opens normally with the Photos app

Step 6: View Hidden Files inside the Image using WinRAR

We will need WinRAR to view the hidden files. If you don’t have WinRAR installed, you can download it from the official website. You may also try other archiving software.

Now, right-click on final-image.png and select Open with > WinRAR archiver.

Open Final Image With Winrar
Open final-image.png with WinRAR

 Now, you will see your hidden files or folders in WinRAR archiver. You can easily extract them to unhide them.

Open Final Image With Winrar To View Files Hidden Behind Image
View hidden files using WinRAR

SEE ALSO: How to Hide Files and Folders on Mac using Terminal?

Hide Your Files and Folders inside the Image to Protect them

The above tutorial explained, how you can easily hide your important files, folders, documents, etc. in an 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 software too.

Hope you liked this tutorial. In case you face troubles while hiding your files in an 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.

Editorial Staff

Hi there, we are the editorial staff at WINDOSPC (former HELLPC). We are a team of funny and technical people. Feel free to get in touch with us via Contact-Us page.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.