To convert JPEG to HEIC, run `npx optimo photo.jpg --format heic`. HEIC can be efficient for phone photos and some tools. Optimo handles format conversion and optimization in a single step.

## Command

Convert a file by targeting the output format:

```
npx optimo photo.jpg --format heic
```

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

## Why convert?

- HEIC can be efficient for phone photos and some tools.
- Useful when targeting Apple ecosystems rather than pure web delivery.

## Format notes

### JPEG

The classic photo format: widely supported, good quality-to-size for photographs.

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

## Not sure which to use?

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

[HEIC vs JPEG](/content/compare/heic-vs-jpeg/index.html)
