About Audio Spectrogram
A spectrogram shows sound as a picture: time runs left to right, pitch runs bottom to top, and brightness shows loudness. It makes hum, hiss, a whistle, a bird call or a missing top end easy to spot, and shows whether a file really holds the frequencies its format claims.
Choose the window size to trade sharp timing for fine pitch, a logarithmic or linear frequency scale, the range of levels shown and one of four colour maps. The readout gives the strongest frequency across the whole file with its nearest note. Save the picture, axes included, as a PNG.
How it works
- Your browser decodes the file into samples, and every channel is mixed into one.
- A background worker takes 1,200 evenly spaced moments, applies a Hann window around each and runs a fast Fourier transform, once for every window size so switching is instant.
- Levels are in dB where a full-scale sine reads 0; each pixel row reads the level at its frequency, between the nearest two bins.
- The strongest frequency comes from the average spectrum of the whole file over a 16,384-sample window, refined between bins.
Questions
Which window size should I pick?
At 48 kHz, 2,048 samples separates frequencies about 23 Hz apart and blurs time over about 43 ms. Choose 8,192 to tell close low notes apart, or 512 to see drum hits and clicks sharply.
Is the strongest frequency the pitch of the music?
It is the single frequency with the most energy across the whole file. For a whistle or a test tone that is the pitch; for a voice or an instrument it may be a harmonic instead of the note you hear.
Can I tell if an MP3 was made from a low-quality source?
Often, yes: a file whose picture goes dark above 16 kHz, with a sharp edge, was encoded at a low bitrate at some point, even if its current bitrate is high.
How long a file can it show?
Up to about 23 minutes of stereo at 48 kHz, and files up to 512 MB. A long file is shown whole: each column is one window of sound at its moment, so in a long file the moments are further apart and a click or short sound between two of them may not appear.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.