Home › Audio & Video › Audio Spectrogram Generator

Audio Spectrogram Generator

See the frequencies inside any recording. Drop an audio file to render a full-length spectrogram, then change the FFT size, window, color map, frequency scale and dB range, zoom into any moment, read exact frequencies with the cursor and save the picture as a PNG.

Last updated:

Hover the spectrogram to read time, frequency and level.

Advertisement
Advertisement

How to use the Audio Spectrogram Generator

  1. Add an audio file by dropping it on the box or clicking Choose audio. A demo sound with a chirp, notes and noise is shown until you do.
  2. Read the image: time runs left to right, frequency bottom to top, and the color shows how loud each frequency is. Hover to read exact values.
  3. Adjust the analysis: a larger FFT size gives sharper frequencies, a smaller one sharper timing. Pick the color map, scale and dB range that show your sound best.
  4. Zoom in with the + button and drag the image to pan. Click anywhere to listen from that point.
  5. Download a PNG: set the size, choose whether to include axes and the whole file or only the current view, then press Download PNG.

How the spectrogram is calculated

The tool runs a short-time Fourier transform. For every column of pixels it takes a block of N samples (the FFT size) around that moment, multiplies it by a window function that fades the block's edges to zero, and computes a fast Fourier transform. The result is the strength of N/2 frequency bins, each sample rate ÷ N hertz wide. When one pixel column covers more audio than one block, several blocks across the column are averaged so short sounds are not skipped.

Each bin's power is converted to decibels relative to a full-scale sine wave: dB = 10 × log10(|X|² × (2 ÷ Σw)²), where Σw is the sum of the window values. A 0 dBFS sine therefore reads about 0 dB, and each 6 dB step down is half the amplitude. Gain and range then decide which part of that scale is mapped onto the colors.

FFT size: time versus frequency resolution

FFT sizeWindow length at 44.1 kHzBin width at 44.1 kHzGood for
2565.8 ms172 HzDrum hits, clicks, very fast events
51211.6 ms86 HzSpeech consonants, percussion
102423.2 ms43 HzSpeech, birdsong
204846.4 ms21.5 HzGeneral music and voice (default)
409692.9 ms10.8 HzMelodies, harmonics, tuning
8192186 ms5.4 HzBass notes, hum and its harmonics
16384372 ms2.7 HzVery fine pitch detail in slow, steady sounds

The window shapes the trade-off further. Hann is a balanced default. Blackman-Harris hides weak sounds next to loud tones much better (low leakage) at the cost of slightly wider lines. Hamming gives narrower peaks with more leakage, and rectangular (no window) gives the sharpest peaks but smears energy across the whole image.

Reading common patterns

  • Horizontal lines are steady tones: a sung or played note shows a stack of lines at the fundamental and its harmonics (2×, 3×, 4× …). A line at 50 or 60 Hz and its multiples is mains hum.
  • Vertical lines are short broadband sounds: clicks, claps, consonants like "t" and "k", and the attack of drums.
  • Diagonal or curved lines are changing pitch: sirens, birdsong, a voice going up at the end of a question, or a sweep.
  • Fuzzy regions are noise: wind, breath, hiss, cymbals and the "s" sound.
  • A sharp flat ceiling at 16 kHz or 19–20 kHz on the linear scale is the typical fingerprint of MP3 or AAC compression.

Frequently asked questions

What is a spectrogram?

A spectrogram is a picture of sound over time. The horizontal axis is time, the vertical axis is frequency (pitch) and the brightness or color of each point shows how much energy the sound has at that frequency at that moment. Speech, birdsong, instruments and noises each leave recognisable patterns.

What FFT size should I use?

It is a trade-off. A large FFT (8192 or 16384) separates close frequencies, good for musical notes and hum, but blurs fast events. A small FFT (256 or 512) shows drum hits and clicks sharply but smears frequencies. 2048 at 44.1 kHz (46 ms, 21.5 Hz per bin) is a good default for music and speech.

How can I tell if a FLAC or WAV is really lossless?

Look at the top of the spectrogram with the linear scale and the maximum frequency set to Nyquist. A real CD-quality file usually has content up to about 20–22 kHz. A file converted from a low-bitrate MP3 shows a sharp horizontal cutoff, typically at 16 kHz for 128 kbps or about 19–20 kHz for 192–320 kbps.

