Convert SWF to MP4

Why an SWF file is harder to convert than a normal video

The SWF file format describes a small program rather than a video. An SWF file holds vector shapes, bitmaps, sound and ActionScript code, and a Flash player draws each frame while the file runs. MP4 is a plain video format that phones, editors, social media platforms and any modern device play without extra software. Before the conversion can happen, something has to play the Flash content and turn the result into video frames.

There are three ways to do that, and they give very different results with the same file:

  • A: Play and record. Open the SWF file in a Flash emulator such as Ruffle and record it while it plays, either with the recorder built into our SWF Player or with a screen recorder.
  • B: Direct conversion with FFmpeg. Extract the audio and video streams stored inside the SWF.
  • C: Converter software or an online converter. Add or upload your SWF, choose MP4 as the output format and click convert.

With the original FLA project and Adobe Animate you could export video from the source, but most people only have the finished SWF.

Method A: record the SWF in your browser

We recommend this method for most files because it captures exactly what you see: timing, sound and anything ActionScript draws.

Our SWF Player runs Ruffle, an open-source Flash Player emulator, in your browser, and it can record what it plays. Nothing is uploaded; the file stays on your computer.

  1. Drop the SWF file onto the player and let it start.
  2. Pick a format in the recording panel: MP4 (H.264 with AAC or Opus sound), WebM (VP9 or VP8 with Opus) or GIF.
  3. Choose 24, 30 or 60 fps and a resolution of ½×, 1× or 2× the stage size, capped at 1920 px. The panel shows an estimated file size per 10 seconds.
  4. Set a maximum length of 15, 30, 60 or 120 seconds and press Record. For a clean start, use “Restart and record” instead: the file reloads and the player records the chosen number of seconds from the first frame.
  5. Press Stop and download the clip.

The sound comes straight from the player, not from your microphone, where the browser can encode it. Current Chrome does. If a browser can’t, the panel says so before you start and the clip stays silent. GIF never has sound and stops after 60 seconds at the latest; you can set 10 to 25 fps, a width of 240 to 640 px and 256 down to 32 colours.

Keep the tab visible while recording, because browsers slow down hidden tabs. On slower machines, the first recording after the page loads can run at a lower frame rate. If the clip looks choppy, record a second take.

The game stays interactive while the recorder runs, so you can record a playthrough. For interactive content this is the only method that works, since there is no fixed timeline to convert.

If the SWF won’t open at all, our guide to opening SWF files covers the usual causes.

When a screen recorder is the better tool

The built-in recorder stops after two minutes. For longer sessions, or in a browser that can’t record a format you need, use a free screen recorder next to the player:

  • OBS Studio (Windows, macOS, Linux). Free, open source, no watermark, any length, captures the browser window with its audio.
  • Xbox Game Bar (Windows 10 and 11). Windows key + Alt + R starts and stops a clip, saved as MP4 in the Captures folder under Videos.
  • Screenshot toolbar (macOS). Shift-Command-5 saves a MOV file but takes audio only from a microphone, so use OBS if the SWF has sound you need.

Can FFmpeg convert SWF files to MP4?

Sometimes. FFmpeg is a free command-line tool that converts between hundreds of audio and video formats, and many people try ffmpeg -i input.swf output.mp4 first.

The FFmpeg documentation lists Flash (SWF) as a supported file format and notes that for Flash 9 (AVM2) files only embedded audio is decoded. FFmpeg can pull the video and audio streams stored in the SWF, and it also reads FLV. It does not run ActionScript and is not a Flash player.

SWF files therefore split into two groups:

  • An SWF that simply wraps a video, such as an old website intro, can convert cleanly at the original quality.
  • A typical Flash animation built from vector shapes and code has no video stream to extract. The output is empty, black or just the audio track.

So FFmpeg is worth a try when you know the SWF contains video. For everything else, Method A is quicker.

Method C: converter software and online converters

A search for “swf to mp4” brings up many desktop programs and online converter sites. Services such as CloudConvert and commercial software such as Movavi Video Converter or VideoProc Converter list SWF as an input format. Most work in three steps: upload your SWF file, choose MP4 (or AVI, MKV, MOV, WMV and more), convert and download.

Files with embedded video tend to work. Complex animations and anything interactive often fail or lose parts. Test one short file before you pay or queue a whole folder.

Are online SWF converters safe?

Reputable ones are, but your file goes to someone else’s server, which matters for private or client work. Old Flash files also attract dubious sites that bundle adware or a supposed Adobe Flash Player download. Adobe ended support on December 31, 2020, so no such download is official. Get converter software only from the developer’s own website.

Comparison table: browser recorder vs. FFmpeg vs. converter software

A: Play + record (browser or OBS) B: FFmpeg C: Converter software / online
Output MP4, WebM or GIF in the browser; any length with OBS MP4 and other formats MP4, AVI, MKV and more
Quality Up to 2× stage size, capped at 1920 px Original quality, embedded video only Varies; unreliable for animations
Interactivity Fully captured: you play while recording Lost Lost
ActionScript content Plays as in Flash (AS1/AS2 well, AS3 partly) Not executed Often fails
Effort Real time, max. 120 s per clip in the browser One command, if it works Low: upload, convert, download
Cost and privacy Free, file stays local Free, local Free tiers or paid; online means upload
Infographic comparing three ways to convert SWF to MP4: recording in the browser, FFmpeg and converter software, rated for quality, interactivity, effort and cost
Three ways from SWF to MP4: the browser recorder captures everything, FFmpeg only embedded video.

How to convert SWF to MP4: which method fits your file?

  • Old Flash animation or cartoon: Method A. Use “Restart and record” in the SWF Player at 30 fps; motion and audio stay as they were.
  • Flash game or interactive menu: Method A while you play. Sessions longer than two minutes go to OBS.
  • SWF that only wraps a video clip: Method B. If the FFmpeg output plays, you have the original video without quality loss.
  • A large folder of SWF files: drop them all on the SWF Player first. Its batch view lists version, stage size, frame rate and length per file, so you can see which ones are worth recording.
  • You have the FLA source and Adobe Animate: export from the project for a clean MP4 at the animation’s exact frame rate.
Illustration of a laptop on a desk playing a colorful retro animation while a recording indicator glows, with a phone showing the finished video beside it
Play it, record it: the browser recorder turns an old SWF file into an MP4 video.

How do you trim the MP4 or make a GIF from it?

A screen capture from OBS has a few extra seconds at each end; the Photos app on Windows, QuickTime Player on a Mac or any video editor can trim them. “Restart and record” in the browser avoids most of that.

For a short loop, the recorder can write a GIF directly. If you already have an MP4, load it into our GIF Maker, cut it to the part you need, set frame rate and width, and download the animated GIF. GIF has no audio, so keep the MP4 whenever sound matters.