DEV Community

Cover image for I made a simple PNG to WebP converter that can shrink 10 MB images to around 100 KB.
DNZY
DNZY

Posted on

I made a simple PNG to WebP converter that can shrink 10 MB images to around 100 KB.

I made a simple PNG → WebP converter that can shrink something like a 2 MB PNG down to ~70 KB (sometimes even smaller), while keeping the picture looking almost the same.

GitHub repo:
https://github.com/DNZYDeniz/png-to-webp-windows

I built it because I wanted something very simple that doesn’t need a complicated setup: put PNGs in input, run the batch file, and get WebP files in converted.

Two ways to use it

Classic batch / CMD — Double-click convert_png_to_webp.bat. Plain command window, no extra installs if cwebp is already in the project. Same fast, lightweight flow as before.
Optional desktop GUI — Run run_gui.bat for a cleaner, rounded interface (Python + CustomTkinter). Same encoder under the hood; it’s there if you want something more visual. Size and quality are easier to tweak in the GUI (target KB per file, or fixed quality -q), without editing environment variables.
It’s lightweight, fast, and easy — for anyone who wants smaller images without wrestling with heavy tools.

Features

Simple .bat workflow (no GUI required)
Optional modern GUI for quicker size / quality adjustments
Fast conversion
Strong file-size reduction with minimal visible quality loss
Runs locally on your machine
Try it:
https://github.com/DNZYDeniz/png-to-webp-windows

Top comments (0)