# Convert PNG to HEIC

To convert PNG to HEIC, run `npx optimo image.png --format heic`. HEIC can be efficient for certain photo-like assets. Optimo handles format conversion and optimization in a single step.

## Command

Convert a file by targeting the output format:

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

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

## Why convert?

- HEIC can be efficient for certain photo-like assets.
- Useful in Apple-focused workflows rather than web delivery.

## Format notes

### 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)

### HEIC

A common camera output format (especially Apple devices) with efficient compression.

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