Skip to content
Aback Audio

How to make an audio waveform image with a waveform generator

Use a waveform generator to turn a song or voice message into a PNG or SVG image. Styles, colors, print sizes and DPI, and how to pick the right part to draw.

By Devvrat Hans12 min read

To make an audio waveform image, load the recording into a waveform generator, which measures how loud the audio is at each moment and draws that shape as bars, a line or a filled silhouette. You then pick a size and colors and export a PNG for posts and thumbnails, or an SVG for print and websites. This guide covers what people use waveform images for, how a waveform is actually drawn from the samples, which style and resolution to choose (with a DPI table for prints), when PNG or SVG is the better file, and how to cut the audio to the part that matters before you start. Our Waveform Image Generator does all of it in your browser, and the audio is not uploaded.

5

styles

Rounded bars, Bars, Classic, Line, Dots

8000 px

max per side

Custom size, for large prints

PNG + SVG

exports

Raster and editable vector

What people use waveform images for

A waveform is a recognizable fingerprint of a specific recording. The same song always produces the same shape, which is why waveform images work as both decoration and personal keepsakes.

  • Podcast cover art and episode images. A waveform of the actual episode tells listeners it is audio at a glance, and a square image fits Apple Podcasts, Spotify and RSS players.
  • Social posts. Square posts, vertical stories and wide headers that announce a release, a mix or an interview.
  • Music merch, posters and canvas prints. The waveform of a wedding song, a first dance or a band's single printed on a poster, a mug or a T-shirt.
  • Tattoos. A voice message from a parent, a child's laugh or a lyric line turned into a clean outline that a tattoo artist can trace.
  • Video thumbnails and audiograms. A static waveform behind the title of a podcast clip on YouTube or LinkedIn.
  • Websites and players. A waveform strip above a play button gives a custom player a visual timeline.

How a waveform generator draws the shape

Digital audio is a long list of numbers between -1 and +1, one per sample. A three-minute stereo song at 44.1 kHz has about 7.9 million samples per channel, far more than any image can show. A 1600 pixel wide image has room for at most 1600 columns, so each column has to summarize thousands of samples.

There are two common ways to summarize a column. Peak waveforms take the highest and lowest sample in that slice, which gives the familiar spiky outline you see in audio editors. RMS waveforms take the average energy instead, which looks softer and closer to perceived loudness but hides short transients like drum hits. Many audio editors draw both, with RMS as a lighter inner shape.

Our generator uses peaks. The audio is decoded in a background worker and reduced to minimum and maximum values per slice, roughly one slice per pixel of image width, combining all channels. Those peaks are then grouped into as many columns as the chosen style needs. With the default settings (Banner size, 6 px bars, 3 px gaps and 40 px padding) that works out to about 169 bars across the image.

Two consequences are worth knowing. First, heavily compressed, loud masters look like a solid block, because almost every column reaches near the maximum; quiet, dynamic recordings show more detail. Second, the Fill the height option, on by default, scales the loudest peak to the full height of the image. That makes a quiet voice memo readable, but it means two files drawn this way cannot be compared by height. Turn it off to keep the real level relative to digital full scale.

How to make a waveform image, step by step

  1. 1

    Prepare the audio

    Decide which part you want. For a song, that is often the chorus or a 10 to 30 second phrase; for a voice message, the whole message. Trim a copy first if needed (see the next section).

  2. 2

    Open the Waveform Image Generator

    Drop the audio file onto the Waveform Image Generator or press Choose file. Video files work too; the soundtrack is used. A live preview appears once the peaks are computed.

  3. 3

    Choose a style

    Pick Rounded bars (the default), Bars, Classic, Line or Dots. Adjust Bar width or Dot size (1 to 40 px), Gap (0 to 30 px) or Line width (1 to 20 px), and Padding (0 to 400 px).

  4. 4

    Choose a size

    Banner 1600 x 400, 16:9 1920 x 1080, Square 1080 x 1080, Story 1080 x 1920, or Custom from 100 to 8000 px wide and 50 to 8000 px high.

  5. 5

    Set the colors

    Choose one of six palettes, or set exact Wave and Background colors with the pickers. Turn on Transparent background to export only the shape.

  6. 6

    Export

    Press Download PNG for a raster image at the exact pixel size, or Download SVG for vector shapes you can scale and edit. Files are named after your audio, for example song-waveform.png.

