WebP to SVG Converter

Wrap a WebP picture in an SVG file, in your browser, without tracing it.

or drop files here

WE

WEBP Format

WebP image

An image format from Google that stores lossy or lossless pixels, with transparency and animation.

  • Lossy and lossless modes
  • Alpha transparency
  • Animation
  • image/webp
SV

SVG Format

Scalable Vector Graphics

An open W3C XML format that describes shapes, text and embedded images, drawn at any size.

  • Plain-text XML
  • Shapes, text or embedded images
  • Styled with CSS
  • image/svg+xml

How to convert WebP to SVG

Follow these steps to convert WEBP to SVG online.

    1

    Choose your WEBP 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 WebP to SVG

  • The SVG embeds your picture as a PNG; nothing is traced into paths.
  • It keeps the picture's pixel width and height and scales like a bitmap.
  • Transparency is kept inside the embedded PNG.
  • An animated WebP gives its first frame only.
  • EXIF, ICC profiles and XMP are not copied.

About WebP files

What is a WebP file?

Google announced WebP in 2010 as a new image format. For lossy pictures it borrows the key-frame method of VP8, a video codec from On2 Technologies that Google open-sourced in May 2010; a lossless mode came later. Either mode may include transparency and animation. Inside, the file is a RIFF container, and RFC 9649 describes it and registers the image/webp media type. Each side is limited to 16,383 pixels, and the file can store an ICC color profile plus Exif and XMP metadata.

Websites use WebP because it is compact: Google reports lossless files about 26% smaller than PNG and lossy ones about 30% smaller than JPEG. That is why a picture you save from a browser often arrives as .webp. Messaging apps use it as well, since WhatsApp's animated stickers are WebP files.

Programs that open WebP pictures

Windows

  • Photos and File Explorer: they display WebP after you install Microsoft's WebP Image Extension.

Windows and Mac

  • Photoshop: opens and saves WebP from version 23.2.

Windows, Mac and Linux

  • GIMP: has supported WebP since version 2.10.
  • ImageMagick: reads WebP, if your installation includes the format.
  • XnView MP: reads and writes WebP; free for private or educational use.

Web

  • Lossy WebP shows in Chrome from version 17, Edge from 18, Firefox from 65 and Safari from 14.

Mobile

  • On Android, WebP decodes from version 4.0, with lossless or transparent files from 4.2.1. iPhone Safari shows it from iOS 14.

WebP and SVG compared

  • Extensions and media types: .webp with image/webp; .svg with image/svg+xml.
  • What they store: WebP stores pixels. SVG is written in XML and describes shapes, text and embedded images, which means one SVG can hold drawn artwork or just a picture.
  • Scaling: a vector SVG stays sharp at any size. A pixel image does not, and neither does an SVG that merely wraps one.
  • Animation: WebP can hold timed frames. An SVG can animate through CSS or scripts, but that is a different mechanism.
  • Text: an SVG is plain text, so it can be edited in a text editor and searched, indexed and compressed. A WebP is a RIFF container.
  • Linked pictures: an SVG can point to a picture in another file and lose it when that file is unavailable. This page avoids that by embedding the picture inside the SVG itself.

This is what the conversion does. The page decodes the WebP and writes an SVG that contains a single image element: your picture, embedded as a base64 PNG, at the picture's own width and height. Nothing is traced into paths. The SVG opens wherever SVG opens, but it scales like the original bitmap, and its colors and shapes can't be edited as objects.

Other ways to convert WebP to SVG

These routes trace the picture into paths, which is a different job from the embedding this page does. dwebp does not read animated WebP files.

  • Inkscape with dwebp: run dwebp input.webp -o input.png, which writes a PNG. In Inkscape choose File > Import, select the image with the Selector tool, then choose Path > Trace Bitmap, set the options and click OK. Tracing is not a faithful copy, and color tracing makes one object per color, which can be hard to edit.
  • Potrace with dwebp: run dwebp input.webp -bmp -o input.bmp, which writes an uncompressed BMP, then potrace -s input.bmp -o output.svg. Potrace reads PBM, PGM, PPM and BMP, and -s selects the SVG backend.

Problems with WebP files

  • Renaming the file doesn't work: changing .webp to .svg leaves WebP data inside, and an SVG has to be XML text.
  • It won't open in an older program: install Microsoft's WebP Image Extension on Windows, or use a recent browser, GIMP or Photoshop.
  • A design tool rejects it: turn the WebP into a plain bitmap with the WebP to PNG converter, then bring that in.
  • An old browser shows a still: an older browser can show a still WebP yet lack animation support. On this page an animated WebP gives its first frame only.
  • The picture is too big for WebP: WebP limits each side to 16,383 pixels, so a file claiming more is damaged or not a WebP.
  • A decode failure message appears: the browser could not open the file. Try an up-to-date Chrome, Edge, Firefox or Safari, or fetch a fresh copy.
  • ImageMagick can't read it: a WebP decode or encode may be unavailable in a particular installation, so check its format list.

Frequently Asked Questions

Everything you need to know about our converter

Does converting WebP to SVG make a vector image?

Does the SVG link to my WebP or contain the picture?

Will the SVG keep my WebP's transparency?

Can I edit or recolor the SVG in a vector program?

What size is the SVG?

What happens to an animated WebP?

Is the WebP's metadata copied into the SVG?

Can I use this SVG as a logo or icon?

Can I convert several WebP files at once?

What name does the SVG download have?