Which frequency scale is best?

The logarithmic scale gives every octave the same height, the way we hear pitch, so it suits music and speech. The linear scale gives every hertz the same height, which is useful for high-frequency details and codec cutoffs. Mel is a perceptual scale used in speech recognition and machine learning.

What do the dB range and gain controls do?

Levels are measured in decibels relative to a full-scale sine wave. Gain moves the brightest color down (with gain 20, everything at -20 dB or louder is shown at full brightness) and range sets how many decibels below that are still visible before the color reaches the background. Raise the range to see quiet noise, lower it for a cleaner image.

Is my file uploaded?

No. The audio is decoded by your browser and the spectrogram is calculated with a fast Fourier transform written in JavaScript on your own device.

Why do I see a mirror image or strange lines above a certain frequency?

Nothing above half the sample rate (the Nyquist frequency) can exist in a digital file, so the image always stops there. Thin horizontal lines are usually hum or electronic interference, and vertical lines are clicks or the start of drum hits.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Audio Spectrum AnalyzerLive FFT spectrum analyzer for your microphone or an audio file, with dominant frequency and note.Waveform Image GeneratorTurn any song or recording into a waveform image: bars, mirror or line, as PNG or SVG.BPM FinderFind the tempo of any song: analyze an audio file for its BPM or tap along to the beat.Audio Bitrate CalculatorWork out audio file size from bitrate and length, WAV size, or the bitrate for a target size.Screen RecorderRecord your screen with mic and system audio.Audio to TextTranscribe MP3, WAV and M4A recordings to text in your browser with Whisper. Export TXT, SRT, DOCX.Audio ConverterConvert MP3, WAV, M4A, OGG and FLAC to MP3 or WAV in batch, right in your browser.Audio CutterTrim MP3 and audio files, add fades and make ringtones.Audio JoinerMerge MP3 and other audio files into one track with crossfade.WAV to MP3Convert WAV files to MP3 at 128, 192 or 320 kbps, in batches.Voice RecorderRecord and trim audio in your browser.MP3 to WAVConvert MP3 files to WAV in batches.Audio Speed ChangerSpeed up or slow down audio, with or without pitch change.Audio Pitch ChangerShift the pitch of a song or recording up or down without changing tempo.Audio Volume Booster & NormalizerMake audio louder, normalize peaks or loudness, with a limiter against clipping.Clear Audio RecorderRecord clean audio with noise suppression and gain control.Sound Level MeterEstimate noise level in decibels using your microphone.Audio ReverserReverse any audio file and play it backwards, then download the result as WAV.Hearing TestCheck your hearing by ear and frequency, plot an audiogram and find your upper frequency limit.Text to Morse AudioTurn text into Morse code sound at any WPM with Farnsworth timing, then play it or save a WAV.Subwoofer Bass TestTest your subwoofer and bass response with 10–200 Hz tones, presets and a low-frequency sweep.M4A to MP3Convert M4A, AAC and iPhone voice memos to MP3 in batch, privately in your browser.Voice ChangerRecord or upload your voice and make it chipmunk, deep, robot, alien, radio or echo. Save as WAV.Ringtone MakerCut the best 15–40 seconds of any song, add fades and save it as an MP3 ringtone.OGG to MP3Convert OGG Vorbis and Opus audio to MP3 in batch, keeping tags. Free, no upload.FLAC to MP3Convert FLAC to MP3 at up to 320 kbps, keeping tags and album art. Batch, no upload.AAC to MP3Convert AAC and M4A audio to MP3 in batch, at 128 to 320 kbps. Free, no upload.OPUS to MP3Convert OPUS audio and voice messages to MP3 in batch, at 64 to 320 kbps. No upload.Audio NormalizerNormalize audio to a peak level or a LUFS loudness target, in batch, and save as WAV or MP3.Audio Noise ReducerRemove background hiss, hum and room noise from a recording using a noise profile, then save WAV.Audio Fade In and OutAdd a smooth fade in and fade out to any song or recording, then save it as MP3 or WAV.Audio Equalizer10-band EQ for audio files: boost bass, clarify vocals or tame treble, then save as MP3 or WAV.Audio MixerMix up to 4 audio tracks with volume, pan, start offsets and fades, then save the mix as MP3 or WAV.8D Audio ConverterMake any song 8D: sound circles around your head with reverb. Preview live, save MP3 or WAV.MIDI PlayerPlay MIDI files in your browser with a piano roll, tempo control, track mute and WAV export.Audio LooperLoop any part of a song seamlessly with a crossfade, repeat it N times or to a length, export.Audio Sample Rate ConverterResample audio to any rate from 8 to 96 kHz and change bit depth. WAV or MP3 output.Audio SplitterSplit audio into equal parts, fixed-length pieces or at silences, and download a ZIP.Mono to Stereo ConverterTurn mono audio into stereo: dual mono, comb widening or Haas delay, with a mono-compatibility check.MP3 to M4RTurn MP3s into iPhone M4R ringtones: pick the best 30-40 s, add fades, batch convert.Virtual Singing BowlStrike or rub the rim of a synthesized Tibetan singing bowl in 7 pitches, with sustain and loop.Speaker Wire Gauge CalculatorFind the right AWG speaker wire for any run length, impedance and allowed power loss.Stereo Channel SplitterSplit stereo audio into left and right mono files, extract mid/side, or swap, invert and mute channels.ABX Audio TestBlind ABX listening test between two audio files, with level matching and a p-value score.M4B Audiobook MakerCombine MP3 chapter files into one M4B audiobook with chapters, cover art and author tags.Bleep Censor ToolBleep out words in audio or video: mark them on the waveform or from a transcript, then export.Lossless Audio CheckerCheck if a FLAC or WAV is truly lossless or an upscaled MP3, with a spectrogram and verdict.Online VocoderClassic robot vocoder in your browser: speak or load a voice, play the synth carrier, record.Podcast Chapters GeneratorTurn timestamps into Podcasting 2.0 JSON chapters, YouTube chapters, or ID3 chapters inside your MP3.Stream Countdown OverlayMake a "starting soon" countdown screen for OBS: pick time, colors, fonts and animation, copy the URL.Bass BoosterBoost the bass of any song with a low-shelf EQ and limiter, compare A/B, export MP3 or WAV.MP3 CompressorMake MP3 files smaller: re-encode at a lower bitrate, mono or sample rate, or fit a target size.MP3 Tag EditorEdit MP3 ID3 tags: title, artist, album, year, genre, track and album art, one file or many.Nightcore MakerSpeed up and pitch up any song into nightcore, add bass boost, save MP3/WAV or a cover video.Slowed and Reverb GeneratorMake slowed + reverb versions of any song: speed, reverb, room size and bass, export MP3/WAV.Stereo to Mono ConverterMix stereo audio to mono, extract the left or right channel, or swap channels. WAV or MP3.Tab Audio RecorderRecord audio from a browser tab or your system, mix in the mic, save WebM, WAV or MP3.WMA to MP3Convert WMA files to MP3 at 128-320 kbps or VBR, keeping tags. Batch convert, no upload.Audio to MIDI ConverterTurn a piano, guitar or voice recording into MIDI notes with AI, preview the piano roll and save a .mid file.Auto-Tune VoicePitch-correct singing to a key and scale, from natural to robotic T-Pain style, with a pitch graph.LUFS MeterMeasure integrated LUFS, true peak and loudness range of a song or video against Spotify and YouTube targets.MIDI to MP3Render MIDI files to MP3 with General MIDI SoundFont instruments, tempo, transpose and reverb.Online Audio EditorEdit audio in your browser: cut, copy, paste, fade, normalize, effects, markers, undo. Export MP3/WAV.Online Audio MasteringMaster songs automatically to -14 or -9 LUFS with EQ, multiband compression and a true-peak limiter.Podcast Audio EnhancerOne-click voice cleanup: noise reduction, de-ess, EQ, compression and -16 LUFS loudness.Subwoofer Box CalculatorSealed or ported sub box volume, port length for a tuning frequency and a panel cut list.Baby Monitor (Sound Alert)Turn a spare phone or laptop into a sound-activated baby monitor with alerts and a wake-up log.Dog Training ClickerOnline dog clicker: tap the big button for a crisp click, adjust tone and volume, time treats and sessions.
See all 99 Audio Converters & Editors →