- Home
- Tools
- Image Tools
- SVG to PNG
- SVG to JPG Converter
SVG to JPG Converter
Turn an SVG file or SVG code into a JPG at the size you choose. A JPG cannot be transparent, so you pick the background color.
What changes when the result is a JPG
The drawing is made at the size you set, exactly as for a PNG, and then saved as a JPEG at quality 92. Two things are different.
No transparency
A JPEG stores a color for every pixel and nothing else, so it cannot leave part of a picture open. Wherever the SVG draws nothing, the background color is filled in: white, unless you pick another.
Choose the color of the place the picture is going to. A logo for a dark page needs that dark color behind it. The edges of the shapes are blended with the background to keep them smooth, so a JPG made for a white page shows a pale rim when it is placed on any other color.
Compression made for photos
JPEG compression works best on photos, where colors change gradually. A drawing is the opposite: flat colors with hard edges. Next to those edges and around letters JPEG leaves faint smudges. At quality 92 they are small, but a PNG of the same drawing has none, and for a simple logo the PNG is often the smaller file too.
| PNG | JPG | |
|---|---|---|
| Background | transparent, or a color | always a color |
| Pixels | exactly as drawn | slightly changed by the compression |
| Suits | logos, icons, drawings, text | large illustrations with many colors and gradients |
So make a JPG when the place it is going to asks for one, such as an upload form that takes nothing else. In other cases a PNG is the safer choice.
The SVG to PNG page explains where the size of an SVG comes from, why 2× and 3× matter, and what can go missing from a drawing.