What is a spectrogram?
A spectrogram is a picture of sound with time across, frequency up and level as color. It is made by cutting the audio into short overlapping frames, measuring how much energy each frame holds at every frequency with a Fourier transform, and setting the results side by side. A spectrum shows the frequencies of one moment or of a whole file at once; a spectrogram shows how they change, so a melody, a drum hit, a hum and the top edge of an MP3 encode can all be told apart at a glance.
How do I see the spectrogram of an MP3, FLAC or WAV file?
Drop the file on the picture at the top of this page, or press Choose an audio file and pick it. The page decodes it in your browser and draws the whole file in a second or two. MP3, FLAC, WAV, AAC, M4A, ALAC, OGG and AIFF work in current browsers, and DSD files (DSF and DFF) are converted to PCM first. Nothing is uploaded.
What do the colors on a spectrogram mean?
Each color stands for a level, from the bottom of the key under the picture (the quietest level drawn) to the top (0 dBFS, the loudest a digital file can hold). The Level range setting decides where the bottom sits: at 120 dB, anything more than 120 dB under full scale is drawn as the darkest color. Point at the picture and the line under it gives the exact time, frequency and level there.
Can a spectrogram show whether a FLAC file is fake?
It shows the evidence. A FLAC or WAV made from an MP3 keeps the lossy encoder's ceiling, often a flat cutoff somewhere between 16 and 19 kHz through the whole song, and a 96 kHz file converted up from 44.1 kHz shows a hard wall near 22 kHz with nothing above it. A spectrogram cannot prove how a file was made, because mastering can leave the same marks. The FLAC and hi-res audio checker on this site reads the cutoff for you and names what it found.
Should I use a linear or a logarithmic frequency scale?
Use linear to look at the top of a file: it gives the treble most of the height, so an encoder's cutoff or a 22 kHz wall is easy to see. Use logarithmic to look at music: it gives every octave the same height, the way hearing spaces pitch, so bass notes, voices and harmonics spread out where you can read them.
Which window size should I pick?
Start at 4,096 points. A longer window, 8,192 or 16,384, separates notes and hum lines that sit close together but smears short sounds across its length. A shorter one, 1,024 or 2,048, shows exactly when a click or a drum hit happens but blurs pitches. The window table on this page gives the frequency step and the frame length of each size at 44.1 and 48 kHz.
Why does my file stop at 16 kHz?
Usually because it went through a lossy encoder: MP3 and AAC encoders cut the top of the spectrum to spend their bits lower down, and the lower the bitrate, the lower the cut. A file at a low sample rate stops early too, because nothing can sit above half its rate: a 32 kHz file stops at 16 kHz. If a file sold as lossless stops there, it was probably made from a lossy copy.
Does it work like Spek?
It draws the same kind of picture as Spek, the free desktop spectrum analyzer people use to check downloads, in a browser tab with nothing to install. It adds zoom, a level readout under the pointer, playback with a playhead and a choice of scale, window and colors, and it reads DSD files.
Is my audio file uploaded?
No. The file is decoded and analyzed by your own browser, and the spectrogram is drawn on your device. Nothing about the file is sent anywhere or stored, so closing the tab clears it.
Does it work on a phone?
Yes. Press Choose an audio file and pick a song from your Files app or downloads. Phones draw the picture a little more slowly than a laptop, and a very long hi-res file can run out of the memory a phone browser allows, in which case try a shorter file or a laptop.