AVI is a Audio Video Interleave container or wrapper file format. Like the DVD video format, AVI files support multiple streaming audio and video, although these features are seldom used. AVI files can be played by various video players which support the codec used to encode the video data.

SWF is a vector graphics file format which developed by Macromedia and Adobe systems for multimedia, vector graphics and ActionScript. SWF files can contain animations or applets of varying degrees of interactivity and function.

1. For the same movie, SWF (Flash) files are smaller than their AVI counter parts.
2. AVI is a container format, SWF is only a file format for multimedia.
3. AVI does have some of the advanced capabilities that are available in SWF.
4. AVI is created for play on windows platform, SWF is developed for displaying "animated" vector graphics on the Web, browser games, etc.

Other Comparison: MOV vs WMV / 3GP vs 3G2 / MP4 vs FLV / MKV vs MP4 / MP4 vs MP3 / 3GP vs MOV / 3GP vs FLV / M2TS vs MP4

Related Post of AVI File formats

Related Post of SWF File formats