Skip to content

Image Steganography Studio

Hide a message or file in a PNG, recover it with the decoder, and compare the original and encoded images. Everything you add is processed locally in your browser.

Pick a cover image and a secret, choose how to hide it, then encode. The output is always a PNG, checked by reading it back. You can also paste an image.

Open a PNG made with the studio. Chunk and sequential LSB images are found automatically; matrix and keyed images need their passphrase.

Your secret images are ready

    Send all of the images (the order does not matter) and give the recipient the passphrase separately. To read it they open the Decode tab, drop every image in at once and enter the passphrase. Losing or changing one image loses the secret.

    Your secret image is ready

    The PNG was read back and the secret recovered from it. Download it now: this page keeps nothing.
    Compare the images
    Drag the divider to reveal the original or encoded image.
    Before / after
    Encoded image
    Original image
    ↔
    OriginalEncoded
    Original image Before
    Original image
    Encoded image After
    Encoded image containing a secret
    Pixel difference Amplified
    Pixels identical
    Spatial difference map: bright cells mark areas where RGB values changed. Differences are amplified enormously here; in the real image each change is ±1 (or up to ±3 with 2-bit LSB).
    —
    Pixels modified
    —
    RGB PSNR
    —
    Resulting PNG size
    Keep this exact PNG: resizing, recompressing or social-media processing may remove the secret.
    What will it survive?

    The secret stays readable whenever the exact file arrives: an email attachment, a cloud-drive link, or a chat app's “send as file” option. It is lost if an app recompresses or resizes the image, as “send as photo”, social uploads and screenshots usually do.

    Send instructions

    A ready-made note telling the recipient how to read it. It contains no secret, file name or passphrase.

    Email links can't attach files, so attach the downloaded PNG yourself. Tip: send the passphrase separately from the image.

    Encoded PNG

    The exact file you downloaded
    Drop your secret PNG, or browse filesThe hiding method is detected automatically. Part of a split secret? Select all its images together.
    Uploaded encoded image

    Secret recovered

    Recovered message

    Extracted from the PNG and checked for integrity.

    Recovered file

    Restored with its original name and exact bytes. Only open recovered files you trust.

    Understand the embedding methods

    Four techniques with different trade-offs between capacity, robustness and how easily they are noticed. None of them is proven undetectable.

    Matrix encoding Default

    Your passphrase picks a secret, pseudo-random order of colour values. They are read in groups of seven; a Hamming-code syndrome lets each group carry three bits while changing at most one value. For random (encrypted) data that is 7/8 of a change per three bits, against 3/2 for simply overwriting three bits. The changed value moves by +1 or −1 at random.

    Capacity
    3 bits per 7 colour values (about 1.29 bits per pixel), capped at 64 KiB including encoding overhead.
    Password
    Required. The secret is always encrypted, and the passphrase also decides the positions.
    Detectability
    Fewest changes here, and no public marker. Still statistically detectable, more so at higher rates.

    Keyed pixel encoding

    The same passphrase-chosen order, but one bit per colour value: if the value's lowest bit is already right it stays, otherwise it moves by ±1. Roughly half of the used values change, so it makes about twice as many changes per hidden bit as matrix encoding, in exchange for more capacity per pixel.

    Capacity
    1 bit per colour value (3 bits per pixel), capped at 64 KiB.
    Password
    Required; always encrypted.
    Detectability
    No public marker, but more changes than matrix for the same secret.

    Sequential LSB Classic

    Writes the bits in reading order, from the top-left pixel, into the lowest one or two bits of each red, green and blue value, behind a small public header. The bits are overwritten (LSB replacement), which equalises pairs of neighbouring values such as 180 and 181: the pattern classic tests look for.

    Capacity
    3 or 6 bits per opaque pixel, up to 20 MiB.
    Password
    Optional (encrypts the content; the header stays visible).
    Detectability
    Easy: the header is recognisable and the changes are concentrated at the top of the image.

    PNG chunk Exact pixels

    A PNG file is a list of chunks. The secret goes into a private ancillary stEg chunk; if the cover is already a PNG, its original image data is kept byte for byte. Nothing in the picture changes, but the chunk is plainly listed by any file inspector, and many apps drop it when they resave.

    Capacity
    Up to 20 MiB; the file grows by about the size of the secret.
    Password
    Optional.
    Detectability
    Trivial for anyone who looks at the file structure.

    Encryption and concealment are different jobs

    Steganography hides that a secret exists; encryption protects what it says. With a passphrase, the content is encrypted with AES-256-GCM using a key from PBKDF2-SHA-256 (600,000 iterations) with a fresh random salt and IV each time. GCM authenticates the data, so a wrong passphrase or a damaged image is detected rather than producing garbage. Encryption does not make the hiding undetectable, and none of the methods survives resizing, recompression or most messaging apps.

    Interactive lab

    Replacement versus ±1 matching

    Every colour value is an integer from 0 to 255, stored as eight bits. Pick a value and the bit to hide, then compare overwriting the lowest bits with moving the value by one.

    (180 AND 254) OR 1 = 181

    Replacement only ever swaps a value with its pair partner (180 ↔ 181), which is exactly what pair statistics measure.

    Original channel 180
    ↓ Overwrite the lowest bit
    Encoded channel 181
    Original
    Encoded
    Change: +1 / 255
    The mathematics

    How much can a picture hold?

    Each fully opaque pixel has three colour values. Sequential LSB stores 1 or 2 bits in each, after a 160-value header. Matrix encoding stores 3 bits per 7 values and keyed encoding 1 bit per value, both after a small hidden header, and both capped at 64 KiB. Framing, file name and encryption add a few dozen bytes.

    Largest text message—
    The studio accepts images up to 16 megapixels and secrets up to 20 MiB. Transparent pixels add no pixel capacity.

    Good to know

    Does the picture really look the same?

    With PNG chunk mode the pixels are not changed at all, and a PNG cover keeps its original compressed image data. With matrix and keyed encoding, the changed colour values move by exactly 1 out of 255; with sequential LSB by up to 1 (one bit) or 3 (two bits). That is invisible to the eye, but it is a real numerical change that statistics can pick up.

    Will it survive WhatsApp, Instagram or a screenshot?

    Usually not. Messaging and social apps recompress, resize or strip images, and a screenshot captures only what is on screen. Send the downloaded PNG as a file or document attachment, and test the route before relying on it.

    Can another person discover the secret?

    Yes, potentially. A PNG chunk is visible to any file inspector, sequential LSB has a public header, and every pixel method changes the image's statistics. Matrix and keyed encoding have no public marker and change fewer values, but someone with good tools and enough images may still detect them. The benchmark below lets you measure that on your own pictures. A strong passphrase keeps the content private even if the hiding is noticed.

    How much can I hide, and why the 64 KiB limit?

    On a 1920 × 1080 photo, sequential LSB holds about 759 KiB with one bit per channel; PNG chunk mode holds up to 20 MiB regardless of size. Matrix and keyed encoding are capped at 64 KiB: they are meant for low embedding rates, where hiding is harder to detect, and the cap keeps the position shuffle fast. For larger files, use sequential LSB or PNG chunk mode and accept that they are easier to spot.

    Which cover image works best?

    Any image works. Detailed photographs with natural texture hide changes best, ideally ones never saved as JPEG (a PNG or camera original), because JPEG compression leaves regular traces that make small changes easier to measure. Flat graphics, screenshots and the built-in sample (a smooth synthetic drawing) are fine for trying things out. The studio rates each cover's texture as a hint.

    Why does the studio warn that my browser alters pixel values?

    Some browser privacy protections prevent web pages from reading exact pixel values. That can disrupt the pixel-based methods. For a new image, PNG chunk mode is an alternative because it stores data outside the pixels.

    Can I still decode images made with the previous version?

    Yes. Version 6 changed matrix and keyed encoding from overwriting the lowest bit to ±1 matching, and the decoder tries the new format first and then the previous one. Sequential LSB and PNG chunk images use the same format as before.

    Are my images, files or passwords ever uploaded?

    No. The studio processes them in your browser, and analytics and ads are disabled on this tool page. Files stay on your device unless you choose to share them. Passphrase protection needs Web Crypto, available on HTTPS and localhost.

    Image inspection laboratory

    Look beyond visual similarity. Inspect bit planes, value statistics and PNG structure for one image, or compare the original and encoded files.

    Back to encoder

    Measurements are descriptive. A single image's numbers do not prove that something is or is not hidden.

    Image microscope / 01

    Bit-plane explorer

    See the eight binary layers inside every colour channel.

    8 bits × 3 channels
    Bit 0Bit 1Non-opaque pixel

    All eight bit planes

    Select a thumbnail to inspect that binary layer at a larger size.

    Bit distribution graph

    Share of opaque pixels with a 1 at each bit position in the selected channel, counted over every opaque pixel. The dashed line marks 50%, not a security threshold.

    0%50%100%

    Even / odd value counts

    Bars come in pairs of neighbouring values (0 and 1, 2 and 3, …); solid bars are even values, faded bars odd. LSB replacement pulls each pair towards equal height. ±1 matching does not, but slightly smooths the whole histogram.

    PNG structure

    Interpreting the measurements

    One-bit frequency: share of RGB values whose lowest bit is 1.

    Horizontal agreement: share of neighbouring opaque pixels whose lowest bits match, pooled across RGB.

    Pair statistic: sum of (even − odd)²/(even + odd) over neighbouring value pairs. LSB replacement lowers it.

    Weighted-stego estimate: an estimate of the share of colour values whose lowest bit was overwritten, from how values deviate from their neighbours. Clean photos give values near zero but rarely exactly zero; it does not respond to ±1 matching in the same way.

    Research beyond this prototype

    Matrix and keyed encoding here choose positions at random; they do not prefer textured regions. Adaptive schemes such as WOW, HILL and S-UNIWARD concentrate changes where they are hardest to model and are evaluated against rich-model detectors with machine learning. They are not implemented here. Low embedding rates, visual similarity and ordinary-looking histograms do not establish security.

    Statistical detection benchmark

    Measure how well a trained detector separates clean and encoded images, on your own covers, for each method and embedding rate.

    Visual similarity is not statistical security.

    Perfect security would require clean and encoded images to be statistically indistinguishable. This lab estimates how far from that a given detector gets, using cross-validation: the detector never scores an image whose cover it was trained on. An AUC of 0.5 means chance; 1.0 means perfect separation.

    DKL(Pcover ∥ Pstego) = 0

    The detector is a regularised Fisher linear discriminant over 56 features: lowest-bit frequency and neighbour agreement, the even/odd pair statistic, a weighted-stego estimate of overwritten bits, histogram characteristic-function centre of mass (raw and calibrated against a downsampled copy), and 49 SPAM-style transition probabilities of neighbouring pixel differences. Research detectors use thousands of features and far more images, so a low AUC here is weak evidence.

    Batch experiments simulate embedding. For each cover, random bits go to uniformly random positions with exactly the operation each method uses (±1 or overwrite, with or without matrix coding). Without the passphrase, that is statistically what the real encoder produces, and it skips the slow key derivation.

    About v6's ±1 matching. Overwriting the lowest bit (v5) never moves a value out of its even/odd pair, which detectors exploit. Version 6 adds or subtracts one instead. The cost: v5 salted its position key with the cover's upper seven bits per value, which ±1 changes can alter, so v6 salts it with the image size and transparency mask, then hides a random 128-bit nonce that individualises the remaining positions. Someone guessing passphrases against many same-size images can therefore reuse each guess's key derivation, and the roughly 300 values holding the nonce sit at the same positions in same-size images made with the same passphrase. Content encryption is unaffected.

    Set up an experiment

    1 · Cover images (at least 20)

    Use distinct photographs from one camera and export pipeline. Large covers are centre-cropped to 1024 × 1024 (no resampling).

    2 · Methods
    3 · Embedding rates (payload bits per pixel)

    For scale: 1 KiB in a 12-megapixel photo is 0.0007 bpp; 64 KiB in a 1-megapixel image is 0.5 bpp.

    20 to 200 pairs. Each encoded file must have the same file name and size as its cover. Use distinct photographs and the same export pipeline throughout.

    Results

    —
    ROC AUC
    —
    Accuracy
    at the training midpoint
    —
    Images scored
    all out-of-fold

    Ranges are 95% bootstrap intervals over covers (out-of-fold scores resampled by cover); they ignore variation from retraining. A stronger detector may find what this one misses, and results transfer poorly between image sources.

    Using This Tool: Guide & Notes Show guide

    An ordinary-looking PNG can carry extra data. Use the studio to see how embedding works and to compare what changes when a message is hidden.

    How to use it

    • In Encode, try the sample image or choose a PNG, JPEG, WebP or BMP cover. Paste an image while focused inside the studio if you prefer.
    • Enter a test message or select a file. Check the capacity estimate, set a passphrase if your method needs one, and press Encode. The studio decodes the generated PNG before offering it for download.
    • Keep the original downloaded PNG. In Decode, choose that PNG and supply the same passphrase if used. For a split set, select every PNG together.
    • Explore bit planes, frequencies and PNG chunks in the analysis lab. The detection benchmark compares statistical measurements on sample images or images you provide.

    Options and settings

    • Simple and Private use sequential least-significant-bit encoding, without or with a passphrase. Matrix encoding and keyed pixel encoding require a passphrase. PNG chunk mode stores data separately from the pixels.
    • Passphrase protection uses AES-256-GCM. A passphrase is required to recover each encrypted message; CipherRegister cannot reset it.
    • The studio accepts images up to 16 megapixels, subject to browser memory. Capacity depends on the image and method. Matrix and keyed encoding cap each embedded packet at 64 KiB, including overhead.

    Notes

    • Your images, files, messages and passphrases are processed in this browser. The studio does not upload them.
    • Concealment is not encryption, and no method here guarantees that hidden data will go unnoticed. A benchmark result is not a security guarantee.
    • Resizing, screenshots and JPEG conversion can destroy pixel-embedded data. Re-saving even as PNG can remove a private chunk. Keep a copy of the exact output file.
    Related Article

    How Image Steganography Works: A Secret Hidden Inside a Photograph

    See how small changes to pixels can carry a message inside a picture, what gives those changes away, and why hiding data is not the same as encrypting it.

    Read the article
    Signal acquired

    A note from the team

    We build these tools because we love cryptography, encoding, and making difficult ideas easier to explore. If they've helped you, even a small coffee means the world to the project. Thank you!

    Say thanks on Ko-fi