3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

How to Hide Files Inside Pictures

How to Hide Files Inside Pictures
In this Instructable, I will show you how to hide files inside a picture file. They are almost undetectable, and can be made very hard to get.

You will need these things:
1) A picture to hide stuff in
2) Files to be hidden
3) A file compression software (I use 7-zip, which you can get here)
4) Command Prompt

UPDATE
You can not only hide files in pictures, but music files, videos, and just about anything else.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Compressing the Files

Compressing the Files
The first thing you will do is make a new folder on the C drive. I will call this folder "x". Inside this folder, place the files to be hidden and the picture that will hide everything. The picture that will hide everything in it cannot have any spaces in the name, so I called it "Picture".
« Previous StepDownload PDFView All StepsNext Step »
51 comments
1-40 of 51next »
Feb 15, 2012. 4:52 PMwaterlubber says:
COMPRESS COMPRESSED FOLDER! Or in 7-Zip bump up comression ratio...
Aug 27, 2011. 3:10 PM122boy says:
how do you extract the files
Jan 28, 2010. 5:12 PMx17 says:
Thanks for the tutorial! I've always wondered how to do this ever since I saw the people on NCIS find files hidden in a photo.

This must be why most sites have a limit of 2MB (like facebook) when you're uploading photos. People could store pirated software in a simple photo, upload it to their facebook, and share it with the world.


Feb 24, 2011. 4:04 PMerikals says:
btw what episode of NCIS was the files found in?
Jan 28, 2010. 5:34 PMx17 says:
Hmm.. I've successfully hidden a text file (compressed to .7z with 7Zip) inside the photo (jpg) but I can't figure out how to get it out. I right click the picture and go to 7 Zip but it only gives me options to add it to an archive. There's no options to unzip it.
Feb 18, 2010. 12:12 AMerikals says:

The syntax should be:
copy /b zipfile + oldfile.ext newfile.ext
and not
copy /b oldfile.ext + zipfile newfile.ext
otherwise you cant get a file archive.

where zipfile is your archived file, oldfile is the old file, and newfile.ext is the file name you want to create.
Hope this helps
PS Most modern freeware archiving programs won't open files without the proper extension. You need to drag the file to the shortcut of 7-Zip or the program you are using and release the mouse button.

Nov 8, 2010. 5:34 PMaccount3r2 says:

HA HA! i got something to work! if someone knows this trick, you can still do it on a BAT (batch) file, and the only way to open it is to press extract on the file! bwahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha
hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha
hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha
hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha
hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha
hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha
hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha
hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha
hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha
hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha
hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha
hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha
hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha

WOO! I am out of breath... lol
Oct 6, 2010. 6:49 AMJay_ says:
Hey NINJA!! ^^
Oct 6, 2010. 6:50 AMlanky.ninja says:
... this is supposed to be for the 'ible, HI
Oct 5, 2010. 7:47 AMlanky.ninja says:
Great 'ible, this also works for some video formats (wmv, etc) and some music (mp3, etc)
Jul 22, 2010. 9:20 PMBad2Grim says:
yes the picture can be edited
Aug 10, 2010. 3:15 AMrafitf says:
it depends on the file type. .bmp for example cannot be edited while some others can be
Dec 13, 2008. 11:30 AMEl Mano says:
This is a very useful technique. I wrote a batch file that does this in a way not-so-computer-savvy people could use. I will post the code soon.
Jun 20, 2010. 7:20 PMgreat4mee says:
please send me the link to download it i have gotten really close to making it or just copy the text and write it on here
Feb 14, 2009. 3:14 PMabsolute zero says:
hmmmm...... you could do this using the same code he used in a batch file.... but that would mean editing it every time................... could you send me the code you used??
Apr 23, 2010. 12:46 AMRedFlash says:
Just rename change the .bmp to a .7z and it will open anyway. Also, it corrupts the bitmap
Apr 13, 2010. 1:13 PMllamma1010 says:
If you did it right, then you should have a new picture saved in the "x" folder with whatever name you gave it. You can delete the origional files you wanted hidden now. find the spelling error

Nov 2, 2009. 6:56 PMJ-Manoo7 says:
just had to come back and say thx. i was able to hide an entire secret project on my mp3 player so i didn't have to carry a flash drive..

the song i used
Jan 28, 2010. 5:15 PMx17 says:
You do know you can use an MP3 player as a flash drive right? Copy the files to it just like you would as a flash drive. The only difference being the files might show up strange if they're in the same folder as the music.

