Skip to content

Search tools

Online Spectrogram

Press Start mic or open an audio file. The spectrogram scrolls in real time: time runs left to right, pitch goes up, and color shows loudness. Nothing is uploaded.

  • Updated
  • Runs on your device

This tool can't run in this browser

Web Audio isn't available here. Open this page in a current version of Chrome, Edge, Firefox or Safari.

The spectrogram couldn't start

Something went wrong while opening the microphone. Try again, or open an audio file instead.

    More fixes

    Choose Allow in your browser's prompt.

    Audio from your mic or files is processed on this device and never uploaded. You can also drop a file here.

    Reading the file…

    Point at the image to read a value.

    30%

    Start with your device volume low, then raise it.

    Settings
    −100 dBFS
    80 dB

    Keys: M mic · O open file · Space pause or play · S scale · C colors · + − zoom · ← → scroll · E save PNG · Esc stop playback.

    Audio is processed on this device · Nothing is uploaded · Free

    How to use the spectrogram

    Press Start mic and make a sound, or open an audio file. Time runs left to right, pitch goes up, and brighter means louder. Save PNG keeps the image.

    1. Pick a source. Start mic shows sound live; Open audio file (or drag a file onto the tool) draws the whole file at once.
    2. Choose a scale. Log suits most sounds, Linear shows high frequencies in detail, and Mel follows how we hear pitch.
    3. Choose colors. Fire and Ocean are easy to read on screen; Inverted grayscale prints well.
    4. Set the dB floor in Settings if quiet sounds don’t show or the background is noisy.
    5. Read values by pointing at the image, or with the Cursor time and Cursor frequency sliders.
    6. Save PNG for a report, with axes, a color bar and an optional caption.

    No app is needed: the page works as a spectrogram viewer and generator in any current browser.

    How an audio spectrogram works

    This spectrogram online slices sound into short, overlapping windows, runs a fast Fourier transform (FFT) on each, and stacks the results side by side as columns. Each column shows how much energy every frequency had during that slice.

    Window length trades time detail for frequency detail. At 48 kHz, an FFT of 2,048 samples gives frequency bins 23.4 Hz wide from a 42.7 ms slice; 8,192 samples give 5.86 Hz bins, but each slice lasts 171 ms, so quick sounds blur. Use small sizes for drums and speech timing, large ones for exact pitches.

    Levels are converted to decibels and then to colors between the dB floor and the floor plus the range. The scale is set so a full-scale sine wave reads 0 dBFS, from the mic or a file. Frequencies can be spaced linearly, logarithmically (equal space per octave) or on the mel scale.

    How to read a spectrogram

    Spectrogram examples: a whistle as one thin line, a vowel as stacked lines, an 's' as a high noise band and a drum hit as a vertical stripe
    • A thin line is a pure tone: a whistle, a beep or an electrical whine. If it bends, the pitch changes.
    • Stacked, evenly spaced lines are a voice or an instrument. The lowest line is the note you hear; the others are harmonics. In speech, bright regions in the stack (formants) shape the vowels.
    • A broad band is noise: an “s” or “sh” sound sits high up, wind and fans spread wide.
    • A vertical stripe is a short hit with energy at many frequencies at once: a click, a clap, a drum.
    • Lines at 50 or 60 Hz and their multiples are mains hum from power wiring.
    • Birdsong often shows as fast chirps sweeping up or down between about 1 and 8 kHz.

    What people use spectrograms for

    Birders and nature recordists document calls, because a spectrogram shows rhythm and pitch shape better than a waveform. Speech teachers and researchers look at vowels and consonants. Audio editors spot clicks, hum and background noise before they edit, and can see where a noise sits so they can remove it without touching the voice.

    A spectrogram also shows whether a file marketed as lossless came from a lossy source: lossy encoders often remove the highest frequencies, which leaves a sharp horizontal cutoff across the whole track. Open the file with the Linear scale and the full range to look for one. To check a single moment in fine detail instead, use the spectrum analyzer. To trim a long recording before you open it, use the MP3 cutter.

    Finding hidden images in audio

    Some musicians and puzzle makers hide pictures in sound by drawing them into the frequencies. To find one, open the file, choose the Linear scale with the full frequency range, and set the FFT size to 4,096 or more. Then zoom into the part of the track where the image should be. Changing the colors and the dB floor often makes faint shapes stand out.

    Spectrogram vs spectrum analyzer

    A spectrogram shows how sound changes over time. A spectrum analyzer shows one moment in more detail, with exact peak frequencies. Use the spectrogram for speech, music and sounds that come and go, and the spectrum analyzer for a steady tone or hum. To see how a spectrogram draws a pitch, play a slow sweep from the tone generator near the microphone: it draws a rising line. To follow the pitch of your own voice, try the voice pitch analyzer.

    Frequently asked questions

    What is a spectrogram?

    A spectrogram is a picture of sound. Time runs from left to right, frequency goes from low at the bottom to high at the top, and color shows how loud each frequency is at each moment. It's made from many short FFTs, one per narrow slice of time, placed side by side as columns.

    How do you make a spectrogram?

    On this page, press Start mic and make a sound, or open an audio file, then press Save PNG to keep the image. In general, you cut the sound into short overlapping frames, apply a window to each, run an FFT, convert the result to decibels, and stack the frames side by side as columns of color.

    How do I analyze a spectrogram?

    Look for shapes. Thin horizontal lines are steady tones, stacks of evenly spaced lines are voices or instruments, broad bands are noise, and vertical stripes are clicks or hits. Point at the image to read the time, frequency and level. If quiet parts look empty, lower the dB floor; if everything looks bright, raise it.

    What is a mel spectrogram?

    A mel spectrogram maps frequencies onto the mel scale, mel(f) = 2595 · log10(1 + f/700), using triangular filters. Low frequencies get more room and high ones less, which is closer to how people hear pitch. Mel spectrograms are common in speech recognition and machine learning. Choose Mel above the image to see one.

    Can you turn a spectrogram back into audio?

    Not exactly. A spectrogram image keeps how loud each frequency was but throws away the phase, the timing detail inside each frame. Methods such as Griffin-Lim estimate a phase and rebuild an approximate sound, which often sounds metallic or smeared. This page makes spectrograms from audio; it doesn't convert images back into sound.

    How do I make a spectrogram in MATLAB or Python?

    In MATLAB, use spectrogram(x, window, noverlap, nfft, fs, 'yaxis') with your signal and sample rate. In Python, scipy.signal.spectrogram returns the frequencies, times and power, and matplotlib.pyplot.specgram plots one directly. For a mel spectrogram, librosa.feature.melspectrogram computes it, and librosa.display.specshow draws it with labeled axes.

    Can a spectrogram show hidden images in audio?

    Yes, if someone encoded a picture into the frequencies of a sound. It shows up when you view the file as a spectrogram. Open the file, choose the Linear scale with the full frequency range and an FFT size of 4,096 or more, and zoom in on the part where the image should be.

    • Spectrum Analyzer

      Real-time audio spectrum analyzer from the microphone with log/linear scales, peak hold and note readout.

    • Online Tone Generator

      Pure tone generator (1-22,000 Hz) with sine/square/sawtooth/triangle, fine tuning, sweep, presets and keyboard control.

    • Voice Pitch Analyzer

      Shows your speaking/singing pitch over time (Hz and note) with average, range and target bands.

    • MP3 Cutter

      Trim any audio file on a waveform, add fades and save the part you want as MP3 or WAV. Nothing is uploaded.

    • Mic Test

      Checks that a microphone works: live level meter, waveform, device picker, 'hear yourself' monitoring and more.

    All tone & frequency tools

    Written and tested by Tanveer Azam Ansari.

    Each tool is checked on real speakers, headphones and microphones in current browsers. How we test

    Updated Report a problem