How to Play AVI Files on Windows 11

You double-click an old AVI video on your Windows 11 PC and get an error or a black window with sound but no picture. Start with the built-in Media Player app; if it still fails, the file uses a codec Windows does not include, so open it in VLC from videolan.org or find out which codec it needs.

These steps apply to Windows 11, including versions 24H2 and 25H2, and use only Microsoft tools plus the official VLC download.

Windows 11 Can Open AVI Files, but the Codec Decides

AVI (Audio Video Interleave) is a container format. Think of it as a box that holds a video stream and an audio stream. The box itself is not the problem. What matters is the codec, the compression method used to pack each stream inside the box. Microsoft lists .avi as a supported file type, and it also explains that because AVI is a container, playback depends on whether the codecs used inside the file are installed on your PC.

That is why two AVI files on the same computer can behave differently. A clip saved by a modern camera may open instantly, while a video ripped years ago with an older compression scheme shows an error. Microsoft names DivX, Cinepak, Indeo, DV, MJPEG and uncompressed video as codecs commonly found in AVI files, with MP3, MS ADPCM and PCM as common audio codecs. The same container and codec rules apply when you play MOV files on Windows 11.

Windows 11 includes a set of video codecs out of the box, including MPEG-4 (H.264), H.263, VC-1, WMV, DV, VP8 and Motion JPEG. If your AVI uses one of those, it should play without any extra software. If it uses something outside that list, such as an older codec like Indeo or Cinepak, or an unusual DivX or Xvid variant, the built-in apps may refuse it or play only the sound.

Renaming the file does not help. Changing a file extension from .avi to .mp4 alters the label on the box, not the contents, so the same codec problem follows the file. If you cannot see extensions at all, turn on file name extensions in File Explorer first so you know you are actually dealing with an .avi file.

Open an AVI File in the Media Player App

The Media Player app is the current built-in video and music player in Windows 11, and it is the first thing to try.

  1. Open File Explorer and find your AVI file.
  2. Right-click the file and choose Open with. If you do not see it right away, select Show more options first.
  3. Pick Media Player from the list. If it is not listed, look for an option to choose another app and select Media Player there.
Open with menu for an AVI file in Windows 11 File Explorer
Right-click the AVI file and choose Open with to pick a player. (Recreated interface)
  1. Watch the first few seconds. A picture and sound together mean the codecs are covered and you are done.

If the window stays black while audio plays, or an error appears, skip ahead to the codec section below rather than trying the same app again.

On Windows 11 N editions, which ship without Windows Media Player, some preinstalled media apps and related media technologies, Microsoft offers a Media Feature Pack. If Media Player or playback is missing entirely on an N edition, install that first: go to Start > Settings > Apps > Optional features, select View features next to Add an optional feature, and choose the Media Feature Pack. Microsoft lists the details on its Media Feature Pack for Windows N editions page.

Try Movies & TV or Windows Media Player Legacy

Microsoft suggests the Movies & TV app as an alternative when Windows Media Player cannot play a file. If Movies & TV is on your PC, use the same Open with route and pick it instead. It is a quick second opinion, though it may hit the same codec limits as Media Player.

Windows Media Player Legacy is the classic player. On Windows 11 it is an optional feature, so it may not be installed. To add it:

  1. Open Start > Settings > System > Optional features.
  2. Next to Add an optional feature, select View features.
  3. Search for Windows Media Player Legacy, check the box, select Next, then Add.
Windows Media Player Legacy selected in Windows 11 optional features
Windows Media Player Legacy is an optional feature you can add from Settings. (Recreated interface)
  1. When it finishes installing, open it from the Start menu or through Open with.

Legacy is mainly worth having because its codec troubleshooting tools (covered below) are documented by Microsoft. For modern video such as 4K, Microsoft recommends the Media Player app instead. Legacy also does not play DVDs; if that is your real goal, see how to play a DVD on Windows 11.

Play the AVI in VLC From videolan.org

VLC is a free, open-source player that brings its own decoders, so it can often play AVI files whose codecs Windows does not include, without installing anything system-wide. Download it only from the project’s own site, videolan.org, where the Windows download page is at videolan.org/vlc/download-windows.html. Copycat download sites sometimes bundle extra software, so avoid them.

  1. On the VLC download page, choose the installer that matches your PC. The page offers 64-bit, 32-bit and ARM64 builds; most Windows 11 PCs use 64-bit, and Snapdragon laptops use ARM64.
  2. Run the downloaded installer and accept the prompts.
  3. Right-click your AVI file, choose Open with, and pick VLC media player.
  4. If the video plays, you can make VLC the default for AVI files (next section).

Example: Dana has a folder of 2009 vacation clips saved as AVI. Media Player plays the audio over a black screen. In VLC the same clips play with picture and sound, so she sets VLC as the default for .avi files and keeps Media Player for everything else.

Make an App the Default for AVI Files

Once you find a player that works, set it as the default so double-clicking an AVI opens it every time.

  1. Open Settings > Apps > Default apps.
  2. In the search box at the top, type .avi.
Default apps search for .avi in Windows 11 Settings
Search for .avi to choose which app opens AVI files. (Recreated interface)
  1. Select the result for .avi.
  2. Choose the app you want, such as Media Player or VLC media player, and confirm.

This only changes .avi. Other video types keep their current defaults. For more on how Windows handles defaults, see changing default apps in Windows 11.

Find Out Which Codec the File Uses

