GIF to SVG Converter

Embed a GIF's first frame in an SVG, at its original size, without tracing.

or drop files here

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
  • one transparent palette color
SV

SVG Format

Scalable Vector Graphics

An XML graphics document that can hold paths and raster pictures. This output holds one embedded PNG, not traced shapes.

  • XML structure
  • One embedded PNG here
  • Tracing needed for paths

How to convert GIF to SVG

Follow these steps to convert GIF to SVG online.

    1

    Choose your GIF file, or several at once.

    2

    Wait while the converter turns each file into SVG.

    3

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

What to know before converting GIF to SVG

  • The SVG holds your picture as an embedded PNG; nothing is traced to vector shapes.
  • It keeps the GIF's pixel size, so it looks as blocky when zoomed.
  • An animated GIF gives its first frame only.
  • Transparency is kept in the embedded PNG.

About GIF files

What is a GIF file?

The GIF format came out of CompuServe in 1987 for pictures stored with a color palette. A GIF holds either one still picture or several images separated by delays counted in hundredths of a second; that timing is what makes GIF animation. Colors in every GIF image come from a table of no more than 256 entries, and LZW coding compresses the data without loss. Transparency works by marking one palette color as fully transparent, so there is no partial transparency.

Version GIF89a, dated July 1990, brought extensions covering transparency, frame timing, comments and application data. LZW license fees from Unisys began in 1994, and the patent behind them expired in the US in 2003. A GIF is a pixel format with a small palette, so it turns blocky when enlarged. That is why people ask for an SVG, and it is worth knowing before you convert that an SVG made from a GIF does not fix it.

Programs that open GIF files

Linux, Mac and Windows:

  • ImageMagick reads GIF. To see what your install supports, run magick identify -list format.
  • Inkscape imports GIF files, but not their animation.
  • GIMP exports still pictures or multilayer animations as GIF.

Web and mobile:

  • Chrome, Firefox and Safari all show GIF, as does every other major browser.

A browser is the simplest way to check what the first frame of a GIF looks like.

GIF and SVG compared

  • Kind: a GIF is a grid of pixels. SVG is XML text for two-dimensional graphics built from shapes, text and embedded images. Its registered media type is image/svg+xml.
  • Scaling: because SVG shapes are stored as instructions, they can be drawn at any size without losing sharpness. Pixels in a GIF do not scale that way.
  • Animation: a GIF loops its frames. This page keeps only the first frame.
  • Transparency: GIF has one transparent palette color. The SVG made here keeps transparency inside the embedded picture.

This page does not trace the GIF into shapes. Your browser decodes the GIF, and the SVG that comes out has one image element inside it. That element carries the picture as a base64 PNG sized exactly like the GIF, with no resizing and no color reduction. Because the picture is still made of pixels, it does not scale the way a drawing does, and it looks just as blocky when zoomed as the GIF did.

From an animated GIF the page keeps the opening frame alone; later frames and their delays are dropped, so what you download is a still. EXIF, ICC profile and XMP data are not carried over. A file the browser cannot decode stops with "Image decode failed.", and no SVG is made.

Other ways to convert GIF to SVG

  • Inkscape: use File > Import to bring in the GIF, choose to embed it in the dialog that follows, then save the drawing as SVG. Embedding stores the image inside the SVG file. Inkscape's manual says its GIF support does not include animation. To get paths, select the picture and use Path > Trace Bitmap.
  • LibreOffice Draw: select the bitmap, go to Shape > Convert > To Polygon, adjust the settings in the dialog, and then use File > Export and choose a graphics file type.

Embedding keeps the picture as pixels inside the SVG, while tracing and converting to polygons make vector shapes.

Problems with GIF files

  • The SVG no longer moves: it holds a single frame, so keep the GIF itself for the animation.
  • The first frame is not the one you want: open the GIF in an editor, save the frame you need as a still, and convert that.
  • Zooming shows squares: the SVG holds a raster picture, so it stays pixelated. Use a tracing tool to get shapes.
  • Soft edges turn jagged: a GIF cannot keep partial opacity, so soft transparent edges lose it.
  • Gradients change: GIMP's GIF export caps the palette at 256 colors, which can alter smooth gradients.
  • You need editable curves for a cutter or a logo: this page cannot make them. Trace the image in Inkscape or LibreOffice Draw.
  • The GIF will not open: your browser has to be able to decode it. A file that cannot be read stops with "Image decode failed" instead of an SVG.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert GIF to SVG?

Does the SVG have vector shapes?

Why does the SVG look blocky when I zoom?

What happens to my animated GIF?

How do I get real vector paths from a GIF?

Is the transparent background kept?

Are the colors reduced or the picture resized?

Does the SVG work on a web page?

Can I do a batch of GIFs?

Is my GIF uploaded?