Open the Waveform Image GeneratorTurn a song, podcast or voice message into a styled waveform PNG or SVG, drawn locally in your browser.

Trim the audio to the part that matters first

A full four-minute song squeezed into 169 bars looks like a generic block: intro, verses and choruses blur together. The same bars spent on a 15-second chorus or a single spoken sentence show real rhythm and character. Because the generator always draws the whole file and has no start and end selector, the trimming happens beforehand.

  • Cut the section. Open the file in the Audio Cutter, drag the start and end markers or type exact times, preview the selection, and export it. The format does not matter for the image; WAV avoids an extra lossy encode if you also want to keep the clip.
  • Remove dead air. Leading and trailing silence shows up as flat lines at the edges. Trim it, or use Remove Silence for long pauses inside a voice recording.
  • Pick a recognizable moment. For a wedding song, the line the couple chose; for a voice message, the words themselves, not the breath before them.
  • Recording something new? Use the Voice Recorder and save the clip, then drop it into the generator. Our guide on recording audio in your browser covers microphone settings.

If the audio is inside a video, you can drop the video into the generator directly, or extract the soundtrack first as described in how to extract audio from video and trim it. More trimming techniques are in how to cut and trim audio.

Choosing a waveform style and colors

All five styles are drawn from the same peak data, so the choice is purely visual. Change one control at a time and watch the preview.

Waveform styles in the Waveform Image Generator
StyleWhat it looks likeGood forControls
Rounded barsVertical bars with round ends, centered on a midlinePodcast art, social posts, app-style playersBar width, Gap, Padding
BarsSquare-ended vertical barsTechnical or minimal designs, printBar width, Gap, Padding
ClassicA filled, mirrored silhouette above and below the midlinePosters, release art, the look of an audio editorPadding
LineA single stroke that zigzags with the loudnessTattoos, line art, heartbeat-style designsLine width, Padding
DotsStacks of dots in each columnPlayful posts, halftone looks, merchDot size, Gap, Padding

Wide bars with small gaps read well at small sizes, such as a profile picture or a phone thumbnail. Thin bars with wider gaps feel lighter and more detailed on a large print. Speech often looks best as rounded bars because its rhythm of words and pauses is clearly visible; a single sustained note or a drone tends to look better as a Line or Classic shape.

For color, start with contrast. The six palettes include blue on black (the default), white on near-black and black on white, plus three colored pairs. The Wave and Background pickers take any color, so you can match a brand or a wedding palette exactly. A dark wave on a dark background can look elegant on a calibrated monitor and vanish on a phone in sunlight, so check the preview at small size too. Use Transparent background when the waveform will sit over a photo or a colored T-shirt.

Image size and resolution: a DPI table for prints

Screens need pixels; printers need pixels per inch. For screens, use the presets: Square 1080 x 1080 for feed posts, Story 1080 x 1920 for vertical formats, 16:9 1920 x 1080 for video thumbnails and slides, and Banner 1600 x 400 for website headers. For print, the rule is pixels = inches x DPI. Most photo printers ask for 300 DPI for small prints held in the hand; large posters and canvases viewed from a distance are usually fine at 150 DPI.

Custom sizes for common prints (waveforms suit wide formats)
Print sizeDPICustom width x heightNotes
6 x 2 in (mug, bookmark)3001800 x 600Small, held close
10 x 3 in (T-shirt chest print)3003000 x 900Use a transparent background
12 x 4 in (framed strip)3003600 x 1200Classic wedding song print
A4 landscape, 11.7 x 8.3 in3003508 x 2480Add text in a design app
24 x 8 in (canvas)3007200 x 2400Close to the 8000 px limit
36 x 12 in (poster)1505400 x 1800Viewed from a distance
Larger than about 26 in wide at 300 DPIAnyUse SVGVector output scales without limit

PNG vs SVG: which file to download

The generator builds every image from one list of shapes (rectangles for bars, circles for dots, paths for Classic and Line), then paints it to a canvas for the preview and the PNG, or writes it out as SVG markup. Both exports match the preview, including transparency.

