GIF to SWF Converter

Turn a GIF animation into a video SWF file, in your browser.

or drop files here

GI

GIF Format

Graphics Interchange Format

A raster frame format used for small animations, with palettes and per-frame timing.

  • 256-color palette per frame
  • lossless LZW compression
  • animation
SW

SWF Format

Shockwave Flash

A legacy Flash movie format that can carry graphics, timelines and encoded media.

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

How to convert GIF to SWF

Follow these steps to convert GIF to SWF online.

    1

    Choose your GIF file, or several at once.

    2

    Wait while the converter turns each file into SWF.

    3

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

Before converting GIF to SWF

  • The SWF is a video of your GIF, with no ActionScript and no sound.
  • FFmpeg's own defaults decide how the video is encoded.
  • Very large pictures and fast frame rates are capped, and each side is trimmed to an even pixel count.
  • Flash Player has ended, and Ruffle is a Flash emulator.

Understanding GIF for SWF output

What is a GIF file?

GIF dates to 1987 and CompuServe. Its GIF89a revision of July 1990 introduced transparency, animation timing, comments and application blocks. Compression is lossless LZW, but every image has a palette of 256 colors at most. Many images in one file, separated by delays in hundredths of a second, make a GIF animate. The media type is image/gif, and every major browser displays it.

Programs that open GIF files

  • Windows, Mac and Linux:
    • GIMP: writes still pictures or multilayer animations as GIF.
    • ImageMagick: supports reading GIF.
  • Web:
    • Google Chrome and Mozilla Firefox: show GIF in a tab.
  • Mobile:
    • Safari and Chrome: handle GIF on a phone.

GIF and SWF compared

  • Names and types: .gif is image/gif. SWF has the media type application/vnd.adobe.flash.movie.
  • Color: GIF frames use palettes capped at 256 colors, while the SWF here carries video.
  • Sound: a GIF is silent. SWF can carry audio, but the file made here has none.
  • Animation: GIF repeats a stack of images. A SWF is a timeline-based legacy format that can also hold vector graphics and bitmap video.

Shockwave Flash started at Macromedia, which Adobe acquired in 2005, and carried Flash animations, games and interactive content with ActionScript behind them. Adobe Flash Player reached end of life on 31 December 2020. This page makes a video SWF, so no ActionScript is added.

In your browser, FFmpeg runs as WebAssembly and chooses the video codec itself: its default for SWF is Sorenson Spark (FLV1) video at 200 kbit/s. Interlaced frames are deinterlaced, and the picture is capped at 1920 pixels and 30 frames per second, with each side trimmed to an even value.

Other ways to convert GIF to SWF

  • FFmpeg: run ffmpeg -i badge.gif -an -c:v flv badge.swf. The -an option skips audio, and -c:v selects the video encoder. FFmpeg lists GIF and SWF as both readable and writable.
  • SWFTools gif2swf: run gif2swf -o badge.swf badge.gif. The -o option sets the name of the SWF output file, and the GIF is the input file.

Problems with GIF files

  • Banding in gradients: a GIF is limited to 256 colors, which changes smooth gradients.
  • Frames overlay wrongly: disposal settings decide how later images sit over earlier ones.
  • Comments can drop out: an export from GIMP skips a GIF comment holding characters outside the seven-bit range.
  • Large GIFs: a long, large GIF becomes many video frames, so conversion takes longer on a slow device.

Frequently Asked Questions

Everything you need to know about our converter

Which steps convert a GIF to SWF here?

Does the SWF keep the animation?

Will the SWF be interactive?

Does the SWF have sound?

Can I play the SWF today?

Is the picture resized?

Can I choose the SWF's video settings?

Does my GIF leave my device?