Spectrogram Analyzer

Online spectrogram viewer for WAV, MP3, FLAC, OGG and M4A files. Zoom, compare twelve FFT and colour settings, inspect peaks and export a PNG. Audio is processed in your browser.

WAV, MP3, FLAC, OGG, M4A
Runs in your browser
PNG export
Spectrogram Analyzer

Drop an audio file here, or choose one

WAV (PCM 8, 16, 24 or 32-bit, or 32-bit float) up to 100 MB, or MP3, FLAC, OGG and M4A (AAC) up to 5 MB. Compressed files are decoded by your browser, so on this device they are limited to about 1.5 minutes of 44.1 kHz stereo audio (more for mono or lower sample rates). The file is processed in this browser and is not sent to our servers.

Try a sample

No file yet. Try a sample to see how the tool works.

How to read a spectrogram (5 steps)

  1. Load an audio file: Drop or choose a WAV, MP3, FLAC, OGG or M4A file, or press a sample. WAV up to 100 MB, or MP3, FLAC, OGG and M4A up to 10 MB (5 MB on a phone or low-memory device) that fit your device's decoded-audio budget. The full limits are listed under Limitations.
  2. Look at the first picture: The tool draws the whole file at once with the Balanced preset (FFT 2048, Hann window, 50% overlap, linear frequency axis). Time runs left to right, frequency bottom to top, and the brightness is the level.
  3. Tune it: Try a preset, change the FFT size (a big window separates close frequencies, a small one separates close moments), the channel, the colours and the level range. The Gallery tab draws twelve fixed combinations side by side.
  4. Read it: Move over the picture to read time, frequency and level. Drag to select an area, zoom to it, play it, find its spectral peaks, mark places and type what you read into the transcription box.
  5. Keep or hand on: Save a PNG or the settings, or send the file or your transcription to another tool. File processing stays in your browser, and the file is not sent to our servers.

What a Spectrogram Shows

A spectrogram cuts the audio into short overlapping slices, measures how much of each frequency is in every slice, and draws the result as a picture: time along the bottom, frequency up the side, and louder frequencies brighter. A steady tone is a horizontal line, a rising sweep is a diagonal, and a click is a vertical stripe.

That makes a spectrogram a useful first look at many audio challenges. If someone drew letters or a picture into the frequencies, or hid a series of tones, the shape is visible long before the sound makes any sense to the ear.

What the Numbers Mean

Levels are shown in dBFS, where 0 dBFS is the loudest value a sample can have. Each number is the peak amplitude of a sine wave that sits exactly in that frequency bin, not power density. A full-scale sine exactly on a bin reads 0 dBFS with each of the four windows (Hann, Hamming, Blackman-Harris and Rectangular) at every FFT size; a tone between two bins reads lower (for the Hann window by up to about 1.4 dB).

Because it is not power density, noise cannot be compared across FFT sizes or window functions: the noise in each bin changes when the window changes. Compare a tone with the tones around it, not a noise floor at one setting with a noise floor at another.

FFT Size: Frequency Detail or Time Detail

The FFT size is the length of each slice in samples. A longer slice splits the frequencies into finer bins but blurs fast changes; a shorter one does the opposite. They trade against each other and you cannot have both. The tool offers 256, 512, 1024, 2048, 4096, 8192, 16384, 32768.

For a file at 22,050 Hz with 50% overlap: FFT 1024 gives bins 21.53 Hz wide and a new slice every 23.2 ms; FFT 2048 gives 10.77 Hz and 46.4 ms; FFT 16384 gives 1.35 Hz and 371.5 ms. The readout under the picture always states the bin width and step for your current settings.

Linear, Logarithmic and Mel Frequency Axes

On a linear axis every kilohertz takes the same height, which is right for tones spread across the band and for text or pictures drawn in a frequency range. A logarithmic axis gives each doubling of frequency the same height, which spreads out low notes and speech. The Mel axis is a perceptual scale, 2595 × log10(1 + f/700), and is only a way to draw the same data.

A logarithmic or Mel axis cannot start at 0 Hz, so it starts at one bin width unless you give a minimum. Changing the axis redraws the picture: it never changes the numbers in the readout.

Stereo: Left, Right, Mix and Side

For a two-channel file you can look at the Left channel, the Right channel, the Mix ((L+R)/2) or the Side ((L−R)/2). Anything identical in both channels cancels in Side; anything in opposite phase cancels in Mix. Files with more channels offer each channel and their mean.

