Introduction: MP3-GIF: Hide Music Inside a Picture

Picture of MP3-GIF: Hide Music Inside a Picture

In this instructable i will teach you how to hide an mp3 music file inside a gif image by hand.

all credit for this idea goes to thomas scott

Step 1: Ingredients

What you will need:
A GIF image

An MP3 music file (preferably not too long)

A computer (hopefully you figured this one out on your own :P )

Step 2: Open Your Command Prompt

Picture of Open Your Command Prompt

there are a thousand and one ways to open your command prompt. here's one of them.

-windows users, hit windows+r (that's hold the windows button and hit r)
and type cmd into the window that opens.

-Linux users right click and choose xterm.

-Mac users should be the same as Linux users, but I haven't tried this in mac, so good luck.

\/if you know a better way, list it in the comments section.\/

Step 3: Navigating Using Command Line

Here's a quick rundown on command line navigation:

ls - lists all the files in the current directory
cd - changes what directory you're in (traverse directories using this)
cat - can be used to view the contents of a file or to copy a file or to combine two files.

dir - lists all the files in the current directory
cd - changes what directory you're in (traverse directories using this)
copy - can be used to copy a file or to combine two files.

how to use the cd command:
cd <directory/folder you want to go into>
cd .. backs out of the current directory/folder

Step 4: Combining the MP3 and the GIF

make sure you are in the same directory/folder as the mp3 and the gif.

for Windows users type:
copy picture.gif /b + music.mp3 /b combined.gif
(where picture.gif is your gif image, music.mp3 is your mp3 music file, and combined.gif is the final product)

For Linux/Mac users type:
cat picture.gif sound.mp3 > picture2.gif
(where picture.gif is your gif image, sound.mp3 is your mp3 music file, and picture2.gif is the final product)

after this you should have a finished .gif product.

Step 5: Finale

the .gif that you have now looks like a normal gif, but if you throw it into a music player it will play the mp3. The little devil guy on the front of this is one i made while making this instructable. download it and try it out.

if you dont want to do it this way or you want to know more go check out Thomas scott's instructions



neocastillo (author)2007-03-06

Hmmm seems interesting but you file didn't play in windows media player, quicktime, or VLC.

spedoinkle (author)neocastillo2007-03-06

well, screw my try at it then, make your own!!!

Remguy (author)spedoinkle2015-12-22

LOVED this reply! Good on ya, mate! He, he, he...

Saluo (author)2015-12-14

btw right click in the windows botton (windows 10) and you have the cmd there with or without admin
some one 9 years later knows how to do this (add sount to gif) properly ?? ^^

TheDarkNinja (author)2007-03-07

Yeah, mine not working either. Tried a few variations of the command. I can get the image to show up in media player, and it knows the title of the song, but there is no sound and stops playing after a few seconds. Any ideas?

spedoinkle (author)TheDarkNinja2007-03-09

yeah, go to thoma's scott's page, he has a web baed version you can try out.

Saluo (author)spedoinkle2015-12-10

its not working that page ... any other place ? i did it and its not working on vcl, windows media player, groove music
not on facebook, not on gifyu.. bu thanks for the share

In0xI (author)2007-10-04

Only works with winamp. Wmediaplayer, realplayer, quickplayer - not workin but showing the image.

RedFlash (author)In0xI2009-05-17

Works with vlc media player

Saluo (author)RedFlash2015-12-10

not with mine

emuman4evr (author)In0xI2008-06-13

I discovered the same thing.

rkretzschmar (author)2014-01-20

I know of a Vic Gundotra who is pioneering the VIC display of merged .giff and .mp3 display drivers for Google's Wall and L.E.D. ASCII N.E.W.S. paper. (author)2010-10-06

The little devil doesn't work, i think instructables convrts all pictures when it gets uploaded therefore loosing your compressed folder.

dyankee50 (author)2010-01-28

First comment is that your link to Tom Scott's page is broken and I didn't see anything on his site about this.
Second is that I've experimented with this for half dozen tries and all I get  is a Gif that displays the little devil picture in my player. (Quicktime, MediaPlayer Classic and Windows Media Player 11 (on XP SP3). The file is properly concatenated/combined (according to length) and  MPC  counts time as if it were playing it but no sound; QT and WMP display the GIF but don't do anything else.
If I rename the combined file extension as MP3 they play it ok without the picture.

Amadeos (author)2007-03-27

Now, using your idea, instead typing in: "copy Picture.gif /b + Music.Mp3 /b Combined.gif" Use "copy Picture.gif /b + Music.Mp3 /b Combined.mp3" It works better for me, (it might be because of my Windows version (98) but thats what works best!)

RedFlash (author)Amadeos2009-05-17

What? The whole point of this instructable was to "conceal" the mp3

RedFlash (author)2009-05-17

Can this method be reversed? Because I don't want to have to go open with...

stuuf (author)2009-02-07

Can you also do Vorbis-PNG or FLAC-JPEG2000 or anything that doesn't use decades-old obsolete compression standards?

ELF (author)2007-07-07

Hey, was just wondering... Isn't this also used for viruses and the alike? Or could be... ??

schimmi (author)ELF2008-07-21

i just tried it with an exe file i wrote and it works fine.

pyromanizak (author)ELF2008-05-14

exactly, but they usually combine an exe (virus) with the picture or music file.

emuman4evr (author)2008-06-13

The only thing I could play the combined file with was Winamp, Windows media played failed like it usually does...

schetleft (author)2008-01-18

you can hide just about anything inside the jpeg. you just need something to extract the files. I'll probably make an instructable on my way

Ingerson (author)2007-03-23

This is often used to host content on forums that only allow image files to be uploaded. You can add mp3s and archives such as zip/rar to jpg/gif files. Usually what people do is when saving the file from the web to local PC is rename with the correct suffix (such as mergedfile.mp3 or mergedfile.rar) and it just opens in the correct program.

illegalc0de (author)2007-03-12

you can also hid rar files in the gif as well. i did this on windows so linux and mac users i think you can work out what im doing. use winrar to compress a file(s) then run the command as copy pic.gif /b %2B ziped.rar /b out.gif then double clicking on the file (out.gif) will open up in a picture viewer whilst opening it up in winrar will show you the file(s) and the beauty of this is that i cant see any data loss. the only problems are 1 if you don't put a password on the rar file then its very insecure and 2 people can see that a gif has something hidden inside it cause of the file size of the gif. but great though. thanks.

VIRON (author)2007-03-08

This works on hardware mp3 players because the decoder chip is silent while it is reading non-mp3 data, normally such as the headers. This is useful because gifs are small (can be,should be), and don't waste much memory. You could make different icons for different kinds of music. If it's your band's music, use your cover art.

spedoinkle (author)2007-03-06

cd\ in windows brings you to the root directory cd / does the same thing in linux

spedoinkle (author)2007-03-06

open a text document using notepad. type cmd inside the note. save note as .bat double click on your new .bat

spedoinkle (author)2007-03-06

go to the start bar and click run, then type cmd or command

lemonie (author)2007-03-06

Last time I was using a Mac, it stubbornly persisted in maintaining that doccuments created by e.g. MS Word were MS Word doccuments & refused to open them with anything else. Will this / does this work on a Mac?


LasVegas (author)lemonie2007-03-06

...a Mac, it stubbornly persisted in maintaining that doccuments created by e.g. MS Word were MS Word doccuments & refused to open them with anything else

Funny how that works ain't it? :) You can easily change the default app for any suffixed document on a Mac by useing the Open With option in the Get Info window. Once changing the default program for that specific document, there will be a button to "Change All" for all others of that suffix.

Now there's also an older system of file identification which is a carryover of the old Classic OS that identifies the document through a pair of 4 digit codes (fileCreator & fileType). While they still could be present, they should no longer effect much in OS X.

If this doesn't prove to be the case on your Mac, use Disk Utility and "Repair Permissions" on your drive.

Will this / does this work on a Mac?

Apparently not. I've tried it multiple ways. It didn't. It's very easy to embed graphics into an MP3 using Apple's own utilities (including Garage Band), so I don't really see this as a problem.

LasVegas (author)2007-03-06

To download the original uploaded GIF, use this link, it should work as spedoinkle claims. If not, try changing the sufix to 'mp3' before opening with the music player.

On a Macintosh, the terminal window is opened by running the Terminal application in the Utilities folder.

neocastillo (author)LasVegas2007-03-06

Changing the suffix didn't seem to help either.

LasVegas (author)neocastillo2007-03-06

You're right, it doesn't. While QT did see that an audio portion should be present, it played silence.

tyeo098 (author)2007-03-06 how do you separate them?

scotty3785 (author)tyeo0982007-03-06

Separating would be more tricky! Each separate file has a header and a footer so that it knows what it is basically. Concatenating the two files would keep the headers and footers so it should be possible to separate the files. It would probably require a piece of code to be written in C perhaps to find the end of one file and the start of the next and to split them up. Once you know what the headers and footers look like it would be a trivial task.

royalestel (author)2007-03-06

Well, wouldn't play in windows media player, but I suppose you mean an mp3 device. Nifty idea. Hope it works on my little squirt.

jeffreyf (author)2007-03-06

This is pretty awesome. I didn't know the two formats could be combined without corrupting either one. It's a great steganography trick.

Proteus (author)jeffreyf2007-03-06

Most file formats have some kind checksum for the whole file and might not work with this method but Gifs will :-)

Kudos to you spedoinkle =D

About This Instructable




More by spedoinkle:MP3-GIF: Hide Music Inside A Picture
Add instructable to: