To optimize AVI videos, run `npx optimo video.avi`. Optimo applies format-specific FFmpeg-powered compression that typically reduces AVI file size by 15–40% without visible quality loss. The original file is kept if the output is not smaller.

## Command

Start here. Run optimo on a video file:

```
npx optimo video.avi
```

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

## When to use AVI

- legacy source videos

### Trade-offs

- Often large
- Not ideal for modern delivery

## Related formats

- [MP4](/content/optimize/mp4/index.html) - The most compatible web video container; a safe default for delivery.
- [WebM](/content/optimize/webm/index.html) - Web-first video format that often compresses well and is common for modern browsers.
- [MOV](/content/optimize/mov/index.html) - Common container from cameras and editing tools; typically converted for the web.
- [MKV](/content/optimize/mkv/index.html) - Flexible container used in many workflows; commonly remuxed/converted for delivery.
- [OGV](/content/optimize/ogv/index.html) - Ogg video container; occasionally used for open formats, but uncommon today.

## Related conversions

- [Convert AVI to MP4](/content/convert/avi-to-mp4/index.html)
- [Convert AVI to WebM](/content/convert/avi-to-webm/index.html)
- [Convert MP4 to AVI](/content/convert/mp4-to-avi/index.html)
- [Convert MOV to AVI](/content/convert/mov-to-avi/index.html)
- [Convert MKV to AVI](/content/convert/mkv-to-avi/index.html)
- [Convert AVI to MOV](/content/convert/avi-to-mov/index.html)
- [Convert AVI to MKV](/content/convert/avi-to-mkv/index.html)

## More for AVI

- [Compress AVI](/content/compress/avi/index.html)
- [Resize AVI](/content/resize/avi/index.html)
- [What is AVI?](/content/formats/avi/index.html)

## Compare formats

If you're picking a delivery format, comparisons can help.

- [Browse comparisons](/content/compare/index.html)

## Frequently asked questions

### How do I optimize AVI files?
Run "npx optimo video.avi" in your terminal. Optimo applies format-specific FFmpeg-powered compression that reduces AVI file size while preserving quality. The original file is kept if the optimized output is not smaller.

### Is AVI optimization lossless?
By default, optimo uses lossless optimization for AVI. For additional compression, add the --lossy flag to allow minor quality trade-offs for significantly smaller files.

### What tools does optimo use for AVI?
Optimo uses FFmpeg under the hood with format-specific settings tuned for AVI files.
