Skip to content

How to hide text inside an image – Trick

Hide your text LockWell, there are at times when you need to hide files from someone. Say, a text file which has some important data that you need to hide from everyone. So, this post will teach you how to hide text in an image.

Now, open notepad and give two lines space and then write anything you would like to make secret like given in the below image:

Hide text in picture 1

Now, take an image. I’ll use Tech2Hell’s logo.

Hide your text in image

Make sure to keep the image and text file in the same directory.

Now all you need is a command prompt window. So go to Start-> Run-> type “cmd” and press enter.

Navigate to the folder where your files are stored using “cd” command.

Now type the following command:

copy /b Image.jpg + Text.txt Output.jpg

Where, Image.jpg is the name of your image file and Text.txt is the name of your text file. Give a space between [Image.jpg + Text.txt] and [Output.jpg]

Output.jpg is the name of the file that will be created after you run this command.

Make sure that Image file name comes first and then the text file name after copy /b. Doing the opposite will not work.

Now, press enter and you’ll see an Output.jpg file that will get created in that same directory. You could now open the image, the image will open normally. Now the trick comes, open the Output.jpg file with notepad and you’ll see something like this:

Hide your text in image

Now, scroll down to the end and you’ll see the Text that you wanted to hide. It will look something like this:

Hide your Text in Image

The same thing can be done using a windows batch file.

And then you just found a way to hide your secret content in an image.

Now, lets do the same thing using a windows batch file:

To make a batch file:
Open notepad and write the following code:

copy /b Image.jpg + Text.txt Output.jpg

Where, Image.jpg is the name of your image file and Text.txt is the name of your text file. Give a space between [Image.jpg + Text.txt] and [Output.jpg]
Output.jpg is the name of the file that will be created after you run this batch file.

Save the notepad file as ImageHide.bat

Double click on the batch file to create Output.jpg. And, now you’ve also learnt to hide the text in image using the windows batch file.

Enjoy HIDING!

If you Like this post?  Follow us on Twitter @imacify and Like us on Facebook.  To Get Regular Updates Subcribe Our Feeds.

33 thoughts on “How to hide text inside an image – Trick”

    1. Yes, to some extent you’re correct. But “TERRORISTS” use encryption and the text is not clearly visible when you try to drag the image onto the notepad. In our case, it was just a simple command prompt trick that combined two files using the “/b” switch of the copy command. There are some softwares too that can help you to hide text in an image. Google about them and you might get to more about them. Thanks 🙂

      1. /b makes the file into binary format then rearrange the nature of the file to wat we we mention… thats why we need /b. simple and effective

    2. Game engine architecture

      I’m quite sure terrorists aren’t stupid enough to use this kind of encryption. They’re probably a little more advanced than we think..:-D

  1. Hey there is an another way of this same syntax.

    copy /b filename1.ext + filename2.ext filename3.ext

    ex:
    >start cmd prompt.
    >locate current working directory.
    >copy /b apple.jpg + many pictures.rar tada.jpg

    > make sure that so many .jpg , .mp3 are compressed by rar.
    > then do as above.
    > to reveal the rar content(archive of collection wat we made) just drang and drop in rar.
    >then extract to view the content.

    {It is a very simple code but much more efficient}

  2. Ya, but say if your image’s size is in KBs and your rar file size in in MBs then the output image will be in MBs and one can easily make out… 😀

    1. Thanks Sumanth. Yes, exactly. You can call it cryptography as crypto deals with hiding something and this too accomplishes the same thing. There are also other tools which helps you to do the same thing.

  3. Pingback: Siege » Blog Archive » pictures to txt

  4. Pingback: Push» Blog Archive » txt pictures

  5. hi..
    i found it interesting and followed the same thing and got the result, but the thing is i can’t able to save a pic or image file, whenever i do it it get saved in .txt format. how shall i reverse the process which i have done previously.. please give me a solution.

  6. i have tried its usable………………….but i want to know can we change the location of the text from top or in the middle………………….pls some body help me with the same………….

  7. this is great, ive created a batch program that includes this then it saves to a folder which gets hidden an only visi le by typing password in batch file.

  8. Neat little trick. Just remember that it’s not the same as the text being encrypted, and it’s definitely not a secure way of hiding data.

  9. How would you make this code do the merging of the text to every picture in a folder without manually putting in the image name? I have tried copy /b *.jpg + secret.txt but it only does the first image.
    Any Ideas?

Leave a Reply

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

*