Skip to content

How Audio Steganography Works: A Secret Hidden Inside a Sound

See how tiny changes to audio samples can carry a message, what a spectrogram reveals, and why hiding data is not the same as encrypting it.

Try the Audio Steganography Studio tool
A waveform, a magnified group of samples with their lowest bits highlighted, and a padlocked row of message bits
Tiny changes to audio samples can carry a message. Encryption protects the contents if the message is found. Open full-size ↗

In 1999 the electronic musician Richard D. James, who records as Aphex Twin, released an EP called Windowlicker. Its second track, known as "Equation", sounds like a long stretch of harsh, restless noise. Nothing about it suggests a picture. But if you feed the audio into a program that draws a spectrogram, a chart of the sound with time running from left to right and frequency running from bottom to top, a face appears near the end of the track: a grinning portrait of James himself. Fans noticed it a couple of years after the record came out, and it has been a favourite piece of internet folklore ever since.

The face is not really a secret. Anyone who looks at the right chart sees it. But it makes a point that is easy to miss: a sound is not just something you hear. It is also something you can look at, and there is room in it for things your ears will never pick up.

That room is what audio steganography uses. The word comes from the Greek steganos, "covered", and graphein, "to write". Cryptography makes a message unreadable. Steganography tries to make it unnoticed. The image steganography article tells the old stories of tattooed scalps and waxed tablets; this one is about the same idea played out in a sound file.

A few seconds of CD-quality audio contain hundreds of thousands of numbers, and changing a few hundred of them by a single step is typically inaudible in an ordinary recording. This article walks through how that works: how a sound is stored, how the lowest bit of each number can carry a message, why the most obvious method is also the easiest to catch, how cleverer methods change fewer values and hide where nobody knows to look, how a spectrogram can reveal or even draw a picture inside a sound, and why a message should be locked before it is hidden. It is also honest about the limits, because hidden is not the same as safe.

Audio Steganography at a Glance

Feature Audio steganography
Type Concealment: hiding that a message exists, not scrambling what it says
Main idea Change the numbers that make up a sound by tiny amounts so the changes spell out a message
Carrier (the "cover") An uncompressed sound file, here a 16-bit WAV. The sound that carries the message is the cover; the result is sometimes called the stego file
Smallest change One step out of 65,536 on a single sample
Capacity Depends on the method. A 3-minute stereo song holds about 1.9 MiB with the simplest method, but the Studio caps the matrix-encoded packet at 64 KiB, with less room for the actual message
Fragile to MP3 or AAC conversion, trimming, resampling, volume changes, voice-message features and most streaming or social uploads
Security None on its own. A hidden message that is not also encrypted can be read by anyone who finds it
Best use Learning, puzzles, private notes passed as files, and adding a layer of concealment on top of real encryption

Hiding Is Not Locking

It is easy to blur steganography into encryption, so it helps to separate the jobs.

Job Question it answers Example
Encryption Who can read the message? AES with a secret key
Encoding How is the data represented? Base64, Morse code, a QR code
Transport How does it travel from A to B? An email attachment
Concealment Does anyone know there is a message at all? A message in the lowest bits of a sound

A message can be hidden but unprotected. If someone finds it, they read it. A message can be protected but not hidden: anyone can see an encrypted file and know a secret exists. The strongest approach uses both. Encrypt first, so a discovered message is only gibberish, and hide second, so nobody is tempted to go looking for the key. You hide the locked box, not the other way round.

This is also why you should be wary of any tool that offers hiding as though it were security. Hiding only works while it is unsuspected, and "unsuspected" is not something you can guarantee. The sections below cover both halves, starting with the hiding.

A Sound Is a List of Numbers

A sound, to a physicist, is a wave of changing air pressure. A microphone turns that wave into a changing voltage, and a recording turns the voltage into numbers. The recorder measures the wave at evenly spaced instants and writes each measurement down as a whole number. Each measurement is called a sample.

A smooth sound wave measured at evenly spaced moments, with each measurement written below as a whole number
From a wave to numbers. The wave is measured at regular instants, and each measurement is stored as one whole number. Open full-size ↗

CD-quality audio takes 44,100 samples every second. That number is not arbitrary. A wave can be rebuilt exactly from samples taken at more than twice its highest pitch, and human hearing tops out near 20,000 hertz, so 44,100 samples a second covers everything a person can hear with a little room to spare. Each sample is a 16-bit number, which means it can be any whole number from −32,768 to 32,767. That is 65,536 possible values, spanning roughly 96 decibels from the quietest sound the format can store to the loudest.

