Convert PNG to WAV
Encode image brightness as WAV samples for a defined sonification workflow.
Convert PNG files online
We don’t have a dedicated online converter for PNG to WAV yet, but you can convert PNG files online to these and more formats:
Want to convert PNG to WAV?
Let us know. We pick the conversions to add next by how many people ask for them.
How to convert png to wav file
- Graphics
- No ratings yet.
A sonification experiment or an audio-analysis program that accepts only WAV may require image pixels to be encoded as audio samples. This is a custom mapping, not a standard conversion that produces an audio equivalent of the picture.
What PNG is
PNG (Portable Network Graphics) is a lossless raster format that stores pixel color and can store transparency. Web graphics, screenshots, diagrams, and exported artwork commonly use it; browsers and image editors such as GIMP, Photoshop, and Krita can open or create PNG files.
What WAV is
WAV is a container commonly used for PCM audio. Uncompressed PCM WAV files preserve sample values without lossy audio compression and are supported by audio editors such as Audacity and many digital audio workstations. WAV can also contain other audio encodings, so the extension alone does not guarantee uncompressed PCM.
Convert the image with Python
There is no standard rule for mapping pixels to sound. This local desktop workflow maps each pixel's grayscale brightness to one mono 16-bit PCM sample, in row-major order. Install Python, then install the required packages:
python -m pip install pillow numpy scipy
Save the following as png_to_wav.py in the same folder as input.png:
from PIL import Image
import numpy as np
from scipy.io.wavfile import write
image = Image.open("input.png").convert("RGBA")
white = Image.new("RGBA", image.size, (255, 255, 255, 255))
gray = Image.alpha_composite(white, image).convert("L")
pixels = np.asarray(gray, dtype=np.int32)
samples = ((pixels - 128) * 256).astype(np.int16).ravel()
write("output.wav", 44100, samples)
Run python png_to_wav.py from that folder. The script composites transparency onto white, converts the result to grayscale, flattens the pixels into one sample sequence, and writes mono PCM at 44.1 kHz. Open output.wav in Audacity to play or inspect it. A 1920 × 1080 image produces about 47 seconds of audio; larger images produce proportionally longer files.
Quality and compatibility limits
The pixel-to-sample mapping is arbitrary: playback usually sounds like noise, not music. This method discards color and original transparency, and the WAV does not retain the image dimensions or the mapping rule. Reconstruction of grayscale values requires the same mapping and the original dimensions. Keep the PNG if the goal is to store, edit, or share the picture. No general-purpose online converter can infer a uniquely correct mapping; an online service is suitable only if it documents its encoding and the image is safe to upload.
PNG vs WAV: format comparison
How the PNG and WAV formats compare on the properties that matter most for this conversion.
| Property | .PNG Portable Network Graphics | .WAV Waveform Audio File Format |
|---|---|---|
| Open standard | Yes | Partly open |
| Compression | Lossless | Both |
| Typical file size | Small | Large |
| Opens in a web browser | Yes, natively | Yes, natively |
| Further editing | Limited | Easy |
| Metadata support | Extensive | Basic |
| Plain-text readable | No | No |
| Best used for | Web publishing | Music |
| Introduced | 1996 | 1991 |
| Developer | PNG Development Group | Microsoft and IBM |
| MIME type | image/png | audio/wav |
Information about file extensions and file types is provided by File-Extensions.org
The database currently does not contain any direct png file converter links.
Additional formats for
png file conversion
- png to ani
- png to tns
- png to pat
- png to ico
- png to cur
- png to ai
- png to jxl
- png to btw
- png to svg
- png to cdr
- png to aco
- png to ase
- png to avif
- png to bin
- png to bmp
- png to cdt
- png to cgm
- png to cin
- png to cmx
- png to cpt
- png to cr2
- png to crw
- png to dat
- png to dcm
- png to dcr
- png to dds
- png to dib
- png to djvu
- png to dng
- png to dpx
- png to drw
- png to ecw
- png to emf
- png to emz
- png to epf
- png to eps
- png to excel
- png to exe
- png to exr
- png to fff
- png to fig
- png to fit
- png to fits
- png to gif
- png to grd
- png to hdr
- png to heic
- png to hpgl
- png to icns
- png to icon
- png to icontainer
- png to iff
- png to indd
- png to jfif
- png to jif
- png to jng
- png to jp2
- png to jpe
- png to jpeg
- png to jpf
- png to jpg
- png to jps
- png to jpx
- png to jxr
- png to lmk
- png to mbm
- png to mp3
- png to mp4
- png to mrw
- png to msk
- png to nef
- png to odg
- png to orf
- png to pbm
- png to pcf
- png to pdf
- png to pdn
- png to pef
- png to pfr
- png to pgm
- png to pic
- png to plt
- png to pmb
- png to ppm
- png to ps
- png to psb
- png to psd
- png to pspimage
- png to raw
- png to rgb
- png to rw2
- png to srf
- png to svgz
- png to swf
- png to tga
- png to tif
- png to tiff
- png to vsd
- png to wbmp
- png to webp
- png to wmf
- png to wpg
- png to xbm
- png to xpm