[View source on GitHub](https://github.com/microlinkhq/optimo)

To convert WebP to PNG, run `npx optimo image.webp --format png`. PNG is a common interchange format for editing tools and UI workflows. Optimo handles format conversion and optimization in a single step.

## Command

Convert a file by targeting the output format:

```
npx optimo image.webp --format png
```

Tip: add `--dry-run` to preview changes.

## Why convert?

- PNG is a common interchange format for editing tools and UI workflows.
- Useful when you need compatibility with older tooling.

## Format notes

### WebP  
Modern image format with great compression and broad browser support.

[Optimize WebP](/content/optimize/webp/index.html) [Compress WebP](/content/compress/webp/index.html) [Resize WebP](/content/resize/webp/index.html) [WebP guide](/content/formats/webp/index.html)

### PNG  
Lossless image format with sharp edges and great support for transparency.

[Optimize PNG](/content/optimize/png/index.html) [Compress PNG](/content/compress/png/index.html) [Resize PNG](/content/resize/png/index.html) [PNG guide](/content/formats/png/index.html)

## Not sure which to use?

If you're choosing a delivery format, here's a quick comparison.

[PNG vs WebP](/content/compare/png-vs-webp/index.html)
