[Go to site: main page, start]

Spectrogram generator

Generate a real audio spectrogram from MP3 or WAV. Choose time and frequency ranges, linear or log scale and FFT window size, then export a labeled PNG.

See the frequencies moving through your audio.

Find a tone, compare frequency bands or inspect how a recording changes over time. Set a focused time range, choose the frequency view and take a readable, labeled spectrogram into your notes.

Free to use. No signup. Output: Labeled spectrogram PNG with real FFT analysis.

How to use Spectrogram generator

  1. Load a local MP3 or PCM WAV, or use the known-frequency tone example.
  2. Choose start/end times, frequency limits, linear or logarithmic scale and FFT window size.
  3. Generate the plot in a cancelable worker and download the labeled PNG.

Worked example: Find two known tones

FFT bin spacing at 48 kHz is 23.44 Hz with a 2,048-sample window. Adjacent bins spread energy because of windowing; colors represent digital amplitude, not acoustic loudness.

Example input
Load the original two-tone example, choose a maximum of 1,200 Hz and a 2,048-sample window, then generate the spectrogram.
Expected output
The stereo-average signal shows energy near 440 Hz and 660 Hz. The exported 1000 × 560 PNG includes time, frequency, scale, window and amplitude context.
Spectrogram generator: example output
Example output. Try the editable tool above. View example at full size

Questions, answered

Is this a real spectrogram?

Yes. A radix-2 FFT processes Hann-windowed audio frames and converts their magnitudes to dBFS with window-gain correction. The image uses 640 sampled time positions and 256 frequency rows. Frequency labels map to nearest FFT bins, and time labels mark window centers.

How should I choose a window?

Choose 512, 1,024 or 2,048 samples. Larger windows improve frequency resolution while reducing time precision. At 48 kHz, bin spacing is 93.75, 46.875 or 23.4375 Hz. Linear scale permits zero Hz; logarithmic scale starts at 20 Hz or above. Frequencies cannot exceed the 24 kHz Nyquist limit.

What limits and interpretation caveats apply?

Use mono or stereo MP3 or PCM WAV under 10 MiB and 90 seconds. Audio is decoded to 48 kHz and stereo channels are averaged, so opposing phases can cancel. Color spans −100 to 0 dBFS and is not a calibrated sound-level measurement. Processing stays local; canceling stops the FFT worker and editing settings clears the old output.

Keep building

Ready for feedback on your project?

Share what you are building with the VibeCodingList community.