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

To convert HEIC to JPEG, run `npx optimo photo.heic --format jpeg`. JPEG is universally supported across browsers and tooling. Optimo handles format conversion and optimization in a single step.

## Command

Convert a file by targeting the output format:

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

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

## Why convert?

- JPEG is universally supported across browsers and tooling.
- Great for sharing camera photos on the web without surprises.

## Format notes

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

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

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