For example: My iPod nano and my friend's iPod shuffle both have portable 7Zip and portable FireFox on them so we could use those programs on the computers at our old high school where we only had Limited Access accounts.
Jan 28, 2010. 6:33 PMJ-Manoo7 says:
i sure do, and i used to do it that way and create folders on my mp3 player and set them to hidden so they wouldn't show up when using the player, but you could still see them when they connected to a computer so i just thought i was neat to be able to hide them in a playable file. also need to get portable firefox so thx for the reminder haha
Jul 10, 2009. 2:18 PMPumpkin$ says:
Hey, hate to bother ya, But I'm doing this on Vista EXACTLY as you showed it and when I type "cd x" it gives me the message "The system cannot find the file path specified" yes, I know what that means but how do I correct it?
Jul 21, 2009. 10:40 AMJ-Manoo7 says:
when CMD prompt starts up it should say something like this:

Microsoft Windows XP Version 5.1.2600
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\John>

this means it is in the folder "John" inside the folder "Documents and settings"

if your "x" folder is in "C:\x"
then you have to navigate to that folder
if you type:

cd..

it will jump up a directory
example:

Microsoft Windows XP Version 5.1.2600
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\John>cd..

C:\Documents and Settings>

it went up a directory, you need to navigate to "C:\" if that is when you placed your folder, so im my case i need to "cd.." one more time

Microsoft Windows XP Version 5.1.2600
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Boys>cd..

C:\Documents and Settings>cd..

C:\>

now i am in the "C:\" directory and i can type

cd x

and it will find the "x" folder

if you are in a different drive that the one that you placed your folder
for example CMD prompt says:

Microsoft Windows XP Version 5.1.2600
(C) Copyright 1985-2001 Microsoft Corp.

D:\Kristy Documents>

and you need to be in the "C:" drive (or vice versa)
you need the type:

CHDIR /d C:

which will change drives to "C:\"
what it looks like in CMD:

Microsoft Windows XP Version 5.1.2600
(C) Copyright 1985-2001 Microsoft Corp.

D:\Kristy Documents>CHDIR /d C:

C:\>

now it is in the C drive and you can type:

cd x

and it will find the "x" folder

if none of these work type:

CHDIR /d C:\x

which could jump you straight to the folder

i know this is done in XP but it should work the same way
hope this helps
-J
May 25, 2009. 3:14 AMerikals says:
Thanks for the great 'ible and keep up the good work.
May 18, 2009. 10:43 AMMetallurgy says:
Can you put multiple files under the same picture, or is it a 1 picure, one file kind of deal?
May 19, 2009. 4:43 AMMetallurgy says:
Using the file compresser you provided? Or just the standard zip folder?
Apr 9, 2009. 4:26 PMdmnhunt3r says:
can you make it more confusing?
Apr 16, 2009. 5:47 PMdmnhunt3r says:
whoa i cant read all your fancy words. ill just go to youtube, i bet they have some nice flashy pictures and stuff thanks
Mar 31, 2009. 5:55 PMLithium Rain says:
I would add to use a tool like freeraser to obliterate the original file after deletion - so as not to leave the file lying around recoverable. :)
Sep 29, 2008. 9:17 AMKaelessin says:
this is similar to a technique we just discussed in my CSE466 (computer system security) class called Steganography. Your way is great but the problem is you do end up with huge picture files and if someone notices this then it's pretty easy to get the files out. In steganography what you do is replace the last (least significant) bit of each pixel with one bit from your file so your file is spread out over the whole picture (kinda like secret messages where the last letter of each word spells something out) since it's the least significant bit you can't see the difference in the picture and more importantly the picture's size does not change. Also you can hide any kind of file so if you wanted you could hide compressed folders too. As for size, you could hide a 1.1920929MB file in a standard 10MP picture. to answer your question about editing the picure, in either method, you can't edit the picture since you'd be changing the binary makeup of the pic. In your method you might get lucky and not overwrite anything but this isn't likely. With "mine" you definitely can't edit the picture.
Mar 3, 2009. 2:43 PMgschoppe says:
actually, Steganography is a blanket term for any form of hiding a message in such a way that the very existence of a hidden message is unnoticeable... a basic code where you take the first letter of each word in a sentence to form a message, is a simple form of Steganography, as long as the sentence doesn't seem out of the ordinary.
Mar 3, 2009. 3:11 PMKaelessin says:
*nods* true true!
Feb 14, 2009. 3:18 PMabsolute zero says:
how advanced would it be to do that? it seems a little bit beyond my level, but hey, i like trying new things
Feb 15, 2009. 1:24 AMKaelessin says:
depends really . . .If you're pretty good at coding and dealing with data streams then it should be pretty easy to make a program to do this but if not then no sweat, there's programs already written that do just this(some of them take further steps too)
Dec 8, 2008. 10:29 PMArbitror says:
Tutorial? PM me.
Dec 9, 2008. 4:25 PMKaelessin says:
well there's a great ible on it that talks about how it works and how to do it by hand with another image but there's a huge number of free programs out there that will do it for other types of files. my experience with it has been mostly experimental and theoretical so unfortunately I would not consider myself any sort of expert on it.
Dec 9, 2008. 5:29 PMArbitror says:
Thanx! I prefer to do stuff by hand, so I can learn.
1-40 of 51next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
41
Followers
6
Author:Crazy Leprecaun