b2KIT

Audio Waveform Viewer

Visualize audio file waveforms with zoomable timeline, amplitude display, and spectrogram view.

Tested tool guide Tested browser tools Checked August 15, 2026

What Audio Waveform Viewer does, with a checked example

Audio Waveform Viewer loads a sound file locally and shows two views of it: an amplitude waveform you can zoom into down to individual oscillation cycles, and a spectrogram that maps frequency content against time using color intensity. Use the zoomable timeline to inspect transients, clipped peaks, or silence gaps more closely. Most people load a whole song expecting the spectrogram to show crisp detail everywhere; in practice the display trades frequency resolution against time resolution, so very short percussive hits and closely spaced tones cannot both be shown sharply at once.

Worked example

A concrete input and expected output from the current implementation.

Input

a mono WAV file containing a pure 440 Hz sine tone, 2 seconds long

Expected output

the waveform panel shows a smooth, evenly spaced oscillation; zooming the timeline to a roughly 10 ms window reveals about 4.4 complete cycles, since one cycle at 440 Hz lasts 1/440 s, about 2.27 ms. The spectrogram shows a steady band of color near the 440 Hz row running the full 2 seconds.

A pure sine tone concentrates nearly all its energy at one frequency, so the spectrogram shows a steady band near that frequency, and the waveform's visible period matches 1 divided by the tone's frequency.

How the result is produced

1

Waveform rendering

The file is decoded into raw sample data and plotted as amplitude versus time. At wide zoom, each horizontal pixel covers many samples, so the display cannot show every sample as a distinct point. Zooming the timeline in reduces the samples represented per pixel until individual oscillation cycles become visible.

2

Spectrogram generation

The signal is analyzed in short time segments across its duration, and each segment's frequency content is computed and drawn as a color-coded vertical column, stacked left to right to build the time axis. A longer analysis segment sharpens frequency detail but blurs fast timing changes; a shorter one does the reverse.

Good uses

  • confirming a recording has no clipped peaks or unexpected DC offset before running further edits
  • spotting a narrow-band hum or noise, such as mains hum, in the spectrogram before deciding which filter to apply
  • visually locating silence gaps or transient onsets to pick precise trim or edit points

Limits and checks

  • Spectrogram color intensity indicates relative energy at each point in time and frequency, not a calibrated measurement; use it for spotting patterns, not for precise level metering.
  • Frequency and time resolution trade off against each other in any short-time-Fourier-based spectrogram, so a view sharpened for frequency detail necessarily blurs the exact timing of transients, and vice versa.
  • Very long or high-sample-rate files can be slow or memory-heavy for a browser tab to decode and render in full; extremely long recordings may need to be trimmed first.

Common questions

Does this upload my audio file anywhere?

No, decoding and rendering happen locally in your browser; the file itself is not sent to a server as part of viewing it. If you want to confirm this for your own setup, check the page for any explicit network activity before relying on that for sensitive material.

Why does the waveform look like a solid filled block until I zoom in?

At full-timeline zoom, each pixel column represents many audio samples compressed together, so the display looks like a solid shape rather than a wavy line. Zooming in on the timeline reduces the samples per pixel until individual cycles become visible.

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