If you want the built-in apps to play the file, you need to know which codec it uses. Microsoft documents a way to check in Windows Media Player Legacy:

  1. Open Windows Media Player Legacy and add the file’s folder to your library (or play the file once so it appears).
  2. In the library, right-click the file and select Properties.
  3. Open the File tab and look at the Audio codec and Video codec entries.
AVI file properties showing audio and video codec in Windows Media Player Legacy
The File tab shows which codecs the video needs. (Recreated interface)

To see which codecs are already installed, open Help > About Windows Media Player and select Technical Support Information. That opens a report that lists the audio and video codecs on your system.

Compare the two. If the file’s video codec is not in the installed list, Windows cannot draw the picture, which explains a black window with sound.

Fix Sound With No Picture or a Codec Error

The symptoms point to different causes:

SymptomLikely causeWhat to try
Sound plays, picture is blackVideo codec not installedPlay in VLC, or install the codec from a trusted source
Picture plays, no soundAudio codec missing (for example AC-3 on newer installs)Play in VLC, or check the audio codec in Properties
“A codec is required to play this file”Missing audio or video codecIdentify the codec, then use VLC or a trusted codec
Error code starting 0xC00D11Codec missing or not supportedSame as above
Nothing opens, file size looks tinyDamaged or incomplete fileCopy or download the file again

Microsoft describes errors in the 0xC00D11xx range as signs that a required codec might not be installed or supported. You may also see an error such as 0xc00d5212 reported alongside AVI files; it is commonly tied to an unsupported codec, but Microsoft support pages do not define that exact code, so treat it as a likely codec problem rather than a confirmed one.

A note on missing sound: beginning with Windows 11, version 24H2, the AC-3 (Dolby Digital) audio codec is no longer included in Windows. Microsoft says PCs that upgraded from an earlier version keep it, and some PC makers include it, but a clean install of 24H2 or later may not have it. An AVI with AC-3 audio can therefore play silently on a newer PC.

Microsoft offers several codec add-ons in the Microsoft Store: the MPEG-2 Video Extension, HEVC Video Extension, VP9 Video Extension, AV1 Video Extension and Web Media Extensions. Install one only if the codec check shows that format. These target specific modern formats, not the older codecs often found in AVI files, so for most problem AVI files VLC is the practical fix.

If the codec check names something else, Microsoft’s advice is to get it only from the codec provider’s own website or the Microsoft Store, to match the codec to your player (a 64-bit player needs 64-bit codecs), and to create a restore point first. On a work or school PC, your administrator may block codec installs through Group Policy, so ask IT rather than working around it.

If the file itself is damaged, no player will fully fix it. Check that the download completed or that the copy from an old drive finished, then copy it again from the original source if you still have it. Converting the file to another format can help with stubborn videos, but that needs a trusted video tool and is outside the scope here.

Reset Windows Media Player Legacy When It Misbehaves

If Legacy used to play your AVI files and now does not, or it freezes on every video, Microsoft lists these fixes on its codecs in Media Player page. Try them in order and test after each one.

  1. Restore the library: open Windows Media Player Legacy, press Ctrl + M to show the menu bar, then select Tools > Advanced > Restore Media Library.
  2. Clear the history: press Ctrl + M, select Tools > Options > Privacy, then select Clear History and OK.
  3. Run the troubleshooter: go to Settings > System > Troubleshoot > Other troubleshooters and select Run next to Windows Media Player.
  4. Repair or reset the app: go to Settings > Apps > Installed apps, select the three dots next to Windows Media Player, choose Advanced options, then select Repair. If that does not help, select Reset. Reset removes your custom player settings but not your media files.
  5. Check system files: open Command Prompt as administrator, type sfc /scannow and press Enter.

These steps fix a broken player. They will not add a codec that was never there, so if the codec check shows an unsupported format, VLC is still the better route.

Why You Should Skip Codec Packs

Many older tutorials suggest installing a free codec pack, a bundle of dozens of decoders from various sources. In its codecs FAQ for Windows Media Player, Microsoft advises against free codec packs. A pack replaces or adds decoders for every app on the PC at once, so a bad one can cause playback problems well beyond the one file you were trying to fix.

A player with built-in decoders, such as VLC, solves the same problem without changing how Windows handles video for every other app. If you later remove VLC, nothing else on the system is affected.

AVI Playback Questions

Does Windows 11 play AVI files without extra software?

Often, yes. The Media Player app can open AVI files whose codecs Windows includes, such as Motion JPEG, DV or H.264. Files using older or less common codecs, such as Indeo, may need VLC or a matching codec.

Will an AVI file play on an Arm-based Windows 11 PC?

The same rules apply. VLC offers an ARM64 build on its download page, so choose that one instead of the 64-bit x64 installer.

Why does the video play in VLC but not in Media Player?

VLC carries its own decoders, so it does not depend on the codecs installed in Windows. Media Player relies on the codecs installed in Windows.

Do I need the HEVC Video Extension for AVI files?

Only if the codec check shows HEVC (H.265) video, which is uncommon in AVI files. Install Store extensions to match a specific codec, not as a general AVI fix.

Can I play AVI files in Windows Media Player Legacy?

Yes, if you add it from Optional features and the codecs the file needs are installed. Results can differ from the Media Player app, so if one fails it is worth trying the other before installing anything.

What if the AVI still will not play anywhere?

If VLC also fails, the file is probably damaged or incomplete. Copy it again from the original camera, disc or drive. If the video was recorded to a disc, try copying it from the disc again rather than from an older copy.

Next step: open your AVI in the Media Player app first, and if you get a black screen, install VLC from videolan.org and set it as the default for .avi files.