Stereo recordings carry two lists, one for the left speaker and one for the right, and the file weaves them together: left, right, left, right. A stereo song therefore has 88,200 numbers for every second. A three-minute track has nearly sixteen million of them.

A WAV file is the plainest way to keep all this. It is a short header that says how many channels there are, how fast the samples were taken and how many bits each one uses, followed by the samples themselves, untouched. There is no compression and no cleverness, which is exactly why it makes a good hiding place: every number you write is still there when you open the file again.

The Least Significant Bit

Not all sixteen bits of a sample are equal. Reading from the left, they are worth 32,768, 16,384, 8,192 and so on, halving each time until the last one, which is worth 1. It is the same idea as hundreds, tens and units in an ordinary number. Change the leftmost bit and the sample jumps by 32,768, which would be a violent crack in the speakers. Change the rightmost bit and it moves by 1, the smallest step the format has. That last bit is the least significant bit, or LSB. It decides only whether the sample is even or odd.

The sample 1204 as 16 bits and the sample 1205 as 16 bits, with only the last bit highlighted, above a bar showing the full range of 65,536 steps
Only the last bit changes, and 1204 becomes 1205. One step is one part in 65,536, far too thin to draw on a bar this wide. Open full-size ↗

Here is the trick. For practical purposes, the lowest bit of each sample is noise. Real recordings are made with microphones and electronics that hiss a little, and when a recording is reduced to 16 bits the process usually adds a deliberate whisper of random noise, called dither, to smooth out the rounding. Either way, the lowest bit of an ordinary recording is close to random. If you replace it with a bit of your message, the sound is, to any ear, the same. Do that for enough samples and you can carry a message inside the sound without anyone hearing a thing.

In the Audio Steganography Studio, a typical short message in an eight-second clip changes a few hundred samples out of more than 700,000, and each one by a single step. A single step is about 90 decibels below the loudest sample the format can hold, which is quieter than the noise floor of most recordings. The Studio also reports a signal-to-change figure of around 106 decibels. That compares the combined energy of all the changes with the energy of the whole sound, so it improves the less you hide.

The capacity is easy to work out. Each sample can carry one bit, so a sound holds about one bit per sample, which is an eighth of a byte. The Studio reserves a small header and uses this formula:

capacity in bytes = floor((number of samples − 80) × depth ÷ 8)

where depth is how many low bits you use per sample, one or two. The 80 samples hold a ten-byte header that tells the decoder how long the message is. Note that the number of samples counts both channels, so a stereo clip has twice as many samples as it has time instants. For the Studio's eight-second sample clip, which has 705,600 samples, that gives 88,190 bytes at one bit per sample, about 86 KiB. A three-minute stereo song at 44.1 kHz has 15,876,000 samples and holds about 1.9 MiB at one bit, or about 3.8 MiB at two.

Writing a Letter into Eight Samples

