Waveform picture from audio, PNG or SVG
- Free
- No sign-up
- No upload
- Works offline
Tool facts
- Opens
MP3WAVM4AAACFLACOGGOPUSWEBMMP4MOVMKV- Saves as
PNGSVG- Price
- Free, no sign-up, no watermark
- Are files uploaded?
- No. Everything is processed in this browser, on your device.
- Batch processing
- One file at a time
- Offline use
- Works without a connection once this page has loaded
- Built with
- WebCodecs, Web Audio, Canvas, and Mediabunny
- Browser
- A recent Chrome, Edge, Firefox or Safari, on computer or phone.
- Limits
- Custom image sizes go from 200 to 4096 px on each side.
Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.
About Audio Waveform Image
Audio Waveform Image draws the waveform of an audio file, or of the soundtrack of a video, as a picture you can post or print, and saves it as a PNG at the exact pixel size you chose or as an SVG with one rectangle per bar. Every decoded sample is read: the audio is cut into as many equal stretches as there are bars, and each bar shows the highest and lowest sample in its stretch, so a short drum hit is never skipped the way it can be when only every Nth sample is looked at.
Pick bars, mirror or line. Mirror draws each stretch's highest sample above the centre line and its lowest below it, so the real asymmetry of the signal stays visible, and line draws the upper and lower envelope as one outline. Sizes are 1080 × 1080, 1920 × 1080 and 1080 × 1920 for posts, video covers and stories, or any size from 200 to 4096 px. Set bar width, gap and rounding, a waveform colour, a solid, gradient or transparent background, a title and subtitle, and a time range if you only want the chorus.
Audio Waveform Image runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.
How to use Audio Waveform Image
- Drop an audio or video file on the page, or click to choose one. A built-in sample is shown until you do.
- Under Size, pick 1:1, 16:9, Story or Custom, and set Start and End if you only want part of the file.
- Under Style, choose Bars, Mirror or Line and set the bar width, gap and corner radius.
- Choose the waveform colour and the background, and type a title and subtitle if you want text.
- Click Download PNG for a ready image, or Download SVG to recolour or edit the bars in a design program.
Frequently asked questions
How exactly are the bar heights calculated?
The tool decodes the whole file and keeps, for each short block of samples, the lowest and highest value across all channels. For files up to 2,097,152 frames (about 47 seconds at 44.1 kHz) a block is a single sample; longer files use blocks of a few samples, such as 4 for a 3-minute song or 83 for an hour at 48 kHz. The blocks inside your time range are split into as many equal groups as there are bars, and each bar uses the minimum and maximum of its group. Bars style uses the larger of the two absolute values; mirror uses the maximum above the centre and the minimum below it. With Normalize height on, everything is scaled so the loudest bar fills the drawing area.
How many bars do I get?
As many as fit between the side margins: the margin is 5% of the width or one fifteenth of the shorter side, whichever is larger, and the count is the floor of (width − 2 × margin + gap) ÷ (bar width + gap). At 1920 × 1080 with 6 px bars and a 3 px gap that is 192 bars; at 1080 × 1080 it is 104. The bars are then centred, and the panel under the preview shows the count, the space they take and how many samples each bar stands for. Bar width can be 1 to 80 px, gap 0 to 60 px and corner radius 0 to 40 px.
Can I use a video file, and how long can the file be?
Yes. MP4, MOV, MKV and WebM videos work, and the first audio track is used; a video with no sound gets a clear message. Where the browser has the WebCodecs audio decoder (Chrome, Edge, recent Firefox and Safari) the file is decoded piece by piece and only the min/max blocks are kept, at most 16 MB, so an hour-long recording works. Otherwise the browser's older Web Audio decoder is used, which holds the whole decoded file in memory, roughly 20 MB per minute of stereo, so very long files may fail there. The line under the preview says which decoder ran.
What is the difference between the PNG and the SVG?
Both are drawn from the same list of shapes, so every bar has the same position and height in both files. The PNG is the exact pixel size you chose. The SVG has one rect element per bar (or one polygon for the line style) with whole-pixel coordinates and a shared fill colour, so a design program can recolour or move them. SVG text uses the font installed on the viewing computer, so a title can look slightly different there; convert it to outlines in your editor if it must match the PNG.
Is my audio uploaded anywhere?
No. Decoding, the peak calculation and drawing the PNG and SVG all happen in this browser tab, and the files are saved straight from it. Closing the tab discards everything.