The key details when you generate an audio waveform are the decoded frame count, the SVG width and height, the background and waveform colors, and the peak-column count, which is the smaller of the requested width, 1,000, and the decoded frame count. That count matters because each column summarizes a contiguous range of decoded frames rather than adding measurements that a short recording does not contain. The Audio Waveform Generator uses those ranges to draw one vertical line from the minimum sample value to the maximum across all decoded channels, producing a time-domain peak overview. Set the canvas from 320 through 1,600 pixels wide and 120 through 600 pixels high, and define both colors with browser-validated six-digit hexadecimal values. Before choosing a source, confirm that the current browser can decode it and that it meets every decoded-audio limit, because an over-limit file is rejected as a whole rather than processed only from its beginning.
| Detail | Defined value or behavior | Why it matters |
|---|---|---|
| Audio input | One browser-decodable MP3, WAV, M4A, AAC, Ogg, WebM, or FLAC file | The current browser and operating system must support the file's real codec. |
| Compressed size | At most 50 MiB | The selected source must fit within the compressed-file limit before decoding. |
| Decoded duration | No more than five minutes | Longer decoded recordings are rejected as a whole. |
| Decoded channels | One through eight channels | All accepted channels contribute to one combined peak overview. |
| Decoded sample rate | 8,000 through 192,000 Hz | The decoded rate must remain inside the supported range. |
| Decoded channel samples | At most 30 million | This bounds the expanded in-memory audio data and processing budget. |
| SVG width | 320 through 1,600 pixels | Width fixes the output canvas and participates in the peak-column cap. |
| SVG height | 120 through 600 pixels | Height fixes the canvas, center line, and vertical amplitude range. |
| Colors | Six-digit hexadecimal background and waveform colors | Validated colors produce exact, controlled SVG markup. |
| Peak columns | The smaller of the requested width, 1,000, and the decoded frame count | The result stays bounded without inventing measurements from a short clip. |
| Over-limit input | The entire file is rejected | The tool does not silently create a waveform from only the beginning. |

The source details that control completion
Use a file the browser can really decode, not one that merely has a familiar extension. The tool names MP3, WAV, M4A, AAC, Ogg, WebM, and FLAC as inputs, but the current browser and operating system must support the actual codec. An extension or MIME label cannot guarantee decoding, so unsupported, corrupt, empty, or disguised files return an error. Decoding uses the browser's Web Audio layer, whose AudioBuffer holds decoded audio frames in memory.
All decoding, peak extraction, SVG generation, previewing, and downloading happen locally in the current tab. Neither the selected audio file nor the generated graphic is uploaded to Lizely. The distinction between compressed size and decoded limits also matters: a relatively small compressed recording can expand into a much larger set of floating-point channel samples, which is why the 30-million channel-sample ceiling is enforced separately from the 50 MiB file-size limit.
Check duration, channel count, sample rate, and channel-sample budget as well as the file's byte size. When any decoded limit fails, the tool rejects the whole input rather than shortening the clip or returning a partial waveform. That behavior keeps the reported frame count and the downloaded graphic tied to the complete accepted source.
The output details that shape the SVG
The SVG width and height become fixed pixel dimensions with a matching viewBox. The vertical center is half the requested height. A full-scale positive or negative sample extends to 45 percent of the height above or below that center, leaving a five-percent margin at the top and bottom. Peak columns are evenly centered across the requested width. These are fixed geometric rules rather than visual estimates, so the coordinates are deterministic.
To build the envelope, the tool divides decoded frames into contiguous, equal index ranges. For each range, it finds the minimum and maximum finite sample across every decoded channel, defensively clamps out-of-range values to -1 through 1, and draws one vertical SVG line from the bucket maximum to its minimum. Integer frame indices determine the bucket boundaries: the first begins at frame zero, the last reaches the final decoded frame, and accepted frames are not omitted between adjacent ranges. Using both the minimum and maximum preserves short positive and negative peaks more honestly than selecting one arbitrary sample from each range.
Stereo and multichannel files appear as one combined peak overview. A bucket can take its minimum from one channel and its maximum from another. The result does not preserve separate left and right lanes, identify channels visually, or average the channels into a new audio signal. The original audio is never rewritten. When separate channel waveforms are required, use an audio editor that exposes each channel as its own track.
Background and waveform colors come from the browser's six-digit hexadecimal controls. The SVG markup is generated from validated numbers and those colors instead of being copied from filenames or embedded source metadata. The result contains one background rectangle and a group of peak lines. It is a text-based SVG rather than a PNG, JPEG, video, or audio file.
Generate and inspect the waveform in this order
Use the generator in this sequence so the preview, reported counts, and download describe the same final source and settings.
- Choose one browser-decodable audio file. Confirm that the browser and operating system support its real codec and that the file satisfies the 50 MiB compressed-size limit and every decoded-audio limit.
- Set the final SVG dimensions. Enter a width from 320 through 1,600 pixels and a height from 120 through 600 pixels based on where the waveform will be placed.
- Choose the background and waveform colors. Enter both colors through the six-digit hexadecimal controls, checking that they remain legible against each other.
- Generate the local peak envelope. The browser decodes the selected file, divides its frames into peak buckets, and creates the static SVG overview locally without uploading the audio.
- Check the reported counts and inspect the result. Review the decoded frame count and peak-column count, then examine the preview or open the exact SVG text in the inspector. The column count should equal the smaller of the requested width, 1,000, and the decoded frame count.
- Download the exact SVG. Save the text-based file produced from the inspected string so the download matches the preview exactly and remains editable in an SVG-aware editor.
Replacing the file, changing an option, generating again, or leaving the page revokes the obsolete object URL, preventing an older image from appearing to represent the new inputs. Treat an earlier preview as stale after a change and inspect the current result before downloading it.
Check the finished SVG against its intended use
The expandable SVG inspector provides the exact generated text, and the download uses that identical string. Check the stated width, height, and viewBox; confirm the background and waveform colors; and verify that the number of peak lines corresponds to the reported column count. Open the file in an SVG-aware editor when you need to inspect its editable vector structure or prepare it for a layout.
SVG remains sharp when placed at another display size because the vector geometry can scale without becoming a raster image. Extremely large print or editing workflows may still require different stroke widths or more detailed source data. The generated peak overview is therefore best treated as a scalable visual asset, not as a full-fidelity representation of every sample in the recording.
Know what the picture can and cannot tell you
Time runs from left to right, while each vertical line represents the sample-amplitude range within a bucket. The output is not a spectrogram: it does not calculate or display frequency content, beats, notes, calibrated loudness, speech, transients, or musical structure. For a direct comparison of these output types, see Audio Waveform Generator vs Spectrogram and Analyzers.
A peak waveform is also not a calibrated loudness meter. Two recordings can show similar peaks while sounding very different because perceived loudness also depends on duration, frequency balance, dynamics, and playback conditions. Do not use the picture to diagnose hearing, equipment issues, clipping history, phase, or mastering compliance. Use it for the purpose it represents: a clear, deterministic, combined-channel overview of how the decoded audio's sample peaks vary over time.
For a deeper look, see Generate an Audio Waveform as SVG.