SWF to GIF Converter

Turn the video stream of a Flash SWF into a looping GIF that needs no Flash Player.

or drop files here

SW

SWF Format

Shockwave Flash

A file format for Adobe Flash animations, games and interactive content, originally from Macromedia. Flash Player reached end of life on 31 December 2020.

  • Vector animation
  • ActionScript interactivity
  • Can embed video and audio
  • Legacy format
GI

GIF Format

Graphics Interchange Format

A raster image format introduced by CompuServe in 1987. It uses LZW compression, a palette of at most 256 colors per frame, and supports simple animation.

  • 256-color palette per frame
  • Lossless LZW compression
  • Animation
  • 1-bit transparency

How to convert SWF to GIF

Follow these steps to convert SWF to GIF online.

    1

    Choose your SWF file, or several at once.

    2

    Wait while the converter turns each file into GIF.

    3

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

What to know before converting SWF to GIF

  • The GIF is made from the video stream in the SWF. A SWF that holds only sound stops with an FFmpeg error.
  • It plays at 15 fps, is scaled to fit 480 pixels on its longer side, and loops forever.
  • The palette is built from the whole clip, with at most 256 colors per frame.
  • Sound and ActionScript interactions are not carried over.
  • Each SWF gives its own GIF.

About SWF files

What is an SWF file?

SWF is the file format of Flash, the web animation and games technology that began at Macromedia and passed to Adobe when it bought Macromedia in 2005. The letters are commonly read as Shockwave Flash, and a source also gives the name Small Web Format. One file can combine vector graphics, timeline animation, bitmap video, sound and ActionScript code. Its registered media types include application/vnd.adobe.flash.movie.

Adobe ended support for Flash Player on 31 December 2020, so SWF files now live in archives of old games, cartoons and banner ads, and it is no longer simple to see them play. An SWF may also refer to outside media instead of containing everything, so an old file can be missing parts it once loaded.

Programs that open SWF files

Windows, Mac and Linux

  • Ruffle: a Flash emulator, where compatibility depends on the ActionScript features a file uses.

Windows and Linux

  • Lightspark: an incomplete Flash implementation.

Mac

  • Adobe Audition: its SWF import pulls out the audio of video files, and it is not an interactive Flash runtime.

Web

  • Web player from the Ruffle project: runs Flash in a page through WebAssembly, with some APIs still missing.

SWF and GIF compared

  • Names and media types: .swf is application/vnd.adobe.flash.movie. .gif is the Graphics Interchange Format that CompuServe introduced in 1987.
  • Content: an SWF holds vector graphics, animation, video, sound and code. A GIF holds raster frames and nothing else.
  • Color: a GIF frame draws from a palette of at most 256 colors. A SWF's vector fills and video are not limited that way.
  • Transparency: GIF has 1-bit transparency, where a pixel is either clear or solid.
  • Sound and interactivity: GIF has neither.
  • Compression: GIF compresses each frame with lossless LZW.

What happens here: FFmpeg opens the SWF and builds a palette from its video frames, sampled at 15 fps and scaled to fit 480 pixels with even sides. A second pass then draws every frame with that palette and writes a GIF that repeats forever, so you do not need to choose a loop count. Only the video stream is used, so the sound is dropped and no ActionScript runs. A SWF that ran faster than 15 fps loses its in-between frames. The SWF you chose is never altered.

Other ways to convert SWF to GIF

  • JPEXS Free Flash Decompiler: run ffdec -format frame:gif -export frame frames-out banner.swf, using the executable for your platform. The wiki documents the -format option, where frame:gif is one of the frame formats. This writes each frame of the SWF as a separate GIF image in the output folder. For frame export the wiki lists PNG, APNG, GIF, AVI and SVG, with PNG as the default.
  • FFmpeg: for a SWF with embedded video, run ffmpeg -i clip.swf flash-preview.gif. FFmpeg's SWF reader handles bitmap, video and audio data, and it skips vector shape tags, so it is not a Flash renderer. The reader covers FLV1, screen video, JPEG and lossless bitmap pictures, with PCM, ADPCM, MP3 and Nellymoser sound.
  • Ruffle plus OBS Studio and FFmpeg: open the SWF in Ruffle. In OBS add a window or display capture source, click Start Recording and perform the sequence. Check the recording settings under Settings > Output first. Then encode the saved recording as a GIF with FFmpeg. This captures one playing session, including any errors.

Problems with SWF files

  • Nothing will open it: Flash Player was retired at the end of 2020. Use Ruffle or Lightspark instead. Lightspark is an incomplete Flash implementation, so it may not cover everything a file uses.
  • A game or animation looks wrong in Ruffle: Ruffle has not implemented every Flash API, so graphics or behavior can differ from the original. Its compatibility page says most ActionScript 1 and 2 content will work, with some graphical inaccuracies, and that most ActionScript 3 games run well enough to be played.
  • Parts are missing: a SWF can depend on external files that no longer exist online. Get the whole set of files.
  • FFmpeg reports an error: the SWF probably holds no video stream, only sound or vector drawing. Try JPEXS for frames or record it with Ruffle.
  • The buttons don't work: a GIF has no code, so ActionScript controls cannot carry over.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert SWF to GIF?

Can I still play SWF files without Flash Player?

What frame rate and size does the GIF have?

Does the GIF loop?

Why does my SWF fail to convert?

Will ActionScript, buttons and games work in the GIF?

Is the sound kept?

Why do the GIF's colors differ from the SWF's?

Why is my GIF so large?

Can I convert a SWF banner made from vector shapes?