The stereo sample on this page puts a 1000 Hz tone in both channels and a 2500 Hz tone in opposite phase: Mix shows only the 1000 Hz tone and Side shows only the 2500 Hz tone, so a signal hidden in the difference between channels stays invisible until you switch to Side.

When the Picture Looks Blank

Check four things before you decide a file has nothing in it. Is the frequency range too narrow, or far from where the signal sits (try Restore defaults)? Is the level range too tight (lower the floor, or raise the gain)? Is the signal in the other channel (try Left, Right and Side)? And is the file very quiet: the Normalise option scales the picture so even a faint signal reaches full brightness, without changing the readout.

A file whose every sample is zero is flagged as silent and stays black.

Why a Spectrogram Cannot Prove a File Is Clean

A spectrogram shows what is audible as frequency over time. Data can sit in places it never shows: the lowest bits of the samples, a chunk added to the file, bytes after the end, metadata, or a signal buried below the level range you chose. Finding nothing here means only that nothing showed up in this view. The Next steps tab lists tools for the other places.

The Three Presets

Choosing a preset sets only the window size, window function, overlap, frequency range and axis. Channel, colours, level range and gain stay as they were.

PresetFFT sizeWindowOverlapUse it when
Balanced2048Hann50%You want a first look at anything.
Fine detail8192Hann75%You need to separate close frequencies, such as steady tones.
Wide band1024Hann50%You need to separate close moments, such as clicks or fast changes.

The Twelve Gallery Settings

A fixed list of our own, all with the Hann window and 50% overlap. It is not claimed to be optimal.

#FFT sizeFrequency axisColours
11024LinearGrayscale
22048LinearGrayscale
34096LinearGrayscale
48192LinearGrayscale
516384LinearGrayscale
62048LogarithmicGrayscale
74096LogarithmicGrayscale
82048LinearMagma
94096LinearMagma
108192LinearMagma
114096LogarithmicMagma
124096LinearHeat

Examples

Input: Example 1: Two tones and a sweep (FFT size). Load the sample “Two tones and a sweep” (6 seconds, 22,050 Hz, mono).

Result: At FFT 2048 you see a 1000 Hz line for the first 3 seconds, a 3500 Hz line for the last 3 seconds, and a diagonal rising from 500 Hz to 3500 Hz across the whole 6 seconds. At FFT 16384 the lines get thinner (finer bins) and the starts and ends of the tones smear in time.

Meaning: Settings used: Hann window, 50% overlap, linear axis. Bin width 10.77 Hz at FFT 2048 and 1.35 Hz at FFT 16384.

Input: Example 2: Text drawn in the sound. Load the sample “Text drawn in the sound”. It plays for 4.40 seconds.

Result: Set the frequency range to 1800 Hz to 5200 Hz. At FFT 2048 the words FLAG IN SOUND appear as a dot-matrix picture (78 columns of 7 rows). At FFT 16384 the dots blur together and the letters are no longer readable.

Meaning: The message is our own and synthetic: this tool's code generated it to show the technique, and the tool does not read text out of other audio. It is made like this: each lit dot is a short tone at 2000 Hz plus 500 Hz per row, 50 ms wide. The FFT size has to resolve 500 Hz rows and 50 ms columns at once.

Input: Example 3: Stereo Mix and Side. Load the sample “Stereo: shared and opposite”.

Result: Choose Mix: only the 1000 Hz tone shows. Choose Side: only the 2500 Hz tone shows.

Meaning: The left channel holds both tones; the right channel holds the 1000 Hz tone and the 2500 Hz tone with its sign flipped.

How it works

Read

A WAV is read in slices of at most 1 MB straight into one array of 32-bit numbers. A compressed file is first checked: its header gives the length, rate and channels, and it is refused before decoding if the decoded audio would not fit this device. Your browser then decodes it at the sample rate the file's header declares, and the tool compares the rate it gets back with that: if they differ, a note says so. If the header declares a different rate from the audio itself (for example some HE-AAC files), the browser can resample without any warning. A header that claims more audio than the file holds is read up to the end of the file, with a note.

Slice and measure

Each slice is multiplied by the window, passed through a fast Fourier transform and scaled so that a full-scale sine on a bin reads 0 dBFS. Slices overlap by the amount you choose and are centred on multiples of the step; the ends of the file are padded with zeros.

Draw

