Convert SWF to AIF — Free Online Tool

Extract and convert the audio track from an SWF Flash file into a high-quality, lossless AIF file using PCM 16-bit big-endian encoding. This tool strips the FLV1 video and MP3 audio from the SWF container, decoding and re-encoding the audio as uncompressed PCM — ideal for recovering clean audio from Flash animations or interactive content.

FFmpeg Command

Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg

Free — no uploads, no signups. Your files never leave your browser.

Estimated output:

Conversion Complete!

Download

How It Works

SWF files typically carry audio encoded as MP3 (libmp3lame) or AAC within a Flash container designed for animated vector graphics and interactive web content. During this conversion, FFmpeg demuxes the SWF container, discards the video stream entirely, and decodes the compressed audio track. That decoded audio is then re-encoded as PCM signed 16-bit big-endian (pcm_s16be) and written into an AIF container — Apple's lossless uncompressed audio format. Because the SWF audio is lossy (MP3 or AAC) and the output is uncompressed PCM, the AIF file will faithfully preserve whatever audio quality existed in the source SWF, but no lost quality from the original lossy encoding can be recovered. The result is a large, studio-ready audio file suitable for editing in professional audio software.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg command-line tool, which is the underlying engine powering this browser-based conversion via its WebAssembly port (FFmpeg.wasm).
-i input.swf Specifies the input file — an SWF (Small Web Format) Flash container, which may contain FLV1 or MJPEG video and MP3 or AAC audio streams bundled together for web playback.
-c:a pcm_s16be Sets the audio codec to PCM signed 16-bit big-endian, which decodes the lossy MP3 or AAC audio from the SWF and re-encodes it as uncompressed raw audio in the byte order native to the AIF format, ensuring compatibility with Apple audio software.
output.aif Defines the output filename and container format. The .aif extension tells FFmpeg to write an Audio Interchange File Format container, which is Apple's uncompressed audio format. Because AIF is audio-only, FFmpeg automatically discards the video stream from the SWF without needing an explicit -vn flag.

Common Use Cases

  • Recovering background music or sound effects from legacy Flash games or animations for use in audio editing software like Logic Pro or Pro Tools
  • Extracting narration or voiceover audio from an old SWF e-learning module to re-purpose for a modern video or podcast
  • Archiving the audio from Flash-based interactive advertisements or web content before the files become unplayable due to Flash's end-of-life
  • Pulling a musical jingle or audio branding asset out of an SWF file to use as a lossless master in a media production workflow
  • Converting Flash animation soundtracks into AIF for import into GarageBand or Final Cut Pro, which natively prefer Apple's AIF format
  • Creating a lossless AIF archive copy of audio embedded in SWF files before migrating or deleting legacy Flash assets

Frequently Asked Questions

No — the audio quality is capped by what was originally encoded in the SWF. SWF files store audio as lossy formats like MP3 or AAC, and that compression has already discarded audio data permanently. Converting to AIF decompresses and stores the audio as uncompressed PCM, which means no further quality is lost in the conversion step, but the AIF file will sound identical to the compressed source, not better than it.
SWF files store audio in compressed formats like MP3, which can achieve 10:1 or greater compression ratios. The output AIF format uses uncompressed PCM audio (pcm_s16be), which stores every audio sample as raw data. A 1-minute MP3 audio track at 128k might be around 1MB, but the same audio as 16-bit PCM at 44.1kHz in AIF would be roughly 10MB. This is expected behavior for a lossless uncompressed format.
No. AIF is a pure audio format and cannot contain video streams. FFmpeg automatically drops the video stream (FLV1 or MJPEG) from the SWF during this conversion and only extracts the audio. If you need to retain the visual content, you would need to convert the SWF to a video format like MP4 or MKV instead.
You can swap pcm_s16be for a higher bit-depth codec by changing the -c:a flag. For example, use -c:a pcm_s24be for 24-bit audio or -c:a pcm_s32be for 32-bit audio. Higher bit depths produce larger files but offer greater headroom for audio editing and processing. The command would look like: ffmpeg -i input.swf -c:a pcm_s24be output.aif.
Yes. On Linux or macOS, you can use a shell loop: for f in *.swf; do ffmpeg -i "$f" -c:a pcm_s16be "${f%.swf}.aif"; done. On Windows Command Prompt, use: for %f in (*.swf) do ffmpeg -i "%f" -c:a pcm_s16be "%~nf.aif". The browser-based tool processes one file at a time, so the command-line approach is recommended for bulk conversions.
If the SWF contains no audio stream, FFmpeg will return an error indicating that no audio stream was found and the output AIF file will not be created. SWF files used purely for vector animation or visual-only interactive content sometimes omit audio entirely. You can check whether your SWF has an audio track by running ffprobe -i input.swf before attempting the conversion.

Technical Notes

SWF files are complex container formats designed for Adobe Flash Player, and FFmpeg's SWF demuxer handles the most common audio configurations — MP3 (libmp3lame) and AAC — reliably. The default output codec pcm_s16be (signed 16-bit big-endian PCM) matches the native byte order of the AIF format specification, which was designed by Apple for big-endian Motorola 68000 and PowerPC systems. Choosing pcm_s16be ensures maximum compatibility with Apple software including Logic Pro, GarageBand, and older Mac-based digital audio workstations. The AIF format does not support metadata tags in the same rich way as formats like MP3 or MP4, so any metadata embedded in the SWF audio stream (such as ID3 tags within an internal MP3) may not be preserved in the output file. No subtitles, chapters, or interactive data from the SWF can be carried into the AIF container. Because SWF files were sometimes protected or obfuscated by Flash authoring tools, heavily protected SWF files may not demux cleanly — in those cases FFmpeg may report errors or produce silence.

Related Tools