b2KIT

Audio Spectrum Analyzer

Display real-time frequency spectrum analysis of audio with FFT visualization.

Tested tool guide Tested browser tools Checked August 16, 2026

What Audio Spectrum Analyzer does, with a checked example

This tool displays live audio as a frequency plot: the horizontal axis runs from low to high frequency, and the vertical axis shows how much energy each frequency carries, redrawn continuously as the sound changes. It works by taking short slices of the incoming audio and computing a fast Fourier transform on each slice, revealing the frequencies inside it. The analysis runs entirely in your browser, so the audio never leaves your device. The thing most people misread is the tallest peak: voices and instruments produce harmonics, so the highest bump is often an overtone rather than the pitch. Read the whole pattern.

Worked example

A concrete input and expected output from the current implementation.

Input

Play a steady 440 Hz test tone, for example from any online tone generator, and hold it while the analyzer runs.

Expected output

The display shows one dominant, narrow peak positioned near 440 Hz, well above a quiet floor elsewhere. Raise the pitch and the peak moves right; lower it and it moves left; stop playing and it collapses back to the floor.

A pure tone puts nearly all its energy at one frequency, so the transform produces a single tall band centered there. The exact position is the nearest frequency bin, which can sit slightly above or below 440 Hz depending on the transform size and sample rate.

How the result is produced

1

Where the frequency axis ends

The plot spans from near 0 Hz up to the Nyquist limit, which is half the sample rate of whatever audio feeds the analysis. The source sets that boundary: high-rate audio shows the full human hearing range, while low-rate recordings or streams stop at a few kilohertz and show no energy above that. Within that range, the transform measures energy at evenly spaced frequencies; the spacing is the sample rate divided by the transform size.

2

Reading the pattern, not the tallest bump

The shape of the display identifies the sound. A pure tone is one narrow bump. Speech and musical notes form a stack of evenly spaced bumps: the fundamental plus harmonics at double, triple, and higher multiples of its frequency. Broad noise, such as breath, hiss, or wind, fills a wide region at low height. When a harmonic stack appears, the spacing between the bumps, not the tallest one, is the actual pitch.

Good uses

  • You suspect a speaker, earbud, or recording has lost its high end: play bright music or high test tones and watch whether the plot still responds at the frequencies where the top notes should sit.
  • A hum, whistle, or ringing tone is buried in audio you are editing: play the audio and read the steady narrow bump's position on the frequency axis, then cut exactly that band with an equalizer.
  • You are tuning an instrument or practicing a note: play it and watch where the main bump and its harmonic stack sit, adjusting until they land on the target pitch and stay there while the note holds.

Limits and checks

  • With microphone input, the plot shows everything the microphone hears, including room tone, fans, mains hum, and your own breathing, not just the intended source. A low, steady floor in silence is normal. To isolate a sound, play it louder than the room or move the microphone closer.
  • A finite analysis window cannot separate tones closer together than roughly one frequency bin, so two low notes a few hertz apart can merge into a single pulsing bump instead of two peaks. The plot resolves tones only when they are farther apart than the bin width: the sample rate divided by the transform size.
  • Peak heights are relative energy, not calibrated loudness. They work for comparing frequencies within one plot, but they are not measurements to compare across different recordings, sessions, or input levels. For absolute levels, use a dedicated level meter.

Common questions

Is my audio uploaded or recorded anywhere?

No. The analysis runs entirely in your browser on this device; the audio is processed locally as it plays and is not uploaded or stored. If the tool requests microphone access, the permission belongs to this page only and can be revoked at any time in the browser's site settings.

Why does the tallest peak not match the note I am playing?

Most real sounds contain many frequencies at once: a voice or instrument produces a fundamental plus harmonics at whole-number multiples, and a harmonic is often louder than the fundamental. The tallest bump can therefore be an overtone while the actual pitch is lower. Read the pitch from the spacing between the evenly spaced bumps; that spacing is the fundamental frequency.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools