Convert SVG to JPG

Turn SVG images into JPEG. Drawn at the size the SVG declares, or at another width or height, on a white background, or the color background gives, at quality 90 unless asked otherwise.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop SVG files on the dialor turn it to pick what to do

A JPG picture of your SVG.The drawing is rendered on a white background at quality 90.

  1. What you get

    One JPG file drawn from the SVG. It uses the size the SVG declares, unless you set Width (px) or Height (px).

    The background is white by default. JPG cannot be transparent, so transparent areas are filled. Set Background to a color written as #RRGGBB to fill them with another color.

  2. What changes

    The SVG is vector, and the JPG is a grid of pixels. The picture no longer scales without losing sharpness. JPG compression is lossy, so some detail is lost. To go back to vector, see JPG to SVG.

    Fonts that are not installed are replaced by standard sans-serif, serif or monospace fonts. Text may look different from the SVG on your screen.

  3. Size and look

    Set Width (px) or Height (px) to an exact size from 1 to 20000. If you give only one, the other follows the aspect ratio. If you give both, the picture can be stretched.

    Set Quality from 1 to 100. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.

    Turn on Grayscale to turn colors into shades of gray, which often makes the file smaller. Set Rotate to turn the result clockwise by 90, 180 or 270 degrees.

  4. Failures

    If the SVG cannot be parsed, the conversion stops with input_corrupted.

SVG and JPG.What each format is, and the options this conversion takes.

  1. 01 · background

    Background

    The color that fills transparent areas, for formats such as JPEG that cannot be transparent. Write it as #RRGGBB, such as #ffffff for white.

    default #ffffff
  2. 02 · grayscale

    Grayscale

    Turns colors into shades of gray, which often makes the file smaller.

  3. 03 · 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 20000
  4. 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
  5. 05 · rotate

    Rotate

    Turns the result clockwise by a quarter, a half or three quarters.

    90 · 180 · 270
  6. 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 20000

The formats

From · SVG

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
To · JPG

JPEG

Lossy photo compression that every device and browser opens. Small files, no transparency.

Extensions
.jpg .jpeg .jfif .jpe
MIME type
image/jpeg
Kind
Images

In your code.The same SVG to JPG conversion through the API, for your app or your agent.

terminal
$ cv convert photo.svg photo.jpg
$ cv convert photo.svg photo.jpg

Questions.What people ask about SVG to JPG.

01OF 04

No. JPG cannot be transparent. Transparent areas are filled with white, or with the color you set in Background.

Yes. Set Width (px), Height (px) or both. With only one, the other follows the aspect ratio.

Fonts that are not installed are replaced by standard sans-serif, serif or monospace fonts.

The file could not be parsed. The conversion stops with input_corrupted when that happens.

More conversions.Other ways in and out of SVG and JPG.