Convert an audio wave to a static SVG by decoding one supported audio file in your browser, setting exact dimensions and colors, generating a minimum/maximum peak envelope, and downloading the scalable vector graphic. Here, “audio wave” means a waveform image made from an existing recording. This conversion does not transcode the source or create a new WAV, MP3, or other audio file.

convert audio wave
Convert Audio Wave to SVG: Limits and Verification

What the audio-to-SVG conversion creates

Use the Audio Waveform Generator for this workflow. It creates a static SVG overview from audio decoded in the current browser tab. The downloaded file is text-based, uses fixed pixel dimensions and a matching viewBox, and can be opened in an SVG-aware editor. It is a waveform-graphic workflow rather than a playable-audio export.

At the SVG level, the result contains one background rectangle and a group of vertical peak lines. Its background and waveform colors come from validated six-digit hexadecimal controls, not from the filename or embedded source metadata. Because the source recording is never rewritten, converting a file to a waveform does not alter the original audio.

Decoding, peak extraction, SVG generation, previewing, and downloading all happen locally in the current tab. Neither the selected audio file nor the generated graphic is uploaded to Lizely.

Confirm the source meets every browser-decoding limit

The tool can read MP3, WAV, M4A, AAC, Ogg, WebM, and FLAC files when the current browser and operating system support the file's real codec. A familiar extension or MIME label cannot guarantee successful decoding. The browser's Web Audio layer works with a decoded frame buffer, as described in the Web Audio API AudioBuffer documentation. Unsupported, corrupt, empty, or disguised files return an error instead of producing a misleading waveform.

Input or controlAccepted valuePractical effect
Audio filesOne file per conversionThe selected recording supplies the frames used for the peak overview.
Compressed file size50 MiB maximumSets the byte-size ceiling for the selected file.
Decoded durationNo more than five minutesLonger decoded audio is rejected rather than silently shortened.
Decoded channels1 through 8Supports mono through eight-channel input.
Decoded sample rate8,000 through 192,000 HzRestricts input to the tool's supported decoded-rate range.
Decoded channel samples30 million maximumBounds expanded channel data and processing work.
SVG width320 through 1,600 pixelsSets the fixed output width and the first cap on peak columns.
SVG height120 through 600 pixelsSets the fixed canvas height and vertical drawing area.
Background and waveform colorsSix-digit hexadecimal valuesProduces validated colors in the generated SVG.

Every limit must be satisfied at once. An over-limit file is rejected as a whole; the tool does not create a waveform from only the beginning. A small compressed file can still expand into a much larger decoded array, so the 50 MiB compressed-size limit by itself does not establish eligibility.

Generate the waveform from the selected recording

  1. Choose one eligible audio file. Confirm that the browser and operating system can decode its codec and that the file satisfies the compressed-size, duration, channel, sample-rate, and channel-sample limits.
  2. Set the SVG dimensions. Enter a width from 320 through 1,600 pixels and a height from 120 through 600 pixels. These values determine the fixed pixel dimensions and matching viewBox of the output.
  3. Choose the two colors. Enter a six-digit hexadecimal background color and a six-digit hexadecimal waveform color. The selected values, rather than source metadata, determine the SVG appearance.
  4. Generate the local peak envelope. The tool divides the decoded frames into contiguous ranges, calculates their minimum and maximum values across the decoded channels, and creates the corresponding vertical SVG lines.
  5. Check the reported frame and column counts. The peak-column count should equal the smaller of the requested image width, 1,000, and the decoded frame count. A short recording therefore does not gain invented measurements, while a long recording stays within the tool's column cap.
  6. Inspect and download the exact SVG. Review the preview and expand the SVG-text inspector to examine the actual markup. Download the file after confirming its dimensions, colors, background, and line set; the download uses the same string shown in the inspector.

Read the peak envelope as an amplitude overview

The visualization uses a deliberately simple peak-envelope method. The decoded sample frames are divided into equal index ranges, with the first bucket beginning at frame zero and the last reaching the final decoded frame. For each bucket, the tool finds the minimum and maximum finite sample across every decoded channel. Defensive out-of-range values are clamped to -1 through 1, and one vertical SVG line runs from the bucket maximum to its minimum. This approach preserves short positive and negative peaks more faithfully than selecting one arbitrary sample from each range.

For a requested width of W pixels and a decoded frame count of F, the column count is min(W, 1,000, F). The bucket boundaries use integer frame indices, and accepted frames are not omitted between adjacent ranges. The result is therefore a bounded visual summary rather than a full-resolution drawing of every sample.

The SVG geometry is deterministic. Its vertical center is half the requested height. A full-scale positive or negative sample reaches 45 percent of the requested height above or below that center, leaving a five-percent margin at the top and bottom. Columns are positioned at evenly spaced horizontal bucket centers across the requested width.

For stereo and multichannel files, every bucket combines the extrema from all decoded channels. A minimum can come from one channel and a maximum from another. The result does not provide separate left and right lanes, preserve channel identity visually, or average the channels into a new signal. If separate channel waveforms are required, use an audio editor that exposes each channel as its own track.

Verify the downloaded SVG before using it

Use the expanded inspector and downloaded file as a matched pair. Confirm that the SVG width and height equal the selected values, that the viewBox matches those dimensions, and that the background and waveform colors are the requested hexadecimal values. Because the tool creates one line for each peak bucket, the number of peak lines should also agree with the reported column count.

The SVG remains sharp when placed at another display size because it is vector-based. It can also be opened and edited in an SVG-aware editor. Very large print or editing workflows may still require different stroke widths or more detailed source data; simply enlarging the same preview does not create extra measured columns.

When you replace the file, change an option, generate again, or leave the page, the obsolete object URL is revoked so an older image cannot appear to represent the new input. Generate and inspect a fresh result after making changes. If a file fails, correct the source or use a browser with the required codec rather than forcing the waveform from a partial decode.

Keep the waveform graphic separate from audio analysis

The result is not a spectrogram. Time runs from left to right, but each vertical line represents a sample-amplitude range rather than frequency. The tool does not calculate frequency content, beats, notes, calibrated loudness, speech, transients, or musical structure.

Nor is a peak waveform a calibrated loudness meter. Two recordings can have similar peak outlines while sounding quite different because perceived loudness also depends on duration, frequency balance, dynamics, and playback conditions. Do not use the graphic to diagnose hearing, equipment condition, clipping history, phase, or mastering compliance.

Use this conversion when the required result is a deterministic, scalable visual overview of an existing recording. If the task instead requires changing the audio format, creating a WAV copy, or editing individual channels, use a dedicated audio converter or multitrack editor; the SVG workflow does not replace those operations.

For a deeper look, see Create an Audio Waveform SVG: Lines, Colors, and Layers.