Encrypting a message makes it unreadable, but it does not hide the fact that an encrypted message exists. Steganography solves a different problem: it hides the message inside something that looks harmless, so nobody suspects there is anything more. A vacation photo can carry hidden text without any visible difference. The steganography tool on this site does exactly that in your browser.
Encryption and steganography: different problems
It is a common mistake to mix up the two concepts:
- Encryption: turns a message into unreadable data. Anyone can see there is encrypted data, but cannot read it without the key.
- Steganography: hides the existence of the message. At a glance the file looks like an ordinary image; nobody suspects it holds anything else.
Combining both is the most robust option: encrypting the message and then hiding it in an image adds a layer, because even if someone detects something hidden, they still cannot read it without the key.
How the LSB technique works
LSB stands for Least Significant Bit. Each pixel has red, green and blue values, 8 bits each. Changing the last bit of a value modifies that channel by at most 1 level out of 256, a change the eye normally does not notice.
The LSB technique uses those bits to write the message, bit by bit, spread across the pixels. The tool writes only to red, green and blue and leaves transparency untouched, so each pixel carries 3 bits. The result looks the same as the original, but its data carries the message.
How to hide and reveal a message
To hide:
- Type the message in the Hide tab.
- Upload an image. The larger it is, the more text fits (the formula is below). If the message does not fit, the tool does not produce any image.
- Download the result as PNG. The format matters: a JPG would destroy the message.
To reveal:
- Upload the PNG with the message in the Reveal tab.
- The tool extracts and displays the text.
Why it has to be PNG, not JPG
JPG uses lossy compression: it approximates color values to shrink the file, and that changes exactly the least significant bits where the message lives. PNG is lossless and keeps every value as it was written. Saving the result in another format, or recompressing it, for example by uploading it to a social network that recompresses images, can erase the message.
The real limits of this technique
LSB does not hold up against a targeted statistical analysis. Tools exist that look for anomalies in the least significant bits, and the shift in the distribution of even and odd values is measurable. The tool does not encrypt anything either: the text is stored in plain UTF-8, after a header with the ASCII marker MACM and the text length. Anyone who knows that format can extract the message without a password. If the goal is that nobody can read the message even if they find it, encrypt it before hiding it. What the technique offers is discretion against a casual look.
Real use cases
- Marking an image's origin with a hidden identifier, without changing how it looks.
- Teaching the concept of steganography with a practical, verifiable example.
- Discreet communication in contexts where hiding the existence of a message matters more than its content.
Frequently asked questions
Can you tell at a glance that the image has a hidden message? No. At most each channel changes by one level out of 256, which the eye does not notice under normal conditions.
How much text can I hide? Capacity in bytes is (width × height × 3) ÷ 8, rounded down, minus 8 header bytes. A 1920 × 1080 image holds 777,592 bytes of text, and an 800 × 600 image holds 179,992. Accented letters and ñ take more than one byte in UTF-8: ñ takes 2.
Is this the same as encrypting the text? No. It hides that the message exists, but does not make it unreadable. For maximum protection, encrypt the text before hiding it.
Is my image uploaded to any server? No. Everything happens in your browser: neither the image nor the message leaves your device. The output is generated on a canvas, so it does not keep the original's EXIF metadata, such as the GPS location.
Hide and reveal messages in images with the steganography tool, free and right in your browser, with PNG download.