Audio Spectrum
Visualize the frequencies or waveform of an audio file or your microphone in real time. 100% in your browser.
Drag an audio file or click to select
Nothing is uploaded anywhere: audio and microphone are processed only in your browser.
Built by
Miguel Ángel Colorado Marin (MACM)
Built by
Miguel Ángel Colorado Marin (MACM)
Full-Stack Developer · Guadalajara, España
I develop web apps, digital tools and full projects — from design to deployment.
The audio spectrum visualizes in real time how the frequencies of a sound are distributed, or its waveform, using your browser's Web Audio API analyser. You can load an audio file and play it while watching the frequency bars move to the rhythm of the music, or turn on the microphone to see your voice or ambient sound live. Switch between the frequency bars view (useful for seeing lows, mids and highs) and the waveform view (the classic oscilloscope representation). All the analysis happens locally in your browser, nothing is uploaded or recorded to any server.
Features
- ✓Real-time frequency bars
- ✓Real-time waveform
- ✓From an audio file
- ✓From live microphone
- ✓100% in browser, no uploads
How to use the spectrum visualizer?
- 1
Choose a source
Upload an audio file or turn on the live microphone.
- 2
Choose the view mode
Frequency bars or waveform, depending on what you want to see.
- 3
Play
Press play on the audio, or just speak if you're using the microphone.
- 4
Watch the visualization
The bars or the wave react in real time to the sound.
Examples with real values
Example at 48,000 Hz: the analyzer uses a 2,048-sample FFT window, which gives 1,024 frequency values about 23.4 Hz apart. There are 96 bars on a logarithmic scale from 20 Hz up to the Nyquist frequency, 24,000 Hz. A 440 Hz A note falls on the 445 Hz value and shows mostly in bar 42.
Example at 44,100 Hz: each frequency value covers about 21.5 Hz and the top of the bar range is 22,050 Hz. Because the scale is logarithmic, each octave takes about 9.4 bars at 48,000 Hz and about 9.5 at 44,100 Hz. That is why several low bars share the same FFT value, while at the high end a single bar groups many values.
Example in the waveform view: each frame reads 1,024 samples, so at 48,000 Hz the screen shows about 21 ms of sound. A 100 Hz tone has one cycle every 10 ms, so about two full cycles fit on screen.
Example of use: with a song loaded, press play and watch how the bars change over the course of the playback. If the audio is silent, all the bars drop to zero and the waveform becomes a flat line.
Common mistakes and limits
If the microphone does not respond, check the browser permission. The message “Couldn't access the microphone” appears whenever the access request fails, for example when the permission is denied or no microphone is available.
If the browser cannot play a file, you will not see its spectrum either, because the analysis is connected to the same audio player. With the microphone the signal is analyzed but never sent to the speakers, so there is no echo.
What it does not do: it does not record, store anything or keep a history. It is not a spectrogram: it shows only the current moment, with no graph of its evolution over time. The bars are not calibrated to absolute levels: they are a 0 to 255 scale that the browser derives from values between -100 and -30 dB.
Related tools: the Tone Generator creates a reference tone so you can see how it looks in the spectrum, the Audio Recorder records before you analyze, and the A/B Audio Comparator compares two files. If the browser does not play your file's format, try the Audio Converter first.
Frequently asked questions
Is my audio or voice uploaded to any server?
No. All the analysis is done with the Web Audio API directly in your browser. Neither the file nor the microphone are sent anywhere.
What's the difference between frequency bars and waveform?
Frequency bars show how much energy there is in each frequency range (lows on the left, highs on the right). The waveform shows the signal's amplitude over time, like an oscilloscope.
Do I need to grant permission to use the microphone?
Yes, your browser will ask for microphone access permission the first time. You can revoke it anytime from your browser settings.
What audio formats does it support?
The ones your browser plays natively, for example MP3, WAV, OGG or M4A, depending on the browser. If it cannot play the file, it cannot visualize it either.
Related tools
Embed Audio Spectrum on your site
Add Audio Spectrum to any web page with a simple iframe. Free, with attribution to miguelacm.es.
<iframe
src="https://miguelacm.es/embed/audio-spectrum?locale=en"
width="100%"
height="700"
frameborder="0"
allow="clipboard-write"
title="Audio Spectrum — miguelacm.es"
></iframe>View embed in new tab →