When a pixel covers several slices or bins it shows the loudest of them, so a narrow tone is never averaged away. When you zoom in far enough that one slice covers several pixels, you see solid blocks, never a smoothed guess.

Measure

The readout, the playhead, the markers, the peak panel and the PNG export all share the same mapping from position to time and frequency, which keeps their coordinates consistent.

Stay within memory

Everything that holds memory (the audio, cached slices, gallery previews, an export, a playback copy) is counted against one budget. When something does not fit, cached pictures are dropped first, then the request is made smaller, and only then refused with the numbers.

What the results mean

What you seeWhat it meansWhat to do
A bright horizontal lineA steady tone at that frequency.Read its frequency with the pointer, or use the peak panel on the selected time range.
A bright vertical stripeA click or a very short sound across many frequencies.Zoom in and mark its time.
A diagonal lineA frequency rising or falling over time (a sweep).Use a smaller FFT size if it looks smeared.
Shapes or lettersFrequencies were arranged to draw something. They only read well in a limited frequency range and FFT size.Narrow the range, try the Gallery, then type what you read into the transcription box.
Nothing visibleNothing stands above the level floor in what you are looking at. It is not proof that nothing is hidden.Check the range, the level range and the channel, then see the blank-picture section above.
“Spectral peaks (descriptive)”The frequencies in your selection that stand at least 10 dB above the median level, up to 10.A peak can be a harmonic, noise or ordinary audio. The “possible harmonic” column marks a peak that sits near a whole-number multiple (2 to 8) of a lower peak that is at least as loud (within 0.5 dB). It is a place to look, not a result.

