Tech / AI

How To Hide Files In a JPG Picture

Online Tech Tips is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

If your computer is used by multiple users, you’ve likely had the need to hide certain files on your computer. There are many ways to do that and one of them is to hide your files in a JPG picture.

You can actually embed your files in any JPG picture and all that users will see is just the picture itself. There are no signs of your hidden files and people won’t even know there’s something hidden in your JPG photos. However, if someone looks at the size of this picture, they might find it suspicious as this picture will be over-sized due to the hidden files in it.

Table of Contents
    How To Hide Files In a JPG Picture image - hide-files-in-jpg-featured

    You can hide your files in a JPG picture on both Windows and Mac machines.

    Use Command Prompt To Hide Files In a JPG Picture (Windows)

    If you’re a Windows user, you can use a command in the Command Prompt to hide your files in an image. This command combines both the files that you want to hide and the image that you choose to use in a single image file.

    When you open this image file, it appears as a regular image with nothing indicating there are files hidden in it.

    Keep a JPG photo ready with you on your desktop as you’ll be hiding your files in it.

    1. You’ll need to add the files that you want to hide to a ZIP archive. To do this, right-click on your files, click on Send to, and choose Compressed (zipped) folder.
    Use Command Prompt To Hide Files In a JPG Picture (Windows) image - make-zip-windows
    1. Move the ZIP file to your desktop.
    2. Use the Cortana search to search for and open the Command Prompt.
    Use Command Prompt To Hide Files In a JPG Picture (Windows) image 2 - open-command-prompt
    1. Type the following command to make your desktop the current working directory.

      cd desktop
    Use Command Prompt To Hide Files In a JPG Picture (Windows) image 3 - cd-desktop
    1. Enter the following command to hide your files in a JPG picture.

      copy /b source-image.jpg + your-archive.zip target-image-file.jpg

      Here’s what each part in the command means:

      source-image.jpg – this is the image that you already have on your PC and that you want to hide your files in.

      your-archive.zip – this is the ZIP file containing the files that you want to hide.

      target-image-file.jpg – this will be the resulting file that contains your image and your ZIP archive.
    Use Command Prompt To Hide Files In a JPG Picture (Windows) image 4 - hide-files-in-jpg-windows
    1. When the command is executed, a new JPG image file will appear on your desktop. It contains the files you wanted to hide in a JPG.

    Unhide Hidden Files

    You don’t necessarily need to use the Command Prompt to unhide files hidden in a JPG photo.

    1. To unhide your files, right-click on the JPG image where your files are hidden, select Open with, and choose WinRAR archiver.
    Use Command Prompt To Hide Files In a JPG Picture (Windows) image 5 - open-with-winrar
    1. You can click on the Extract To button to extract files from the archive and save them to a folder on your PC.
    Use Command Prompt To Hide Files In a JPG Picture (Windows) image 6 - extract-hidden-files
    1. Another way to unhide files is to change the extension of your JPG image. To do this, right-click on your photo, select Rename, and change the extension to ZIP.
    Use Command Prompt To Hide Files In a JPG Picture (Windows) image 7 - change-extension
    1. You can double-click on this renamed ZIP file to extract the hidden files.

    Use An App To Hide Files In a JPG Picture (Windows)

    If you don’t want to use the Command Prompt, there’s an app with a graphical user interface to hide your files in an image on your PC. It’s a completely free app and you can use it to both hide as well as unhide files.

    1. Download and extract the JPHS for Windows app on your computer.
    2. Launch the Jphswin.exe file by double-clicking on it.
    Use An App To Hide Files In a JPG Picture (Windows) image - open-jphs
    1. On the main app interface, click on the Open jpeg button to load your source image.
    Use An App To Hide Files In a JPG Picture (Windows) image 2 - jphs-load-image
    1. Navigate to where your image is located and double-click on it to add it to the app.
    2. Click on Hide in the app’s menu bar.
    Use An App To Hide Files In a JPG Picture (Windows) image 3 - jphs-hide-files
    1. It’ll ask you to enter a password to hide your files. Enter a password in both the fields and click on OK.
    Use An App To Hide Files In a JPG Picture (Windows) image 4 - jphs-set-password
    1. Choose the files that you want to hide in your JPG picture.
    2. When you’re back to the main interface, click on Save jpeg as in the menu bar to save your file.
    Use An App To Hide Files In a JPG Picture (Windows) image 5 - jphs-save-image
    1. Select a folder to save your JPG image with your hidden files in it.

    Unhide Hidden Files

    You can use the same JPHS for Windows app to unhide your files.

    1. Open the Jphswin.exe file.
    2. Click on the Open jpeg button in the menu bar.
    Use An App To Hide Files In a JPG Picture (Windows) image 6 - jphs-load-image-1
    1. Select the JPG image where you’ve hidden your files.
    2. When your image is loaded in the app, click on Seek in the menu bar.
    Use An App To Hide Files In a JPG Picture (Windows) image 7 - jphs-unhide-files
    1. Enter the password that was used to hide the files and click on OK.
    Use An App To Hide Files In a JPG Picture (Windows) image 8 - jphs-enter-password
    1. Choose the folder where you want to save your files.
    2. Right-click on the file that you just un-hid, select Rename, and change the extension to what it was before you hid the file. The file won’t open if you don’t do this.
    Use An App To Hide Files In a JPG Picture (Windows) image 9 - jphs-change-file-extension

    Use Terminal To Hide Files In a JPG Picture (Mac)

    If you’re on Mac, you can use a command with the Terminal to hide your files in a JPG image. This method works pretty much the same way as the Windows one.

    Make sure a JPG photo is available on your desktop. You can grab one from any website if you don’t already have anything to start with.

    1. Begin by adding the files you want to hide to an archive. You can do this by right-clicking on your files and choosing Compress. This’ll create a ZIP archive in the same folder as your files.
    Use Terminal To Hide Files In a JPG Picture (Mac) image - compress-files
    1. Copy the ZIP archive to your desktop.
    2. Click on Launchpad in the Dock, search for Terminal, and open it.
    Use Terminal To Hide Files In a JPG Picture (Mac) image 2 - open-terminal
    1. Enter the following command to make your desktop the current working directory.

      cd desktop
    Use Terminal To Hide Files In a JPG Picture (Mac) image 3 - cd-desktop-mac
    1. Use the following command in Terminal to hide your files in a JPG picture.

      cat source.jpg archive.zip > target.jpg

      Here’s what each parameter in the command means:

      source.jpg – this is the image file that you already have on your desktop.

      archive.zip – this contains the files you want to hide.

      target.jpg – this’ll be the resulting file containing both your image and hidden files.
    Use Terminal To Hide Files In a JPG Picture (Mac) image 4 - hide-files-in-jpg-mac
    1. To verify if your files are indeed hidden inside your JPG image, right-click on the newly produced image and select Get Info. You’ll see that its size is now larger than before which confirms your hidden files are really in there.
    Use Terminal To Hide Files In a JPG Picture (Mac) image 5 - get-info

    Unhide Hidden Files

    You’ll need to use the Terminal to extract files from your image file.

    1. Open the Terminal on your Mac.
    Use Terminal To Hide Files In a JPG Picture (Mac) image 6 - open-terminal-1
    1. Run the following command in the Terminal. Make sure to replace target.jpg with the actual name of the image where your files are hidden.

      unzip target.jpg
    Use Terminal To Hide Files In a JPG Picture (Mac) image 7 - unzip-hidden-files-mac

    Use An App To Hide Files In a JPG Picture (Mac)

    Mac users have a free app available called Steg to hide files in a JPG image. It has a nice graphical user interface to let you hide and unhide files in JPG photos on your machine.

    1. Download the Steg app and launch it on your Mac.
    2. Click on the second icon that’s for Open JPEG image to load your JPG file into the app.
    Use An App To Hide Files In a JPG Picture (Mac) image - steg-load-jpg
    1. Select the JPG file in which you want to hide your files on your Mac.
    2. Click on the Hide Data option to add files for hiding.
    Use An App To Hide Files In a JPG Picture (Mac) image 2 - steg-hide-files
    1. Select the files that you want to hide inside your JPG image.
    2. You’ll get a notification saying Data successfully hidden. Click on OK to continue.
    Use An App To Hide Files In a JPG Picture (Mac) image 3 - steg-files-hidden
    1. Click on the Save option to save your JPG image with your hidden files in it.
    Use An App To Hide Files In a JPG Picture (Mac) image 4 - steg-save-image
    1. Choose the destination for your JPG file.

    Unhide Hidden Files

    You need to use the same Steg app to unhide your files on your Mac.

    1. Open the Steg app and click on Open JPEG image.
    Use An App To Hide Files In a JPG Picture (Mac) image 5 - steg-load-jpg-1
    1. Select the JPG image in which you’ve hidden your files.
    2. Click on the Extract Data option in Steg to extract your hidden files.
    Use An App To Hide Files In a JPG Picture (Mac) image 6 - steg-unhide-files
    1. Choose the folder where you want to save the extracted files.

    What do you think of this not-so-common way of hiding files in a JPG? Let us know your thoughts in the comments below.