
No affiliate links or sponsorship. These steps come from official VideoLAN, Xvid, Microsoft, Apple, and HandBrake documentation, checked October 17, 2026. We didn’t run hands-on playback tests for this guide, and there are no screenshots.
Quick answer
To play Xvid and AVI files on Windows or Mac, install the free VLC media player from videolan.org and open the file with it; VLC decodes Xvid, DivX, and AVI without extra codec packs. If a file must play in Windows Media Player, QuickTime, or on a phone or TV, convert it to MP4 with the free HandBrake app.
Key takeaways
- AVI is a container and Xvid is a codec. Whether an .avi file plays depends on the codecs inside it, not the extension.
- VLC is the simplest fix on Windows and Mac: VideoLAN lists XviD, DivX, MPEG-4 ASP, and AVI among its supported formats and says no codec packs are needed.
- Microsoft’s list of video formats built into Windows doesn’t include MPEG-4 Part 2 (Xvid/DivX), so an Xvid AVI may need a codec or a different player. Microsoft strongly discourages third-party codec packs.
- Apple says older or specialized formats may not play in apps like QuickTime Player and suggests trying a different app.
- HandBrake converts AVI to MP4 for phones, TVs, and editors. It won’t open DRM-protected video.
Short answer
Best option for most people: VLC media player. It’s free, open source, runs on Windows and macOS (including Apple silicon), and plays Xvid and AVI files without installing anything else.
Best when you need a compatible copy: HandBrake. Convert the AVI to MP4 once, and HandBrake’s default preset is designed to be compatible with most devices, from phones to TVs.
Recommendation based on official documentation, not hands-on testing.
AVI vs Xvid in 30 seconds
AVI is a file container; Xvid is the codec that compresses the video inside it. Microsoft describes AVI as a container that can hold audio and video compressed with many different codecs, and says an AVI file plays only if the right codecs are installed (Microsoft Support). The Xvid project describes Xvid as a free, open-source video codec built on the ISO MPEG-4 video standard (xvid.com); VideoLAN lists it alongside DivX under MPEG-4 ASP, also known as MPEG-4 Part 2 (VLC features).
New to Xvid?
Want background on the codec itself? Read what is Xvid, our codec explainer. This guide sticks to getting your files to play.
That’s why two .avi files can behave differently: one might use Xvid video with MP3 audio, another DivX video with AC-3 (Dolby Digital) audio. If your player lacks either codec, you get an error, a black screen, or video with no sound.
How to play Xvid and AVI files on Windows with VLC
Install VLC from the official VideoLAN site and open the file with it. VideoLAN lists MPEG-4 ASP, XviD, and DivX video and AVI files among VLC’s supported inputs and says it plays most codecs with no codec packs needed. VLC 3.0.24 was the current version on October 17, 2026 (VideoLAN; VLC features).
- Go to videolan.org/vlc and download VLC for Windows. Use only the official site (see Download safely).
- Run the installer and accept the defaults.
- Open VLC, then choose Media › Open File (Ctrl+O) and select your .avi file. You can also drag the file onto the VLC window.
VideoLAN also says VLC has no spyware, ads, or user tracking, and supports hardware decoding on most platforms (VLC features).
Can Windows Media Player play Xvid files?
Not reliably out of the box. Microsoft’s troubleshooting page for Windows 11 and Windows 10 lists the video formats built into Windows as MPEG-4 (H.264), H.263, VC-1, WMV, DV, VP8, and Motion JPEG, with optional Microsoft Store extensions for MPEG-2, HEVC, VP9, AV1, and web media formats. MPEG-4 Part 2, the format Xvid and DivX use, isn’t on that list (Microsoft Support).
Microsoft also notes that starting with Windows 11 version 24H2, the AC-3 (Dolby Digital) audio codec is no longer included with Windows, though many PC makers preinstall it and it’s kept if you upgraded from an earlier version. Older AVI files with AC-3 audio may play with no sound on a clean 24H2 install (Microsoft Support).
Microsoft says error codes in the 0xC00D11xx range are playback errors related to codecs (Microsoft Support). Its codecs FAQ suggests trying the Movies & TV app from the Microsoft Store as an alternative (Microsoft codecs FAQ). For Xvid AVI files, VLC is usually the faster fix.
Skip codec packs
Microsoft strongly discourages installing free “codec packs” that claim to bundle codecs from many companies, says they can cause serious playback problems, and recommends removing them if you have trouble. Install codecs only from the provider’s official site (Microsoft codecs FAQ).
Should you install the Xvid codec?
Only if you specifically need Xvid support in Windows Media Player or another Windows app that relies on system codecs. The official Xvid download page offers a Windows codec installer with Video for Windows (VfW) and DirectShow filters, plus packages for Linux (xvid.com/download). If you install it:
- Download it only from xvid.com, not from a third-party download site.
- Match the codec to your apps: Microsoft explains that a 64-bit system may need 64-bit codecs, and a 32-bit codec might not work with a 64-bit player (Microsoft codecs FAQ).
- Remember that the codec only adds Xvid video. If the file’s audio uses another codec, you may still need VLC or a conversion.
For most people, VLC is simpler because it doesn’t change Windows’ system codecs at all.
How to play Xvid and AVI files on a Mac
Use VLC for Mac. Apple says apps such as QuickTime Player work with many media formats, but files that use an older or specialized audio or video format might not be supported and might require different software. Apple’s advice is to update your software and then try a different app, searching by the file extension, such as .avi (Apple Support). Xvid AVI files fit that description.
- Download VLC for macOS from videolan.org/vlc. VideoLAN offers a Universal build that runs on Apple silicon and Intel Macs.
- Open the download and install VLC like any other Mac app.
- Control-click the .avi file in Finder, choose Open With, and select VLC.
- To always use VLC for AVI files, select the file, choose File › Get Info, pick VLC in the Open with pop-up menu, and click Change All (Apple Mac User Guide).
Apple also notes that you can press Command-I on a file in Finder to see its format next to Kind (Apple Support). Need to capture what’s on screen while you troubleshoot? See our guide on how to screen record on Mac.
How to find out which codec an AVI file uses
Knowing the exact codecs tells you whether the problem is the video, the audio, or a damaged file:
- In VLC: open the file, then choose Tools › Codec Information (Ctrl+J on Windows). It shows the codec for each video and audio stream in the file (VideoLAN wiki: VLC menus).
- In Windows Media Player (Legacy): Microsoft says to play the file, right-click it in the library, select Properties, and check the Audio codec and Video codec sections on the File tab (Microsoft codecs FAQ).
- On a Mac: select the file in Finder and press Command-I to see its Kind (Apple Support).
How to convert AVI to MP4 with HandBrake
Convert the file when it has to play somewhere VLC isn’t available, such as a TV, phone, video editor, or a coworker’s computer. HandBrake is free, open source, and available for Windows, Mac, and Linux; version 1.11.2 was current on October 17, 2026 (handbrake.fr). Its documentation lists AVI among the common file types it can open (HandBrake source formats).
- Download HandBrake from handbrake.fr and install it.
- Select Open Source and choose your .avi file, or drag the file onto HandBrake’s window.
- If the source contains more than one clip, pick the right one with the Title control.
- Choose a preset. HandBrake’s docs say the default Fast 1080p30 preset is often a good choice because it’s fast and compatible with most devices.
- Check Save As (the new file name) and To (the folder), using Browse to change it.
- Click Start and wait for the encode to finish (HandBrake quick start).
HandBrake doesn’t defeat copy protection and doesn’t work with DRM-protected video (HandBrake source formats). Converting re-encodes the video, so keep the original file until you’ve checked the copy.
Alternative: convert with VLC
VLC can also convert files. VideoLAN’s documentation describes the steps: Media › Convert/Save (Ctrl+R), click Add to pick the file, click Convert/Save, set a destination file, choose a profile, and click Start (VLC user documentation). HandBrake offers more control over presets and quality.
Troubleshooting Xvid and AVI playback
| Problem | Likely cause | What to try |
|---|---|---|
| Video plays but there’s no sound | Missing audio codec (often AC-3 on Windows 11 24H2) | Play the file in VLC, or convert it to MP4 with HandBrake |
| Error 0xC00D11xx in Windows Media Player | Codec playback error (Microsoft) | Use VLC; avoid codec packs |
| Black screen with audio | Missing video codec, such as MPEG-4 Part 2/Xvid | Use VLC or convert with HandBrake |
| File won’t open in QuickTime Player | Older or specialized format (Apple) | Open it in VLC for Mac |
| Can’t skip ahead, or VLC warns the file is broken | Damaged or incomplete AVI index | Let VLC rebuild the index (see below) |
| Audio and video drift out of sync | Timing problem in the file | Adjust it in VLC under Tools › Track Synchronization |
Fix an AVI file you can’t seek through
VideoLAN’s documentation for VLC’s AVI module describes an option to recreate the index of an AVI file, for files that are damaged or incomplete and not seekable. It can ask what to do, always fix, never fix, or fix when necessary; the default is to ask (VideoLAN wiki: AVI module). If VLC asks what to do about a broken or missing AVI index, choosing to fix or build the index should let you seek through the file. This setting is about playback in VLC; to get a clean, seekable copy you can share, convert the file with HandBrake.
Fix audio and video out of sync
In VLC, open Tools › Track Synchronization to shift the audio earlier or later relative to the video (VideoLAN wiki: VLC menus). If the drift is permanent, a HandBrake conversion sometimes produces a better-behaved file, but it can’t fix every problem.
Download players and codecs safely
Fake “codec required” pop-ups and bundled installers are a common way to push unwanted software. Get VLC only from videolan.org, Xvid only from xvid.com, and HandBrake only from handbrake.fr. Xvid’s own site says its software comes with no adware (xvid.com). If a site insists you install a codec just to watch a video, close it. Our guide to malware vs viruses explains how to spot and avoid that kind of threat.
FAQ
What is the best player for Xvid and AVI files?
For most people, VLC media player. VideoLAN lists XviD, DivX, MPEG-4 ASP, and AVI among VLC’s supported formats and says no codec packs are needed. It’s free and runs on Windows, macOS, and Linux.
Does Windows 11 play AVI files?
Windows can open AVI files, but AVI is only a container. Microsoft’s list of video formats built into Windows 11 and 10 doesn’t include MPEG-4 Part 2, which Xvid and DivX use, so an Xvid AVI may not play in the Media Player app without a codec. VLC plays it directly.
Is the Xvid codec safe to install?
The codec from the official xvid.com download page is free and open source, and the Xvid project says its software comes with no adware. Avoid third-party codec packs, which Microsoft strongly discourages, and fake codec downloads from video sites.
Can QuickTime Player play Xvid AVI files?
Often not. Apple says files using older or specialized audio or video formats might not be supported and suggests trying a different app. VLC for Mac plays Xvid AVI files, or you can convert them to MP4 with HandBrake.
Why does my AVI file have no sound?
The file’s audio codec is probably missing. Older AVI files often use AC-3 audio, and Microsoft says AC-3 is no longer included starting with Windows 11 version 24H2 unless your PC maker preinstalled it or you upgraded from an earlier version. Play the file in VLC or convert it with HandBrake.
How do I convert Xvid AVI to MP4 for free?
Open the AVI in HandBrake, pick a preset such as Fast 1080p30, set the file name and destination, and click Start. VLC’s Media, Convert/Save option works too. HandBrake doesn’t work with DRM-protected video.
Sources
Steps and compatibility notes come from official VideoLAN, Xvid, Microsoft, Apple, and HandBrake pages, checked on October 17, 2026 (PKT). No hands-on testing.
Show all 15 sources
- VideoLAN: VLC media player (download, version 3.0.24)
- VideoLAN: VLC features and supported formats
- VLC user documentation: Tips and tricks (Convert/Save)
- VideoLAN wiki: VLC menus (Open File, Convert/Save, Codec Information, Track Synchronization)
- VideoLAN wiki: AVI demuxer module (avi-index option)
- Xvid: official site
- Xvid: official downloads
- Microsoft Support: Troubleshoot Windows Media Player errors (built-in codecs, AC-3, 0xC00D11xx)
- Microsoft Support: Codecs FAQ
- Microsoft Support: File types supported by Windows Media Player
- Apple Support: If a media file doesn’t open or play on your Apple device
- Apple Mac User Guide: Choose an app to open a file on Mac
- HandBrake: official site (version 1.11.2)
- HandBrake documentation: Quick start
- HandBrake documentation: Source formats
Changelog
- October 17, 2026: First version. Playback steps for Windows and Mac with VLC, Windows Media Player codec notes (including AC-3 removal in Windows 11 24H2), the official Xvid codec, and AVI-to-MP4 conversion with HandBrake, all from official documentation. No hands-on testing.




