Convert SVG to WEBP
Turn SVG images into WEBP. Drawn at the size the SVG declares, or at another width or height, with transparency kept, lossy at quality 90 unless lossless is set.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop SVG files on the dialor turn it to pick what to do
An SVG drawn as a WebP image.Transparency stays, and the size is the one the SVG declares unless you set another.
What you get
One WebP file, drawn from the SVG at the width and height the file declares. Transparent areas stay transparent. The result is lossy at quality 90 unless you turn on Lossless.
Size and rotation
Set Width (px) or Height (px) to draw the picture at another size. Give one and the other follows the aspect ratio. Give both and the picture can be stretched. Both accept 1 to 16383.
Set Rotate to turn the result clockwise by 90, 180 or 270 degrees.
Quality and file size
Quality runs from 1 to 100 and defaults to 90. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
Turn on Lossless to keep the pixels identical to what was drawn. The result is much bigger than a lossy one. Turn on Grayscale to change colors to shades of gray, which often makes the file smaller.
What changes
Fonts that are not installed are replaced by standard sans-serif, serif or monospace fonts. Text in the WebP can look different from the text in the SVG if it uses other fonts.
The WebP is a grid of pixels, so it does not stay sharp at any size the way the SVG does. To get a sharper picture at a larger size, set a bigger Width (px) or Height (px). To go the other way, use WEBP to SVG.
A file that cannot be parsed stops the conversion with
input_corrupted.
SVG and WEBP.What each format is, and the options this conversion takes.
- 01 · grayscale
Grayscale
Turns colors into shades of gray, which often makes the file smaller.
- 02 · height
Height (px)
The exact height of the result in pixels. The width follows the aspect ratio unless it is also given, in which case the picture can be stretched.
1 to 16383 - 03 · lossless
Lossless
Encodes without losing anything where the format can. The result is identical to the input in pixels or samples, and much bigger than a lossy one.
- 04 · quality
Quality
How much detail lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
1 to 100 default 90 - 05 · rotate
Rotate
Turns the result clockwise by a quarter, a half or three quarters.
90 · 180 · 270 - 06 · width
Width (px)
The exact width of the result in pixels. The height follows the aspect ratio unless it is also given, in which case the picture can be stretched.
1 to 16383
The formats
SVG
Scalable vector graphics in XML. Logos, icons and diagrams that stay sharp at any size.
- Extensions
- .svg .svgz
- MIME type
- image
/svg +xml - Kind
- Images
WebP
Google's web image format with lossy and lossless modes, alpha and animation. Smaller than JPEG and PNG.
- Extensions
- .webp
- MIME type
- image
/webp - Kind
- Images
In your code.The same SVG to WEBP conversion through the API, for your app or your agent.
$ cv convert photo.svg photo.webp$ cv convert photo.svg photo.webpQuestions.What people ask about SVG to WEBP.
Yes. Transparency is kept.
Yes. Turn on Lossless. The pixels are then identical to what was drawn, and the file is much bigger than a lossy one.
The file could not be parsed. The conversion stops with input_corrupted when that happens.
Only if they are installed. Fonts that are not installed are replaced by standard sans-serif, serif or monospace fonts.