AspectPNGSVG
TypeRaster: a fixed grid of pixelsVector: shapes described mathematically
ScalingBlurs if enlarged beyond its sizeSharp at any size
Accepted byEvery social network, messaging app and slide toolDesign apps, print shops, websites, cutting machines
EditingEdit as an imageChange colors and shapes in Figma, Illustrator, Inkscape or Canva
TransparencyYes, with Transparent backgroundYes, with Transparent background
Choose it forPosts, stories, thumbnails, slidesPrints, merch, tattoo stencils, web players

On a website you own, an SVG waveform stays crisp on high-density screens and its colors can be changed with CSS. For a tattoo, give the artist the SVG of the Line or Bars style; they can scale it to the placement and trace it cleanly. Be aware that the Dots style with small dots can produce a large SVG, because every dot is a separate circle.

Waveform vs spectrogram vs spectrum

Searches for an "audio visualizer" often mean one of three different pictures. They answer different questions.

VisualShowsLooks likeTool
WaveformLoudness over timeBars or a silhouette along a timelineWaveform Image Generator (PNG, SVG)
SpectrogramFrequencies over time, color = energyA heat map with low notes at the bottomSpectrogram Viewer (PNG)
SpectrumFrequencies at one momentA moving graph of bars or a curveSpectrum Analyzer (live, file or microphone)

A spectrogram makes striking cover art for electronic music, bird song or speech, and it is also a diagnostic tool: it shows whether a supposedly lossless file has the hard high-frequency cutoff of an MP3. The Spectrum Analyzer is for watching frequencies live, from a file or your microphone, rather than for exporting art. If you need the technical properties behind the picture, such as sample rate, channels and duration, open the file in the Audio Inspector.

All of these produce still images or live views. An animated "audiogram" video, where the waveform moves as the audio plays, needs a video editor; a common approach is to place a static waveform PNG in the video and animate a playhead over it.

If by "digital waveform generator" you mean a signal generator that produces sine, square or sawtooth waves rather than a picture, use the Tone Generator and our guide to generating test tones and frequency sweeps.

Tips and troubleshooting

  • The waveform is a solid rectangle. The track is heavily limited, or the excerpt is too long. Use a shorter section, thinner bars with bigger gaps, or the Line style.
  • The waveform is almost flat. Fill the height is off and the recording is quiet. Turn it on, or raise the level of the clip first with the Audio Normalizer.
  • Bars look uneven at the edges. Increase Padding so the shape has room, or adjust Gap until the bars fill the width evenly.
  • The colors look different in print. Screens use RGB light and printers use ink. Ask the print shop for a proof, and avoid very dark waves on very dark backgrounds.
  • A voice message will not open. Export it from the messaging app as a file first. If it still fails, your browser cannot decode that format; try a current version of Chrome, Edge, Firefox or Safari.

Because the image is drawn locally in your browser, private recordings such as a parent's voicemail or an unreleased track are not uploaded to make the picture.

Tools used in this article

Frequently asked questions

How do I make a waveform image from a song?

Trim the part of the song you want, load it into the Waveform Image Generator, choose a style, size and colors, and download a PNG or SVG. A short, recognizable section gives a more distinctive shape than the full track.

Can I make a sound wave image of a voice message?

Yes. Save the voice message from the messaging app as an audio file, then drop it into the generator. Rounded bars or Line suit speech well. For a tattoo, export an SVG so the artist can scale it.

What resolution should a waveform image be for printing?

Multiply the print size in inches by 300 for small prints and by 150 for large posters. A 12 by 4 inch print needs 3600 by 1200 pixels. The Custom size goes up to 8000 pixels per side; beyond that, use the SVG export.

Can I get a waveform PNG with a transparent background?

Yes. Turn on Transparent background before you export. It applies to both the PNG and the SVG, leaving only the wave shape.

Is a waveform visualizer the same as a spectrogram?

No. A waveform shows loudness over time. A spectrogram shows which frequencies are present over time, as a color map. Both can make good artwork; the Spectrogram Viewer exports PNG images.

Can I choose only part of the audio in the waveform generator?

Not inside the generator, which always draws the whole file. Cut the section first with the Audio Cutter or the Audio Trimmer, then load the shorter clip.

Is my audio uploaded to create the image?

No. The audio is decoded and the image is drawn in your browser. The file is not uploaded, and the data is released when you start over or close the tab.

Related articles