To hide data in an image, you need WinRAR installed on your computer and Microsoft Windows with access to the command prompt. If you do not have WinRAR installed on your computer, you can find a link to download this program through our recommended download section.

Hiding a message or other data

  • Create a text file with your secret message or hidden data and highlight it, then highlight each of the files you want to secretly add to the image file. For example, we created one text file called message.txt.
  • Highlight and right-click the file. Select the Add to message.rar option, where “message.rar” is the name of the file you right-clicked.
  • Open the Windows command line.
  • Change to the directory (cd command) containing the .rar file and the image you use for the hidden text.
  • Type a command similar to the example below.

copy /b secret.jpg + message.rar hidden.jpg

In the command above, “secret.jpg” is the image name, “message.rar” is the file name from step two, and “hidden.jpg” contains the hidden message. See the copy command page for additional information about this command.

Steganography is the art of hiding secret data or a message in another file or object.

Once the steps above are completed, you have an image called “hidden.jpg” containing the hidden message. Below is an example of the hidden.jpg we created doing the above steps.

It’s a good idea to make sure you’re still able to open and view the image before saving it or posting it on the Internet.

Viewing the secret message

To view the hidden message or hidden files, you must have followed the above steps. If the steps above were performed to create the image, follow the steps below to view the data.

  • Save the image to the computer, if you’re viewing it online.
  • Open WinRAR by clicking Start, Programs, WinRAR, and then WinRAR.
  • In WinRAR, click File, then Open archive. In the open window, make sure your files of type option is all files and not only compressed ones.
  • Browse to the location of the image and double-click the image to open it.
  • Once open, it should display the file(s) contained in the image that can be extracted from the image.

You can use the secret image above for an example image, if needed.

  • See our image and RAR definitions for further information and related links.
  • Image help and support.