# Convert AVIF to HEIC

To convert AVIF to HEIC, run `npx optimo image.avif --format heic`. HEIC can be useful for Apple-focused workflows. Optimo handles format conversion and optimization in a single step.

## Command

Convert a file by targeting the output format:

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

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

## Why convert?

- HEIC can be useful for Apple-focused workflows.
- Helpful when moving assets between modern codecs in a workflow.

## Format notes

### AVIF

High-compression modern image format that can beat WebP on size at similar quality.

- [Optimize AVIF](/content/optimize/avif/index.html)
- [Compress AVIF](/content/compress/avif/index.html)
- [Resize AVIF](/content/resize/avif/index.html)
- [AVIF guide](/content/formats/avif/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)
