Spectrogram
Turn an audio file into a spectrogram image entirely in this tab. Choose the FFT size, window function, colour map, frequency band and dB range, then download the PNG — or watch the same analysis live from your microphone. Nothing is uploaded.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Spectrogram
On-deviceTurn an audio file — or your microphone — into a spectrogram PNG. Choose the FFT size, window, colour map, frequency band and dB range; the analysis runs entirely in this tab.
Press “Use microphone” to watch the live spectrogram.
Choose a file to analyse, or open the microphone for the live view.
Options
Frame length of the transform. Bigger resolves pitch better but smears drum hits; smaller is the reverse.
Tapers each frame so the edges do not leak energy across the spectrum. Hann is the usual default; Blackman leaks least.
How dB values become pixel colours. Viridis and magma are perceptually even; grayscale prints well.
Bottom of the displayed band. 0 keeps the full bass end.
Top of the displayed band, capped at the file’s Nyquist frequency (half its sample rate).
Anything quieter than this is drawn in the map’s darkest colour.
Anything louder than this is drawn in the brightest colour. Lower it to zoom into quiet detail.
How it works
What a spectrogram shows
A waveform tells you when sound happens; a spectrogram tells you what it is made of. The file is split into overlapping frames, each windowed and transformed with a fast Fourier transform, and every frame becomes a thin column of pixels: frequency up the picture, time along it, brightness the energy per band. A vowel appears as parallel harmonic stripes, a snare as a vertical smear.
Choosing the FFT size
The FFT size trades time against frequency detail. At 44.1 kHz a 256-point frame lasts about 6 ms and separates roughly 172 Hz per bin, ideal for percussive timing; a 4096-point frame lasts 93 ms and resolves about 11 Hz, suiting pitch. The 1024-point default sits between them.
Why the window matters
Cutting a signal into frames smears energy across the spectrum, so a window function tapers each frame to zero at both edges. Hann is the default, Hamming keeps a flatter main lobe, and Blackman leaks least at some cost to sensitivity. If ghosts appear around a loud tone, try another window.
Reading the dB scale
Colours map decibels, not raw amplitudes, because hearing is roughly logarithmic. The floor silences anything quieter and the ceiling pins the loudest; lowering it to minus one hundred reveals room tone and hiss, while raising it flattens everything but the loudest content.
Everything stays on your device
Your browser decodes the file, the FFT runs in plain JavaScript, and the PNG is built byte by byte with no libraries. The same path drives the live microphone view, and no audio leaves your machine, so it works offline once cached.
Questions
Which audio formats can I load?
Whatever your browser can decode — commonly MP3, WAV, OGG, M4A and FLAC. The file is decoded locally with the Web Audio API, so support depends only on your browser, not on any server.
Why is the time axis blurred with a large FFT size?
Each column of the image covers one FFT frame, and a 4096-point frame spans about 93 ms at 44.1 kHz. Events shorter than a frame get averaged into it. Halve the FFT size to sharpen time at the cost of frequency detail.
My quiet recording looks almost blank — what do I change?
Lower the dB floor. The default −80 hides anything quieter; at −100 or −110 room tone, reverb tails and hiss appear. The ceiling does the opposite job: lower it to −20 to make mid-level material stand out.
Why does the frequency axis stop below 20 kHz?
The displayed band is clipped at the file’s Nyquist frequency — half its sample rate. A 32 kHz recording tops out at 16 kHz, which is a property of the file, not a limit of the tool.
Does anything leave my device?
No. Decoding, the FFT, the colour mapping and the PNG encoding all run in this tab. Nothing is uploaded, and the tool keeps working with no connection.
Related tools
See categoryAudio File Info
Inspect an audio file: duration, sample rate, channels, bitrate, peak and clipping.
Tone / Signal Generator
Generate a tone, waveform or noise signal as a downloadable WAV file.
Tuner
Tune an instrument from your microphone: see the note, the cents deviation and a needle.
BPM Detector
Find the tempo of a song from a file or the mic, with a tap-tempo fallback.