The easiest way to see what this means is to do it by hand. Take eight samples from somewhere in a recording: 1204, −873, 312, 59, −2, 4096, −17 and 6601. Their last bits, which is to say whether each number is odd or even, read 0, 1, 0, 1, 0, 0, 1, 1. (Negative numbers are stored in a form called two's complement, but the last bit still just tells you odd or even.)

Now we hide the letter H. In text encoding, H is the number 72, which is 01001000 in binary: eight bits, one for each of our samples. The rule is simple: replace the last bit of each sample with the next bit of the message.

Eight samples, their lowest bits, the eight bits of the letter H, and the new samples in which four have changed by one
Writing H into eight samples. The lowest bit of each sample becomes the next bit of the message. Four samples change, each by exactly 1; the other four already had the right bit. Open full-size ↗

The result is 1204, −873, 312, 58, −1, 4096, −18 and 6600. Four of the eight samples changed, each by exactly one, and the other four already ended in the right bit. Reading the message back is just as easy: take the last bit of each sample in the same order and put the letter back together.

Notice the arithmetic of the cost. If the message bits are random, which is what they are once encrypted, each one matches the sample's existing last bit half the time. So hiding n bits changes about n ÷ 2 samples. That ratio, half a change per hidden bit, turns out to matter a great deal in a moment.

Why It Has to Be a WAV

All of this assumes the numbers stay exactly as you left them, and that depends on how the sound is saved.

A WAV file stores the exact numbers. Open it tomorrow and every sample is what you wrote. A lossy format such as MP3 or AAC does not. It works by taking the sound apart into its component pitches, then deliberately throwing away detail that the ear is unlikely to miss, and rebuilding an approximation when you press play. The lowest bits are exactly the sort of detail it discards. Convert a file to MP3 and back, and every sample comes out a little different from the one that went in.

Eight samples saved as a WAV, whose lowest bits still read H, next to the same samples after a round trip through MP3, whose lowest bits read something else
Why the message needs the exact file. The numbers on the right are made up, but real lossy compression moves samples by amounts like these, and the lowest bits no longer spell H. Open full-size ↗

That is why the Studio always saves a WAV, and why a message hidden in a sound does not survive the things that quietly alter audio. Trimming the start shifts every sample out of position. Changing the volume multiplies every sample. Resampling replaces them with averages of their neighbours. Chat apps and streaming sites re-encode audio to save space. Any of these rewrites the low bits, and the message is lost. The message is exactly as robust as the file is untouched.

A lossless format such as FLAC would keep the samples intact too, because it only compresses them without discarding anything. The Studio saves WAV because it is the simplest format and every device can play it. If you give the Studio a cover that is not a plain 16-bit WAV, it converts it to one first. A WAV in another number format, such as 8-bit, 24-bit, 32-bit or floating point, is converted directly and keeps its sample rate and channels. Other formats, such as MP3 or FLAC, are decoded by your browser, which may change the sample rate (often to 48 kHz) and keeps only the first two channels. The Studio tells you what happened, but for a cover that is an exact copy, start from a 16-bit WAV.

Why Overwriting Gets Caught

The method above has a flaw. It sounds untouched, but it can leave statistical fingerprints, and those can be measured.

Look at what overwriting the last bit does to a pair of neighbouring values such as 180 and 181. They differ only in their last bit. In a recording whose lowest bits follow the sound, there is no reason for the two to be equally common. Perhaps 180 appears 34 times and 181 appears 22. Now overwrite the last bit with random message bits. A sample that was 180 becomes 180 or 181 with equal chance, and so does a sample that was 181. The two counts drift towards each other. Embed enough bits and the pair ends up almost equal.

Three bar charts of sample counts for the values 40 to 47: before, with the lowest bit overwritten so that each pair is equal, and changed by plus or minus one so the pairs are not forced together
The pairs-of-values effect, drawn with made-up counts. Overwriting the lowest bit pulls each pair of neighbours towards equal; changing values by one up or down does not. Open full-size ↗

This is the idea behind one of the classic attacks on LSB hiding. In 1999 Andreas Westfeld and Andreas Pfitzmann described a statistical test, based on the chi-square test, that checks whether pairs of values are suspiciously equal. They designed it for images, but the arithmetic works on any list of numbers whose lowest bits have been overwritten, including audio samples.

There is an honest wrinkle for sound, though, and the Studio's inspection tools show it plainly. Many recordings are already noisy right down to the lowest bit, thanks to microphone hiss and dither, so their pairs are close to equal before anything is hidden. In that case the test has nothing to find: a clean file and a file full of overwritten bits look alike. The test works best on recordings whose lowest bits are not random, such as sound that began life with fewer than 16 bits, very quiet or heavily processed audio, and anything containing stretches of digital silence.

Sequential LSB has other weaknesses, which hold however noisy the cover is. It fills the file in order, starting with the first sample, so every change sits in the first moments of the sound and the rest is untouched. A detector can compare the start of the file with the end. And the Studio's version begins with a public header that spells out a recognisable marker, so the file can be spotted just by looking for it. That is fine for a learning tool and for a note you do not mind sharing, but it is not hidden in any meaningful sense, which is why the Studio labels the plain method Simple and recommends something else for anything that matters.

Digital silence is a particular giveaway. A stretch of samples that are exactly zero is the quietest thing a file can contain, and a message written into it turns perfect silence into a faint hiss of ±1. Choose a cover with continuous natural noise instead.

Plus or Minus One

The pairs problem comes from one choice: replacing the last bit means a value can only ever move within its pair, 180 to 181 or 181 to 180. There is another way to make the last bit match. Instead of overwriting it, add one to the sample or subtract one, at random.

If a sample is 180 and needs an odd last bit, it can become 181 or 179. Both have an odd last bit. The reader still reads the last bit and gets the right answer, but the value is no longer confined to its pair. This is usually called LSB matching, or ±1 embedding. The lopsided pair effect disappears, because changes now spread out to both neighbours.

It is a real improvement, but not a magic one. Changing values by one still disturbs the relationships between neighbouring samples, which more sophisticated detectors measure. The Studio's Matrix method uses ±1 changes. Its Simple and Private methods use plain replacement.

Fewer Changes Are Better: Matrix Encoding

Every change is a clue. The fewer samples you touch, the harder it is to measure that anything happened. So a clever question is whether you can hide the same message while changing fewer numbers.

You can, and the trick is borrowed from error-correcting codes. In 1950 Richard Hamming invented a family of codes that can find and repair a single wrong bit among a small group. Matrix encoding, often credited to Ron Crandall in 1998 and popularised by Andreas Westfeld's F5 program in 2001, runs that machinery backwards. Instead of correcting an error, you create one on purpose, in exactly the place that makes the group spell your message.

Here is how it works for the version the Studio uses, which hides three message bits in a group of seven samples. Number the seven positions 1 to 7, written in binary as 001, 010, 011, 100, 101, 110 and 111. Look at the last bit of each sample. Wherever it is 1, take that position's number. XOR them all together, which means combining bit by bit so that two 1s cancel out. The result is a three-bit "fingerprint" of the group.

Now compare that fingerprint with the three message bits. If they already match, change nothing. If not, XOR them to see how they differ, and the difference is itself the number of a position. Change that one sample by 1, and the fingerprint becomes exactly the message bits.

Seven samples with their lowest bits and position numbers, three steps that compute the fingerprint 000, compare it with the message bits 101 to find position 5, and the result where only one sample moved
Matrix encoding on seven samples. The fingerprint is 000, the message bits are 101, and the difference 101 points at position 5. Changing that single sample by 1 makes the group read 101. Open full-size ↗

The example in the figure uses the samples 2410, 515, −1366, 377, −88, 6143 and 9020. Their last bits are 0, 1, 0, 1, 0, 1, 0, so the ones sit at positions 2, 4 and 6. XOR their numbers, 010, 100 and 110, and you get 000. We want to hide the bits 101. The two differ by 101, which is position 5, so we change the fifth sample, −88, to −89 or −87. Its last bit flips. The ones are now at positions 2, 4, 5 and 6, and 010, 100, 101 and 110 combine to 101. The reader repeats the same calculation and recovers the three message bits, and only one sample out of seven moved.

Why does this always work? There are seven positions and seven non-zero three-bit numbers, so any difference you need is the name of exactly one position. If the difference is zero, you change nothing. That happens one time in eight, so a group changes with probability 7/8.

Method Samples used per 3 bits Expected changes per hidden bit Hidden bits per change
Overwrite or ±1, one bit per sample 3 0.50 2.0
Matrix (7,3) 7 0.29 3.4

For random data, matrix encoding changes about 7/24 of a sample for each hidden bit, instead of one half. Here is a real comparison from the Studio. Hiding the same 54-character message, encrypted, in its eight-second sample clip changes about 430 samples with the Private method, and about 245 with Matrix encoding. In both cases the changes are a tiny share of 705,600 samples.

The price is capacity. Matrix encoding spreads three bits over seven samples, so it hides about 0.43 bits per sample instead of one. That is a good trade for short messages, and it is the reason the Studio caps Matrix encoding at 64 KiB: past a point, the point of using a quiet method is lost.

Scattering the Bits

Matrix encoding reduces the number of changes. A second idea changes where they go.

Sequential LSB puts the changes in a solid block at the start of the sound. A smarter system spreads them across the whole file, in positions only the sender and recipient know. A watcher then does not know where to look, and a would-be reader cannot extract the message without the key, because they do not know which of the millions of samples carry it.

Two timelines of a sound, each with the same 40 changes marked: in the first the changes bunch up at the very start, in the second they are scattered along the whole file
The same 40 changes, two ways. Sequential LSB fills the start of the file. Keyed positions are scattered across the whole sound by a passphrase. Open full-size ↗

In the Studio's Matrix method, your passphrase is stretched into a long stream of pseudo-random numbers, and those numbers shuffle the list of samples, much as you would shuffle a deck. That shuffle is used twice. First it picks the places where a small random value, called the salt, is hidden. Then the passphrase and that salt are stretched again to make the key and a second shuffle, and the second shuffle picks the places for the message itself. Without the passphrase, neither shuffle can be reproduced. There is also no public marker or header: nothing in the file announces that a message is there. The consequence is a useful one. A wrong passphrase and a sound with nothing hidden in it give the very same answer, "nothing found", so even a person who tries to decode your file cannot tell which of the two is true.

Because the salt is new for every file, two files hidden with the same passphrase use different keys and different positions, so the message positions need not line up. What does repeat is the small patch that holds the salt: about 300 samples whose positions depend only on the passphrase, the length of the file and its channel count. There is one cost the Studio is open about. The first shuffle depends on the exact length of the file, so if you trim even one sample off the end, the salt cannot be found and the message is lost with it.

Lock It First

Scattering and matrix encoding make a message harder to find. Neither makes it unreadable once it is found, and neither can promise it will not be. So the Studio never hides a plain message with the passphrase-based methods. It locks the message first.

A seven-step flow: message, wrap in a packet, encrypt, choose positions, embed with plus or minus one, save as WAV, read it back and verify
From message to hidden message. The message is wrapped in a packet with a small label, then locked, and the passphrase (with a random salt) decides where the bits go. The finished WAV is read back and compared before it is offered for download. Open full-size ↗

The encryption is AES-256-GCM, a modern authenticated cipher. Your passphrase is turned into the key using PBKDF2 with SHA-256 and 600,000 rounds, a deliberately slow process that makes each guess at a passphrase expensive. A random 16-byte salt means two messages with the same passphrase get different keys, a random 12-byte one-time number keeps each encryption unique, and a 16-byte authentication tag lets the decoder tell instantly whether the passphrase was right and whether anything was altered. A wrong passphrase gives an error, never wrong text.

All of that has to travel inside the sound, so it adds weight. For a text message hidden with Matrix encoding the extras come to 51 bytes: 16 for the random salt, 12 for the one-time number, 16 for the tag, 3 for the label that says what kind of content follows, and 4 for the length. The label goes in before the encryption, so the name of a hidden file is locked along with its contents. The Simple method skips the encryption and uses a 10-byte public header plus the same 3-byte label instead, so 13 bytes, and Private adds the salt, one-time number and tag to that for 57. The final step is easy to overlook and important: the Studio reads the finished WAV back with the same code the decoder uses and compares what it finds to what it hid. If anything is off, it refuses to offer the file.

The passphrase is the whole secret. A guess can be tested offline, with no limit, against anyone's copy of the sound, so a short or clever-sounding phrase is not enough. The Studio can generate a random passphrase of twenty characters, about a hundred bits of randomness, and nothing is stored anywhere. If you lose the passphrase, the message is gone for good. The same discipline applies as in any encryption: send the passphrase by a different route from the file.

What a Watcher Can See

How well does any of this hide a message? The honest answer is that it depends on how much you hide, in what, and who is looking.

The most important number is the embedding rate: how many message bits per sample. A hundred-byte message in a three-minute song is a vanishingly small fraction of a bit per sample. Pushing the full 64 KiB limit into an eight-second clip is not possible at all with the quiet method, because the clip is too short to hold it. Detectors find high rates easy and low ones hard.

What you hide Where Bits per sample (Matrix, including overhead)
A 100-byte message 3-minute stereo song about 0.00008
A 1 KiB note 3-minute stereo song about 0.0005
A 10 KiB file 3-minute stereo song about 0.005
The most Matrix holds, about 64 KiB 3-minute stereo song about 0.03
A 10 KiB file 8-second clip about 0.12

The cover matters just as much. A loud, busy recording with a steady noise floor hides a ±1 change easily. A very quiet track, a clean synthesised tone or a recording with long stretches of silence has almost no natural variation, so any change stands out. The same message in a three-minute song is far less likely to be noticed than in a few seconds of pure tone.

There are three main places a watcher looks.

The picture of the sound. A spectrogram can reveal content that was drawn into a sound, and unusual noise in bands that should be quiet. In an ordinary, noisy recording, LSB changes of a single step are far too faint to show up in one, which is why the Studio's before-and-after spectrograms look identical for normal audio. Digital silence is the exception: a message written into exact zeros turns perfect silence into a faint hiss that a spectrogram can show. But the Studio can also show you a spectrogram of only the difference between two files, boosted until it is visible, which is how you can see exactly where the changes sit.

The numbers. Statistics on the samples, like the pairs test above, look for the footprints of overwritten bits. The Studio's Advanced analysis section shows a few of these for any file you load: the share of odd samples, a plain-words reading of the pairs test (whether neighbouring values follow the sound, look like noise, or are unusually even), the share of odd samples in each twentieth of the file, a bit-plane picture of the lowest bits, and a reader that prints the lowest bits as text. They are descriptive. Many ordinary recordings look odd, and a carefully hidden message can look ordinary.

The format. A public header is found at once by anyone who knows what to look for. That is why Simple and Private messages are easy to spot and Matrix messages leave no marker.

The Studio is a teaching and practical tool. It is not the state of the art. Researchers have built far more robust ways of hiding data in audio, which they usually call watermarking when the aim is to survive processing. Echo hiding, described by Daniel Gruhl, Anthony Lu and Walter Bender in 1996, stores bits by adding a very faint echo to the sound with one of two delays. Phase coding adjusts the timing of the pitches in a sound, and spread-spectrum methods smear a tiny signal across many pitches at once. These can survive some compression and editing that would wipe out an LSB message, at the cost of holding far less. The Studio does not implement them.

Spectrogram Art

The Aphex Twin face works in the opposite direction to everything above. LSB hiding puts a message into changes too small to see or hear. Spectrogram art puts a picture into sound that is perfectly audible, in a form that only appears when you look at the right chart.

A spectrogram shows how loud each pitch is at each moment: time along the bottom, pitch up the side, and brightness for loudness. Engineers at Bell Telephone Laboratories built the first practical version, the sound spectrograph, in the 1940s, and described it in 1946 as a way to make speech visible. Today it is a few lines of code. The computer takes a short slice of the sound, uses a mathematical tool called the Fourier transform to split it into its pitches, draws a column of coloured pixels, and then moves on to the next slice.

If a spectrogram is just a picture built from a sound, you can run it backwards. Draw a picture, decide that each row is a pitch, and play a tone at that pitch wherever a pixel is bright. Played together, the tones sound like a hiss or a chirp, and when a spectrogram is drawn, the picture comes back.

Three steps: a word drawn as a small picture of bright pixels, each row of the picture becoming a tone at its own pitch, and a spectrogram of the finished sound showing the word
Writing a word into a spectrogram. Each row of the picture becomes a pitch that plays only where its pixel is lit. Pitch runs up the side and time along the bottom, so the word appears. Open full-size ↗

The Studio's Or make your own card does exactly this for short pieces of text. It draws your text as a small picture 72 pixels tall, turns each row into a pure tone somewhere between a lowest and a highest pitch that you choose, and switches each tone up and down as the pixels in that row light and fade. You can set how long the sound lasts and how strong it is, and you can mix it into audio you have already loaded so that the words sit under the music. Then you load the result into the spectrogram viewer and read it.

It is a fun trick for puzzle makers, and it is also something to check for. Puzzle hunts and capture-the-flag competitions use hidden spectrogram images constantly, so a spectrogram is one of the first things to look at in a mystery audio file. It is not a secret method: anyone who opens the same chart sees the same picture.

Getting the Sound There

A sound with a message in it is only useful if the message survives the journey, and this is where most failures happen. The rule is simple: the file must arrive as the exact WAV you saved.

How it travels Does the message survive? Why
Email attachment Yes, if the app sends the original file Attachments are sent byte for byte. Watch for a prompt to compress or convert large files
Cloud-drive or download link Yes The file is delivered unchanged
USB stick or direct file transfer Yes Nothing re-saves it
Chat app, sent as a file or document Usually Most apps send the original when you choose "file" or "document"
Chat app, sent as a voice message or audio clip Usually not Apps compress voice messages and many audio attachments to save bandwidth
Streaming or social-media upload No Platforms re-encode everything you upload
Played aloud and recorded again No The sound goes through speakers, air and a microphone, and every sample changes
Trimmed, normalised or resampled in an audio editor No Any edit rewrites the samples

Decoding a Hidden Message in an Audio File

If you have an audio file and want to know whether it hides something, the right move depends on where it came from.

If it was made with the Studio, open the Reveal tab, choose the exact WAV file, enter the passphrase if one was used, and press Reveal the secret. A Simple message needs no passphrase. The Studio only reads its own format, so it cannot decode files made by other steganography tools such as Steghide, DeepSound, OpenPuff or SilentEye, which each store their messages in a different way.

If you do not know where it came from, look for clues. Open the See inside audio tab and load the file: a drawn picture or word shows up in the spectrogram, and raising the range slider reveals faint detail. Then open Advanced analysis and use the lowest-bit reader, which prints the lowest bit of each sample as text and as hex. Many simple puzzles and tools hide plain text by overwriting those bits from the start of the file, and if the first bytes read as words, that is probably the message. Other tools may use the other bit order or only one channel, so try the options. Neither check can prove that a file is clean: a message hidden with a passphrase and a keyed scatter leaves nothing readable behind.

Try It in the Audio Steganography Studio

The Audio Steganography Studio runs everything in your browser. Nothing you add is uploaded: the website serves the page, and the Studio processes your audio, files and passphrases on your own device. Here is a short tour.

  1. Choose how to hide it. Three plain-language options sit in the panel beside the cover and secret (on a phone, in the "Method, passphrase & stats" panel below them). Simple uses sequential LSB with no passphrase, so anyone who opens the audio with the tool can read it. Private adds encryption to the same method. Matrix encoding, the default, needs a passphrase and changes the fewest samples. Simple and Private can use one or two bits per sample.
  2. Add a cover and a secret. Drop in or browse for an audio file, or use the sample clip, then type a message or choose any file. The Studio shows how much room there is, with a bar for the space used.
  3. Set a passphrase. Type your own or let the Studio generate a strong one. A rough strength hint appears as you type.
  4. Hide it. The Studio hides the secret, saves a WAV, reads it back and compares. The result panel shows how many samples changed, the largest change and the signal-to-change figure, then two spectrograms side by side, a map of where the changes are drawn on the waveform, and a spectrogram of only the changes. When the changes all sit in one small part of the file, the map zooms in on it and says so.
  5. Test it. Press Test it in Reveal to jump to the Reveal tab with your new file and passphrase already loaded.
  6. Reveal. Drop in the WAV, add the passphrase if one was used, and press Reveal the secret. A text message appears in a box you can copy. A hidden file is offered as a download. Reveal only reads files made by the Studio itself.
  7. See inside audio. The third tab is a separate tool for looking inside any sound. Load a file to see its spectrogram and waveform, with controls for detail, colours, top pitch and range. Below it, Or make your own writes text into a sound. Advanced analysis, closed until you open it, holds the sample statistics, a bit plane and a reader that prints the lowest bits as text.

A few details are worth knowing. If your cover is not a plain 16-bit WAV, the Studio tells you that it had to be decoded by your browser first. Your passphrase is never saved, and only display settings, such as the method you last picked, are remembered on your device.

Key Takeaways

  • Steganography hides that a message exists. Encryption hides what it says. They are different jobs, and the safest approach is to lock the message first and hide it second.
  • A sound is a list of 16-bit numbers. The last bit of each number changes the sample by one step in 65,536, which is why it can carry a message without being heard.
  • Overwriting the last bit can even out neighbouring values, and that pattern is a known tell when a recording's lowest bits are not already random noise. Changing values by one up or down avoids that particular pattern.
  • Matrix encoding hides three bits in seven samples by changing at most one, so it changes about 7/24 of a sample per hidden bit instead of one half.
  • A passphrase can scatter the changes across the whole file, so there is no public marker and no obvious place to look. The cost is that the file must keep its exact length.
  • A spectrogram is a picture of a sound. You can read hidden pictures out of it, or write your own text into it, but that is not secrecy.
  • The message lives in the exact sample values. Send the WAV as a file, and never convert, trim, resample or re-record it.

Common Questions About Audio Steganography

Can anyone tell there is a message in the sound? A single-step change is far too small to hear, and in an ordinary recording it does not show up in a spectrogram. In digital silence it can. Statistical tests and format checks can sometimes tell, especially with the simplest method, at high embedding rates, or in quiet or silent recordings. At very low rates in a busy recording it is much harder. None of the Studio's methods is proven undetectable, and the page does not claim otherwise.

Is it safe to hide a message without a passphrase? It is only as private as the secret that the file contains a message. With the Simple option, anyone who opens the file in the tool can read what is inside. If the content matters, use a passphrase.

How much can I hide? With Simple or Private, a three-minute stereo song holds about 1.9 MiB at one bit per sample. With Matrix encoding the limit is 64 KiB per file. An eight-second clip holds about 86 KiB with Simple and about 37 KiB with Matrix.

Will the message survive MP3, WhatsApp, YouTube or a screen recording? No. Those turn the sound into a re-encoded, resampled or re-recorded copy. An email attachment, a cloud link or a file sent as a document normally keeps the original.

Why is the output always a WAV? Because a WAV stores the exact numbers. MP3 and AAC are lossy and would rewrite the samples. A lossless format such as FLAC would work too, but WAV is the simplest and plays everywhere.

Can I use an MP3 as the cover? Yes. Your browser decodes it and the Studio saves the result as a 16-bit WAV. The browser may change the sample rate (often to 48 kHz) and keeps only the first two channels, and the Studio tells you when that happens. A 16-bit WAV is the exact starting point when you have one.

What happens if I forget the passphrase? The message cannot be recovered. Nothing is stored anywhere, by design.

Why does a wrong passphrase give the same answer as an ordinary sound? On purpose. The Matrix method leaves no public marker, so the decoder cannot tell a wrong passphrase from a file with nothing hidden in it. This result alone does not prove there is no hidden data.

Does the sound change? Usually not in an ordinary recording. With Matrix encoding, each affected sample moves by one step. The Studio shows how many samples changed and how large the change is compared with the original sound.

Is anything uploaded? No. The Studio does not upload your audio, files, messages or passphrases. It works in your browser and does not send your inputs to CipherRegister.

How do I decode a hidden message in an audio file? If it was hidden with the Studio, open Reveal, choose the exact WAV, add the passphrase if one was used and press Reveal the secret. If it came from somewhere else, Reveal cannot read it, but the spectrogram and the lowest-bit reader in Advanced analysis can catch simple cases, such as text drawn into a spectrogram or plain text written into the lowest bits.

Can the Studio read messages made by other steganography tools? No. Reveal only reads files made by the Studio, because every tool stores its message in its own format. Tools such as Steghide, DeepSound, OpenPuff and SilentEye cannot be decoded here.

Is the Matrix scatter the same every time? No. Matrix encoding first hides a random 16-byte salt at positions that depend on your passphrase, the length of the audio and its channel count. That salt and your passphrase then set the key and the positions for the message, so two files hidden with the same passphrase use different positions. Only the roughly 300 samples that carry the salt are in a repeatable place.

Does "Matrix encoding" mean undetectable? No. It means the method changes the fewest samples for a given message. That is a real advantage, and it is still not a guarantee.

Is the number in "Pair equalisation" proof of hidden data? No. It is a descriptive measurement, and on noisy recordings it scores about the same whether or not a message is hidden. Treat it as a clue, not a verdict.

The Lesson in the Sound

The Aphex Twin face worked because nobody thought to draw the chart. Every listener heard noise, and the picture sat unseen for a couple of years until someone looked at the sound the right way. A digital recording offers the same bargain on a vastly larger scale: hundreds of thousands of numbers a second, each with a lowest bit that can often be changed without an audible difference. The craft is in changing as few of them as possible, in places no one thinks to measure, and in making sure that if someone does look, they find only a locked box.

The three things worth remembering are separate: embedding stores the message, encryption protects its contents, and keeping the original WAV preserves both. The simplest way to see the difference is to hide a sample message in the Studio, compare the original with the new file, then look at the map of changes and the difference spectrogram to see how little actually moved.

Sources and further reading

Try the Audio Steganography Studio Tool

Want to experiment with the idea in practice? Open the matching tool and try your own text.

Open Audio Steganography Studio
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

Read next

Image Steganography 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. Practical Encryption How to Use the File & Message Encryptor: Complete Guide A complete practical guide to encrypting files and private messages locally, sharing passwords safely, understanding the protection, and restoring encrypted content. Passwords & Passphrases Password Entropy: What Makes a Password Hard to Guess? A password can look complicated and still be predictable. Learn what randomness really buys you, how to choose a password or passphrase, and what the calculator can tell you.
Back to all articles