Skip to content

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

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.

Comparison of the PNG and WAV file formats
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.

Already downloaded

This file has already been downloaded. For your privacy it was deleted from our server right after the download, so it cannot be downloaded again. To get it once more, convert the file again.