How to Hide Files in Image using Command Prompt

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.

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 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.

Select And Zip All Your Files That You Want To Hide Behind The Image
Select and Zip all your 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 compressed into 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 same folder in 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 same folder

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.

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 image using command prompt.

Open Cmd In The Current Folder
Command Prompt in current folder

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 + final-image.png

In 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 Zip File in the image using Command Prompt

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.

Final Image Saved To Same Folder
Final image saved to same folder

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.

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

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.

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 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.

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.