SWF to MP4 Converter

Turn the video and sound inside an SWF into an MP4 that plays almost anywhere.

or drop files here

SW

SWF Format

Shockwave Flash

A file format for Adobe Flash animations, games and interactive content, originally from Macromedia.

  • vector animation
  • ActionScript interactivity
  • can embed video and audio
MP

MP4 Format

MPEG-4 Part 14

A container format defined in ISO/IEC 14496-14 that can hold video, audio, subtitles and metadata. H.264 video with AAC audio is the most common combination.

  • container for several codecs
  • H.264, H.265 and AV1 video
  • subtitles and chapters

How to convert SWF to MP4

Follow these steps to convert SWF to MP4 online.

    1

    Choose your SWF file, or several at once.

    2

    Wait while the converter turns each file into MP4.

    3

    Download each new MP4 file. Your original file isn't changed.

Before converting SWF to MP4

  • FFmpeg re-encodes the video and sound inside the SWF as H.264 and AAC. The MP4 is a plain video, so buttons and ActionScript do not carry over.
  • The sound is AAC at 96 kbps, and the page has no setting to change it.
  • Frames larger than 1920 px on the long edge are reduced, faster clips lose frames to reach 30 fps, and both sides are rounded down to even numbers.
  • To capture a game or an interactive lesson, record it in Ruffle instead.

About SWF and MP4

What is a SWF file?

An SWF is a Flash file, also known as Small Web Format. It is a legacy multimedia format associated with Macromedia and Adobe Flash, and Adobe acquired Macromedia in 2005. A single SWF may mix vector drawings, animation and bitmap video. Interactive ones put ActionScript on the timeline, and some point to outside media in place of holding every resource. Its registered media types include application/vnd.adobe.flash.movie.

Flash Player was retired on 31 December 2020, after which it no longer ran Flash content at all. That is why SWF files now survive mostly as Flash animations, games and archived web content, and why people look for a way to keep them as video.

Programs that open SWF files

  • Windows, Mac and Linux: Ruffle is a Flash emulator. How well a file plays hinges on which ActionScript features it needs.
  • Windows and Linux: Lightspark is an incomplete Flash implementation.
  • Mac: Adobe Audition can import an SWF and extract the audio of video files when DLMS support is enabled. It is not an interactive Flash runtime.
  • Web: a browser can run Ruffle's web player, which uses WebAssembly to emulate Flash. Some APIs remain incomplete, and Ruffle also ships as browser extensions.

SWF and MP4 compared

An SWF describes a timeline with scripts, while an MP4 records a finished video. MP4 is a container defined in ISO/IEC 14496-14 that can hold video, audio and metadata, and H.264 video with AAC audio is its most common combination. Turning an SWF into an MP4 therefore keeps what can be played back and leaves the logic behind. No video can retain ActionScript interactions as executable controls, so a menu, a button or a game stays in the SWF.

This page reads the video and sound embedded in the SWF with FFmpeg. FFmpeg is not a Flash runtime, so it does not run ActionScript. The picture goes through x264 using CRF 32 and the ultrafast preset, while the sound is encoded by AAC at 96 kbps. The long edge of the frame tops out at 1920 px, and the rate tops out at 30 frames a second. A smaller frame is not enlarged, a slower clip is not sped up, and a faster clip has frames dropped while keeping its length. Both sides then drop to even numbers, which costs an odd side one pixel.

Your download takes the SWF's name plus .mp4, and the original stays as it was. Files in the queue run in turn, each becoming a separate MP4.

Other ways to convert SWF to MP4

  • FFmpeg (command line): FFmpeg lists Flash (SWF) among the formats it can demux, so ffmpeg -i movie.swf movie.mp4 converts the video and sound inside a file. It gives you control over the codecs and size, which this page fixes.
  • JPEXS plus FFmpeg: JPEXS Free Flash Decompiler exports from the command line with ffdec -format frame:avi -export frame frames input.swf. Its sound item type exports audio separately, and movie exports default to FLV without sound. Convert the exported AVI with ffmpeg -i frames/movie.avi output.mp4, using the file name JPEXS actually wrote.
  • Ruffle and OBS Studio: play the SWF in Ruffle, add its window to OBS with the + button under Sources and Window Capture, and press Start Recording. Ruffle's desktop apps for Windows, macOS and Linux suit this best. The capture holds only the route you play through, so it suits a game or a lesson that needs clicks, and OBS shows its recording format under Settings > Output.

Problems with SWF files

Adobe's player will not run it: the retired Flash Player is not an option, so use an emulator such as Ruffle, or convert the video inside the file.

It plays differently in Ruffle: Ruffle does not implement every Flash API, so an SWF may show graphical or behavioral differences from the original.

Pieces are missing: an SWF can refer to external images, sound or video instead of containing them. Without those files beside it, it can behave incompletely, so keep them together.

Interactions disappear in a video: a video conversion cannot retain ActionScript interactions as executable controls. Record the route you want to show, or keep the SWF for the interactive version.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert SWF to MP4?

Why does my SWF to MP4 conversion fail?

What sound does the MP4 have?

Will the buttons and menus of my SWF work in the MP4?

How do I turn a Flash game into a video?

How large and how fast is the resulting video?

Is my SWF uploaded to a server?

How can I play an SWF file now that Flash Player is gone?

Can I convert the SWF's artwork frame by frame instead?

What video codec is inside the MP4?