Limitations

  • WAV files (integer PCM at 8, 16, 24 or 32 bits, or 32-bit float) up to 100 MB, and MP3, FLAC, OGG (Vorbis or Opus) and M4A (AAC) files up to 10 MB (5 MB on a phone or low-memory device) whose decoded audio fits this device (96 MB, 64 MB or 32 MB of decoded samples on a large, medium or small device), up to 8 channels, sample rates from 1,000 to 384,000 Hz. The audio is held as 32-bit numbers, so decoded audio over 150 MB is refused with the numbers.
  • Compressed files are decoded by your browser in one step that this tool cannot limit or watch. The size is therefore checked from the file's header first (exact for FLAC, Ogg, M4A and MP3 files with a frame count; for other MP3 files a preliminary estimate from the first frame's bitrate with a 15% margin, which a variable-bitrate file can exceed; it is only an estimate, not a safe upper bound, and the length is checked again after decoding), and a file that fails the check is refused with the numbers. A header can be wrong or hostile, so the check bounds the risk but cannot remove it. Different browsers support different codecs: in our tests Chromium and Firefox decoded MP3, FLAC, Ogg (Vorbis and Opus) and M4A (AAC), while the WebKit engine (Safari's) decoded MP3 and FLAC but not Ogg or M4A (real Safari was not tested). Decoded lengths matched the header within 7 ms in the files we tried; whether a decoder shifts the start of the audio was not measured. Opening a WAV avoids all of this.
  • The picture shows what is audible as frequency over time. It does not read the lowest bits of the samples, chunks added to the file, bytes after its end or its metadata; use the tools on the Next steps tab for those.
  • The peak panel summarises one time interval. It averages every bin across the interval, so a frequency that moves is smeared, and an interval that needs more than 33,554,432 bin values (slices × bins) is refused with the numbers. It needs at least 8 bins in range to estimate a noise floor.
  • Gain, normalise, mirror, flip and rotate change only the picture. The readout, markers and peaks are not changed. Axes and the readout are hidden while the picture is rotated.
  • PNG export is capped at 8 million pixels and 8192 pixels on a side. A larger request is drawn at half size, again if needed, and never stretched.
  • Playback needs a second copy of the audio and is offered only when it fits in memory. The volume starts at half and never goes above full scale; samples beyond full scale are clipped by the output.
  • Hand-offs hold one item at a time in this browser for up to 30 minutes. Sending your transcription asks first if something else is already waiting.
  • Not built: SSTV decoding, reading text from the picture, saving a session, batches of files. The “possible harmonic” column and the keypad-tone hint are experimental: simple rules on the peak list, checked only on synthesized tones.
  • These are two separate limits. For MP3, FLAC, OGG and M4A the device budget (96 MB, 64 MB or 32 MB) is checked first, from the file's header and before anything is decoded. The 150 MB ceiling is the fixed cap on decoded samples for a WAV (39,321,600 mono sample frames); a compressed file never reaches it, because the largest device budget is 96 MB. How long a file can be depends on its sample rate and channels: decoded size is seconds × sample rate × channels × 4 bytes, so 44.1 kHz stereo uses about 20 MB per minute, and mono or a lower sample rate fits more. Separately, everything this tool holds in memory is counted against one 400 MB working budget.
  • The memory budget is an accounting limit inside this tool. It cannot see inside the browser, so it does not guarantee a browser will never run out of memory on a very large file.

Privacy

Your audio is read and drawn in your browser, in a background worker. This tool does not send the file, its name, its contents or what you type to our servers. Analytics events carry feature names and ranges only. A file or text you send to another tool is held in your browser's IndexedDB for up to 30 minutes, one item at a time, and you can clear it from the Next steps tab.

Frequently Asked Questions

What is a spectrogram?

A picture of how the frequencies in a sound change over time: time left to right, frequency bottom to top, brightness for level. A steady tone is a horizontal line and a sweep is a diagonal.

Which files can I open?

WAV up to 100 MB, or MP3, FLAC, OGG and M4A up to 10 MB (5 MB on a phone or low-memory device) that fit your device's decoded-audio budget. The full limits are listed under Limitations. The drop zone shows the limit for your device before you choose a file.

Why is my MP3, FLAC, OGG or M4A refused?

Compressed audio is decoded by your browser into raw samples in memory, which can be ten times the file size or more. The tool reads the header first and refuses a file whose decoded audio would not fit this device (the limit depends on the memory and cores your browser reports, and a phone gets the smallest). The message gives the numbers. Trim the file, or convert it to WAV, for example with ffmpeg -i in.mp3 out.wav.

Are MP3 spectrograms accurate?

They show what the browser's decoder produced, not the original recording. Lossy compression removes detail, most of all at low bitrates, so a picture hidden in the highest frequencies can be gone from an MP3 made after it was embedded. In one measurement with the LAME encoder of ffmpeg 7.1, the noise in an MP3 reached about 8.3 kHz at 32 kbps, 11.2 kHz at 48 kbps, 16.6 kHz at 64 kbps and about 20 kHz at 96 and 128 kbps, and an 18.5 kHz tone at -18.3 dBFS was removed at 32, 48 and 64 kbps and kept (-18.8 dBFS) at 96 and 128 kbps. Other encoders and settings differ. A WAV holds the original samples.

Is my file uploaded?

Your audio is read and drawn in your browser, in a background worker. This tool does not send the file, its name, its contents or what you type to our servers. Analytics events carry feature names and ranges only. A file or text you send to another tool is held in your browser's IndexedDB for up to 30 minutes, one item at a time, and you can clear it from the Next steps tab.

What do the dB values mean?

Each value is the peak amplitude of a sine wave in that frequency bin, in dBFS (0 dBFS is full scale). It is not power density, so noise levels cannot be compared across FFT sizes or window functions.

Which FFT size should I use?

Start with 2048. A bigger size separates close frequencies but blurs fast changes; a smaller one does the opposite. The Gallery tab draws twelve fixed combinations so you can compare them. The list is ours and is not claimed to be optimal.

How do I read text or a picture hidden in the audio?

Narrow the frequency range to where the shape sits, then try different FFT sizes (the shape only reads well when the window resolves both the frequency rows and the time columns). Type what you read into the transcription box: it checks the shape of flag{…}, ctf{…}, htb{…} and picoctf{…} and never changes your text.

The picture is blank. Does that mean the file has nothing hidden?

No. Check the frequency range, the level range and the channel first. Even then, data can sit where a spectrogram does not show it: the lowest bits of the samples, an added chunk, bytes after the end, or metadata.

Does it detect tones, DTMF digits or SSTV?

Partly. The peak panel lists frequencies that stand out in an interval. If exactly one peak matches a keypad row frequency and one a column frequency (ITU-T Q.23, within 1.5% of the frequency or one bin if wider, levels within 8 dB, no other peak within 10 dB of the weaker tone), it shows an experimental hint naming the key. It reads one interval, not a recording of several digits. Decoding SSTV pictures is not built.

Can I save what I see?

Yes: a PNG of the view with or without axes, legend and your markers, at up to 8 million pixels, and a JSON file of the settings. Settings alone do not recreate a picture: you need the same audio file too.