By · Updated

Spectrum Analyzer Online

Live FFT of Your Mic or an Audio File

No ratings yet

OneTask is free, with no sign-up, and built by one person.
If this tool saved you time, a coffee helps keep new ones coming.

How the Spectrum Analyzer works

This spectrum analyzer online tool shows live frequencies. Press Play, allow the microphone, and the scope becomes a live frequency spectrum: bass on the left, treble on the right, level as height. Drop an audio file instead and it plays on a loop while the analyser tracks it. The table underneath reports the strongest frequency with its note name and the average level in seven bands from sub-bass to air. Nothing is recorded, saved or uploaded.

Spectrum analyzer online: how it works

A waveform shows level against time; a spectrum shows level against frequency. It answers a different set of questions — is there rumble below 40 Hz, is the hiss above 10 kHz, where does the vocal actually sit, why does the mix sound muddy — and it does it in real time, so you can watch the spectrum change as you turn a knob, move a microphone or open a window.

How it works. The browser's analyser node takes a block of samples — the FFT size — and runs a fast Fourier transform on it, which turns the block into a set of frequency bins, each reporting how much energy sits in a narrow slice of the spectrum. The number of bins is half the FFT size, and they are spaced evenly from zero to half the sample rate, so a 4096-point FFT at 48 kHz gives 2048 bins about 11.7 Hz apart. The Resolution line in the table shows that spacing for the current settings.

Choosing the FFT size is a trade between frequency and time. A bigger FFT resolves finer detail — 16384 points separates bins less than 3 Hz apart, enough to see the individual harmonics of a bass note — but each block covers a third of a second, so fast changes blur. A small FFT of 1024 points updates almost instantly but its bins are nearly 50 Hz wide, which lumps all the low bass into a couple of bars. 4096 is a good default for music; drop to 2048 for percussion, rise to 8192 or above for tuning and hum hunting.

Logarithmic or linear. Hearing is logarithmic: every octave doubles the frequency, and the octave from 50 to 100 Hz matters as much to the ear as the one from 5 to 10 kHz. The logarithmic axis gives each octave the same width, so the bass region is spread out and readable and the display looks like an equaliser. The linear axis gives each hertz the same width, which crushes everything below 1 kHz into the left edge but makes evenly spaced harmonics appear evenly spaced — the right view for checking a test tone's distortion products or seeing the comb pattern of a delay.

Smoothing averages each bin with its previous values. None shows every frame raw and flickers with the signal; Medium steadies it for general viewing; Heavy takes a second or two to settle and is best for reading the average balance of a whole track. The peak hold marks, drawn in a paler colour above the bars, remember the highest level each bin has reached and decay slowly, so a short burst is visible for a moment after it has gone.

Range below 0 dB sets the floor of the display. The top is always 0 dB, the loudest a digital signal can be; 96 dB below that is the noise floor of a 16-bit file and shows almost everything. Raise the floor to 48 or 60 dB to zoom in on the loud part of the spectrum and make small differences in the top half easier to see.

The table. The Peak line is the single strongest bin, converted to hertz and to the nearest note name at concert pitch, which is often enough to identify a hum (50 or 60 Hz and its harmonics), a whistle or a feedback frequency. The seven band lines average the energy within the conventional ranges — sub, bass, low mid, mid, high mid, presence and air — so you can compare the balance of two recordings numerically rather than by eye. The table refreshes a few times a second so it stays readable.

Microphone or file. With no file loaded the tool listens to the default microphone with echo cancellation, noise suppression and automatic gain turned off, so the spectrum is the raw input rather than a processed voice call. The output is muted to prevent feedback. Drop a file and it plays through your speakers on a loop instead; the settings can be changed while it runs and the display retunes without restarting.

FAQ

Why is there a peak at 50 Hz or 60 Hz that I cannot hear?

That is mains hum picked up by the microphone or its cable, at the frequency of your local electricity supply, and often a row of harmonics at multiples of it. It is real, and a high-pass filter or a better cable will remove it. The Peak line will name it directly.

Why does the bass look like a few wide blocks?

The FFT bins are spaced evenly in hertz, so on a logarithmic axis the lowest bins are very wide. Increase the FFT size to 8192 or 16384 to get more bins in the bass region, at the cost of a slower response.

What do the dB values mean?

They are decibels relative to full scale, per bin: 0 dB would be a single frequency at the maximum level a digital signal can hold. Because a real sound spreads its energy over many bins, even a loud signal peaks well below 0 dB here, and the numbers are best used for comparing bands or recordings rather than as absolute levels. For a calibrated overall level use the Decibel Meter.

Can I analyse a whole song and get a picture of it?

This tool is live and shows one moment at a time. For a picture of the whole file with time along one axis and frequency along the other, use the Spectrogram tool, which renders the file to a PNG.

See also: all Audio tools, Images, Video & Screen, PDF, SVG, Simulations & Screensavers, Generative Art, Chart Makers, 3D Model Viewers, Drawing Pads, Mockups & 3D Making, Diagram Makers, 3D Science, Tracker Music.

Related tools