This is a cool trick with which you can hide your files inside a picture.

First select the files and compress them to zip or rar and place it in E: drive also place there the picture on which you want to hide the files.

Now go to command prompt and select E: drive by typing just E:

type this command

copy /b "file1.jpg"+"file2.zip" new.jpg

You are done when you double click the new file the picture will open
But when you right-click it and open it with winrar the hidden files will be shown

Dani AI

Generated

A concise, practical add-on to the demonstration from and the follow‑ups by others.

What’s happening under the hood: most image viewers read the image header and then stop — extra bytes after the image data are ignored for display. That lets a compressed file sit after the picture bytes while the picture still opens normally. This is a convenience/obfuscation trick, not secure hiding. and others pointed out simple variants; treat those as obfuscation, not encryption.

Key pitfalls and safety notes:

  • Appending data is fragile. Many online services and image editors will recompress or rewrite files and remove any trailing bytes, which destroys the hidden archive. Do not rely on this method for backups or anything you can’t lose.
  • The combined file’s byte size increases to include the appended data even though the image dimensions don’t change; if you need to be discreet, that jump in file size is an obvious signal. (This clarifies ’s observation.)
  • This technique is commonly abused by malware authors. Always scan unknown images with up‑to‑date antivirus before opening them in archive tools or extracting content.

A short safe checklist if you try this:

  • Keep the original files unchanged and test on a throwaway copy first.
  • If confidentiality matters, place files in a properly encrypted archive (strong password, modern cipher) before appending. Encryption provides real secrecy; simple hiding does not.
  • Verify extraction locally with an archive manager and scan the extracted files.
  • Avoid uploading such images to social sites or re-saving them in photo editors.

For real secrecy consider established steganography tools or simply use encrypted storage — both are more robust than manual append tricks. Thanks to , , , and for the thread ideas and testing notes.

Hehehe Very Cool

Hey,
Instead of doing all these things, just change the extension of the zip file to anything you want till the time you want that file to hide and later change it back to the original one when you want to use the file.

For E.g. File1.zip to File1.txt or file1.jpg or file1.xyz

HEHE very useful

Good one..The most interesting thing is that the size of new.jpg is similar as that of file1.jpg.

let me try the file hiding

Thanks)) That can be useful, hehe

google for stenography. And you will find more ways that this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.