How to hide a .rar in a jpeg file

rar in a pic

Here’s some good old instructions that I found to hide a .rar file in a jpeg so that you can open it as either…

  1. Get your .rar file and put it in the same directory as a jpeg picture (c:\hidden is a good place to put it)
  2. Open up a command prompt by clicking Start/Run and typing “cmd” and click ok.
  3. In the DOS window, type “cd c:\hidden” to navigate to the folder
  4. Type “copy /b input.jpg + input.rar ouput.jpg
    (where input jpeg is the picture you want to show, input.rar is the file you want to hide and output.jpg will be the name of the new combined file)

That’s it! You can double click the new file and it will show it as a picture, BUT… if you open it with winrar, you will see the files contained. The picture above has a secret file in it, right click and save picture to your computer and then open it with Winrar to see what I put in there!

About Andy

This is my personal website where I (occasionally) post about things going on in the world of me. I am the creator of CommentLuv and administrator of comluv.com
Code , , , , ,

0 responses to How to hide a .rar in a jpeg file


  1. Lex: thanks for letting us know. very useful!

  2. Very useful information for me. Thanks.

  3. This is a pretty neat way to send a hidden message. If you find the Zip IN a Zip deal thet would be even better. I’ll check back. Fred

  4. Pingback: » Animated DIV slide > FiddyP

  5. Pingback: » Stumbleupon traffic surge Caught on video.. > FiddyP

  6. Adrienne | online affiliate marketing program

    Hello There,

    Just thought I’d say that was very cool thanks for the tip.

  7. Tee

    This is just brilliant!
    I don’t have a real need for it, but it is one of those cool nerdy tips that are just fun to know!

    Tee’s last blog post..Breakthrough in Treating Crohn’s Disease

  8. tee: it’s useful and I like knowing it but I still haven’t found a legitimate use for it yet!

  9. Pingback: Useful Links | My two pennies

  10. This is just brilliant!
    I don’t have a real need for it, but it is one of those cool nerdy tips that are just fun to know!

  11. Strider

    @Andy Bailey
    Andy I created such an embedded jpeg using RAR, then analysed that file using Forensic Tool Kit(FTK) analyzer. But I couldnt find any change in the header of original jpeg and jpeg created after.
    Do u have any idea about how this trick really works, i mean behind the scenes ;)

  12. strider: I don’t know exactly how it works but something similar I saw just attached the new file at the end of the original file, no headers were changed because the archive program looks for the correct headers for an archive at the beginning of the file but if it doesn’t see any, it keeps searching through the file until it finds them. just a guess, but that could be why your don’t see any change of headers in the jpeg…

    otogaz: that’s exactly what I thought when I saw it first!

  13. Strider

    @ Andy Bialey:
    THnx for ur reply. but jus in case u happen to find something more on how this works dont forget to post it [:)], n i’ll do the same.

  14. very interesting.. :)
    Can send hidden stuff to friends without other people suspecting anything.. :)

  15. nice article nice site.

    football team picturess last blog post..1

  16. Pingback: open rar files

  17. blah

    is there a way to split the two files back apart again?

  18. blah: I think there probably is a way but I don’t know it sorry

  19. I think I have read this post somewhere, but I don’t recall where.

    Doras last blog post..Joke of the day – Sex and bridge

  20. Very informative and easy to follow post. Rar and JPG working together.

    Marias last blog post..Grilled shrimps

  21. Pingback: rar file how to open

  22. Towelie

    Thanks Andy for this little beauty, and also thanks to Mr. Anon. :)

  23. quite cool way to hide the win rar inside the picture

    simons last blog post..Carbonate Hardness in your Saltwater Aquarium

  24. interesting tip and i like find a way to add this to my site

    normans last blog post..Paramobile Power Wheelchair

  25. This might get handy, nice find buddy. I have tried but something turned upside down. I will try again.

    Tomass last blog post..Natural Cure for Anxiety and Depression

  26. It might get handy when I retire from blogging and become hacker …. Ha ha ha . Seriously great post.

    Piersss last blog post..Banana

  27. Thanks for the useful information. Best regards.

    dantels last blog post..Spor ve Kadın

  28. VODKA

    Nice! With this method you can hide every file you want.
    I hided an mp3 :D

  29. Its really a fantastic post and really helping for the new ones in this
    feild like me. Thanks for the great tips.
    http://www.hardwareforce.com

  30. MCB

    Never think this can be done. Nice and very clever tips.

    MCBs last blog post..LG KP215

  31. Farily good enough and really appriciatable work dude. It was nice to
    read your post so keep up the nice work. Thanks
    http://www.whyfi.net

  32. Good job man and I would like if you keep up the nice work.
    Most of the other blogs I read, were not too much good to read
    but here you have done a great job.
    http://www.intellidesign.info

  33. Keep up the good work man and good luck for all the times.
    http://www.hardwareforce.com

  34. So could this help in uploading a “jpeg” to a free image hosting site and then download the zip instead? They usually cap the file size @ 2MB or so so it won’t help too much but still a cool idea.

  35. Pingback: programs for opening jpeg files

  36. Neat trick. Thanks for sharing it. I also love the drop down welcoming me as a visitor from Google.

    Busby SEO Challenges last blog post..Website Hosting Options

  37. Cool little trick… something I can take advantage of.

  38. Wow, that could do some unwanted damage… Nice find though.

  39. Ross

    That’s pretty cool I’ll remember this and use it when i need to send sensitive information in a not-so-obvious way.

  40. thats a pretty good idea. Is this applied to other file type too? can I mix other file (let say mp3 file) in image?

    izwan00s last blog post: How to Rank High In Local Search Engines

  41. its really good project.

  42. wow it’s fantastic it’s really amazinghadis last blog post..خصائص تحرك أسعار العملات

  43. That’s Awesome!! I wonder if that can be done with other file extensions..

  44. Old plain DOS tricks?.. :)

  45. Very nice trick to use. Similar to embedding a virus code to a jpeg is it?