How to Decode a Hidden Message in an Image (Steganography)
To read hidden text from an encoded PNG, open the Steganography Tool, switch from Hide Message to Reveal Message, and load the PNG with Select Carrier Image. The decoder extracts the payload locally in your browser and displays it under Decoded Message Findings. Because LSB (least significant bit) data sits in the lowest bit of each colour value, only an untouched PNG with the matching bit layout will decode cleanly.
Decoding a steganography image is almost instant when everything lines up, and frustrating when the output box prints "No hidden message found in this image." Knowing the exact bit layout the decoder expects - and what destroys those bits in transit - saves you from chasing a ghost message.
In this guide
- Step 1: Switch to Reveal Message mode
- Step 2: Click Select Carrier Image and choose the PNG
- Step 3: Read Decoded Message Findings
- Which messages this decoder can read
- Why the decoder finds nothing (and how to fix it)
- How to send a stego PNG so it survives
- How analysts check an unknown image for hidden data
- Nothing is uploaded
- Frequently asked questions
- Related tools & guides
Before you test: Make sure you are opening the exact .png file that was saved by the encoder, not a copy forwarded as a chat photo or converted to .jpg.
How to Decode Hidden Text in 3 Steps
Step 1Switch to Reveal Message mode
Open the Steganography Tool. At the top of the workspace there are two mode buttons: Hide Message (selected by default) and Reveal Message. Click Reveal Message. You can also switch modes after loading an image, because switching to Reveal triggers decoding immediately if an image is already loaded.
Step 2Click Select Carrier Image and choose the PNG
Click Select Carrier Image (or drag and drop the file onto the upload box) and select your encoded PNG. The file input accepts PNG, JPG, and WebP, though only lossless PNGs preserve the low bits required for decoding.
Step 3Read Decoded Message Findings
As soon as the image loads into the browser canvas, the decoder inspects the pixels and prints the extracted text inside Decoded Message Findings, reporting how many bytes were recovered. If the header or UTF-8 validation fails, it prints a notice instead of random garbage characters.
Check an image for hidden text
Open Steganography DecoderWhich Messages This Decoder Can Read
There is no single universal standard for LSB steganography. Every tool chooses its own header format, channel order, and terminator rule. To avoid printing false-positive nonsense on ordinary photos, this decoder reads one strict layout:
- 32-bit length header first: The very first 32 hidden bits are read most-significant-bit first as a 32-bit unsigned integer telling the decoder how many bytes long the message is.
- UTF-8 payload bytes: Immediately after the 32-bit header, the decoder reads that exact byte count, eight bits per byte, most-significant-bit first, and decodes the result with strict UTF-8 validation (
TextDecoder('utf-8', { fatal: true })). - One bit per R, G, and B channel: Moving pixel by pixel from top-left to bottom-right, the decoder reads the least significant bit (
& 1) of Red, then Green, then Blue, giving 3 bits per pixel. - Fully opaque pixels only: Any pixel whose alpha value is less than
255is skipped. Browsers store canvas pixels using premultiplied alpha, so semi-transparent pixels cannot guarantee exact RGB round-trips throughgetImageData.
What does that mean in practice? This decoder reliably reads PNGs encoded by Privacy Pix Tools (both current and earlier versions, because the layout is unchanged) or custom scripts written to the exact same 32-bit length plus opaque-RGB UTF-8 format. An image created by a different steganography tool that uses a null-byte delimiter, a magic prefix, a password-seeded pixel order, 2-bit LSB, alpha-channel storage, or JPEG DCT coefficients will not match this layout, so Reveal Message will report that no hidden message was found.
Why the Decoder Finds Nothing (and How to Fix It)
When a PNG that definitely held a message refuses to decode, one of six things usually happened along the way:
| Cause | What happened to the bits | How to fix it |
|---|---|---|
| JPEG re-save | Converting secret_image.png to JPG runs lossy frequency compression that changes almost every pixel's lowest bit. |
Find and open the original .png file. Once saved as JPG, the LSB message cannot be recovered. |
| Messaging app recompression | Sending the PNG as an inline photo on WhatsApp, Instagram, X, or compressed chat re-encodes and shrinks the image. | Ask the sender to resend the PNG as a File or Document attachment, or inside a ZIP archive. |
| Resize or crop | Cropping shifts pixel 0 to a new location and resizing blends neighbouring pixels, breaking the 32-bit length header. | Decode the unedited PNG first. Always crop or resize a carrier image before hiding text, never after. |
| Screenshot | A screenshot captures rendered display pixels with screen scaling and colour profiles, not the original file's bits. | Save or download the actual PNG file rather than taking a screenshot of it. |
| Different tool or layout | Another app used a different header, password shuffle, alpha channel, or JPEG DCT coefficients. | Ask which encoder created the image and use the matching decoder for that specific format. |
| Encrypted payload | Raw binary ciphertext fails strict UTF-8 decoding and shows no message; text-armoured ciphertext (like Base64) decodes as scrambled text. | If encrypted text appears, run it through your agreed cipher with the key. When hiding encrypted messages, encode ciphertext as UTF-8 text (such as Base64) first. |
How to Send a Stego PNG So It Survives
Every byte in secret_image.png must reach the recipient unchanged. Treat the file like software code rather than a snapshot:
- Send as a Document or File attachment: In messaging apps (such as WhatsApp, Telegram, or Slack), choose the Document or File picker rather than the Photo gallery picker, or disable "compress images" where offered.
- Wrap it in a ZIP file: Putting
secret_image.pnginside a.ziparchive prevents image pipelines on email webmail or chat apps from touching the PNG at all. - Use direct cloud file downloads or USB: Sharing a download link from cloud storage (as long as the recipient downloads the original file rather than saving a preview thumbnail) keeps the PNG bit-for-bit intact.
How Analysts Check an Unknown Image for Hidden Data
If someone hands you a mystery image (for example in a capture-the-flag puzzle) and you do not know whether it uses LSB, metadata, or appended bytes, security analysts usually inspect three layers outside this decoder:
- Bit-plane viewing: Viewing only bit 0 (the lowest bit) of the red, green, or blue channel as black and white pixels. Normal photos look like subtle grain or faint outlines; an LSB payload stuffed into the top rows often shows a sharp rectangle of random static at the top of the image.
- Metadata inspection: Checking EXIF comments, XMP blocks, or PNG text chunks where plain notes are sometimes stored without touching pixels.
- Data appended after the file end: Checking whether extra bytes (like a hidden ZIP or text block) were concatenated after the image's official end marker (such as JPEG
FF D9or PNGIEND).
Note that Reveal Message in our Steganography Tool does not perform bit-plane viewing or statistical steganalysis; it strictly decodes our LSB layout. If you want to check an unknown file's metadata tags, embedded comments, or trailing bytes, open it in the Metadata Viewer and Remover.
Nothing Is Uploaded
When you check or decode an image in Reveal Message mode, the browser reads the file locally, inspects pixel bits on an in-memory canvas, and displays the text without making any network request. Even if you load the page and turn off your internet connection, both hiding and decoding continue to work on your device.
Frequently Asked Questions
Why does the decoder say no hidden message found in my image?
The most common cause is recompression: saving the file as a JPG, sending it as a photo through a messaging app, resizing it, or taking a screenshot alters the least significant bits. It also appears if the image was encoded by a different steganography tool using a different bit layout.
Can this tool decode messages hidden by any steganography app?
No. Reveal Message reads a specific layout: a 32-bit big-endian length header followed by UTF-8 bytes, stored one bit at a time in the red, green, and blue channels of fully opaque pixels. Images made by tools that use delimiters, passwords, alpha channels, or JPEG frequency embedding will not decode here.
Can a JPEG carry a message that this decoder can read?
No. Even though the file picker accepts JPG, PNG, and WebP, lossy JPEG compression scrambles pixel least significant bits when saved. If you upload a JPEG in Reveal Message mode, the decoder explicitly warns you to open the original PNG instead.
Why does the decoder skip transparent pixels?
Browsers store canvas pixel data with premultiplied alpha, which changes RGB numbers slightly whenever alpha is below 255. Both Hide Message and Reveal Message skip any pixel whose alpha is not 255 so the recovered bits match exactly.
What happens if someone encrypted the message before hiding it?
If they encrypted the message into readable text (such as Base64 or ASCII armor) and hid that string in Hide Message mode, Reveal Message extracts that ciphertext and you still need their key to decrypt it. If they embedded raw binary bytes that are not valid UTF-8, the decoder rejects them and shows no message.
Does this decoder check bit planes, EXIF metadata, or appended file data?
No. Reveal Message only extracts the sequential RGB least-significant-bit payload in its own format. To inspect EXIF tags, comments, or data appended after the end of a file, use the Metadata Viewer and Remover.
Related Tools & Guides
- Steganography Tool - encode messages with Hide Message or extract them with Reveal Message.
- How to Hide a Secret Message in an Image - step-by-step encoding guide.
- How LSB Steganography Works Bit by Bit - binary walkthrough of channels and capacity.
- Image Steganography Techniques Compared - LSB, palette, metadata, and JPEG DCT side by side.
- Metadata Viewer and Remover - inspect EXIF comments, GPS tags, and trailing data.