SVG to JPG Converter

Drop SVG files, choose a scale or an exact width, a JPG quality and a background colour, and download JPG images rendered on your own device.

  • Free
  • No account
  • Runs in your browser
  • Nothing uploaded
SVG to JPG ConverterNothing uploaded

Runs entirely in your browser — your input is never uploaded, logged, or stored.Privacy policy

What is SVG to JPG Converter?

This SVG to JPG converter turns vector SVG files into JPG images at the resolution you choose, inside your browser. It is for anyone who needs a raster version of a logo, icon or illustration — for a website, a document, an avatar or software that does not accept SVG — and wants it sharp rather than stretched.

An SVG is resolution-independent: it describes shapes, so it has no fixed pixel size of its own. The JPG, by contrast, is a fixed grid of pixels of exactly the size you ask for, and once it is made it cannot be enlarged without going soft. That is the trade you are making, and it is why the size choice matters. A larger size gives a sharper JPG and a larger file; a smaller size is lighter but has fewer pixels to show fine detail.

To decide the size, the tool reads the root <svg> element. If width and height are both set, those are used, with units converted to CSS pixels (1in = 96px, 1cm ≈ 37.8px, 1pt ≈ 1.33px, 1em counted as 16px). If only one is set and there is a viewBox, the other follows the viewBox's aspect ratio. If they are missing or percentages, the viewBox width and height are used. If there is nothing at all, the SVG is treated as 300 × 150 — the default size browsers give any replaced element with no intrinsic size — and the result says so, because anything drawn outside that area is cut off.

You then pick the output size: 1× (the SVG's own size), 2×, 4×, or a custom width in pixels with the height following the aspect ratio. Instead of rendering the SVG at its own size and stretching the pixels — which is why many converters give soft results — the tool rewrites the SVG's width and height to the target size (adding a viewBox if the file has none, so the drawing scales with it) and lets the browser rasterise the vector directly at that resolution. A 24 × 24 icon at 4× is drawn as a crisp 96 × 96 image.

Two things are specific to JPG. First, it is lossy: the encoder discards fine detail to shrink the file, and the Quality slider (92 out of 100 by default, where the loss is very hard to see) controls how much. Second, JPG has no transparency, so anywhere the SVG is see-through becomes the Background colour — white by default — or the colour you pick. This is exactly right for a logo on a white page, and wrong if you need the cut-out shape to stay transparent: in that case use SVG to PNG.

The SVG is rendered the way browsers render any SVG used as an image: scripts inside it do not run, and external resources are not loaded. That second point is the most common surprise. An SVG that uses a web font from Google Fonts, or links to a picture by URL, will come out with fallback text and a missing picture. The tool checks for links that point at an absolute or protocol-relative URL and warns you about those; a relative reference may not be caught. The fix is to embed fonts and images in the SVG (as data: URLs) or convert text to paths in your editor. Text may also render differently simply because the font named in the SVG is not installed on your device, in which case the browser substitutes one.

The output can be up to 16,384 px on a side and 100 megapixels. Everything happens on your device — the file is read, drawn and encoded in the page, and you can confirm in your browser's developer tools (Network tab) that no request carries it.

1. The file's first bytes are checked to confirm it is an SVG (an <svg> root element), whatever its name. 2. The root element's width, height and viewBox are read. Size = width × height if both are usable; one side plus viewBox → the other side from the viewBox ratio; neither → viewBox size; nothing → 300 × 150. 3. Output width = chosen width, or natural width × scale (rounded); output height = output width × natural height ÷ natural width, rounded, minimum 1 px. The size must fit within 16,384 px per side and 100 megapixels. 4. The root element's width and height are replaced with the output size; if there is no viewBox, one is added from the natural size so the content scales. 5. The browser draws the rewritten SVG as an image onto a canvas of exactly that size, after filling the canvas with the Background colour — JPG has no alpha channel, so transparency must become a solid colour (white by default). 6. The canvas is encoded as JPEG at the chosen quality (1–100, default 92) and named after the original with a .jpg extension.

SVG → PNG vs SVG → JPG
 SVG → PNGSVG → JPG
TransparencyKept — the cut-out shape stays see-throughLost — transparent areas become the background colour
CompressionLossless — every pixel kept exactlyLossy — fine detail discarded to shrink the file
File sizeLargerSmaller, and you control it with Quality
Best forLogos, icons, diagrams, anything on a coloured backgroundPhotographs, web images, anywhere a flat opaque backdrop is fine
Text and thin linesCrisp at any sizeVery good at quality 90+, faint artefacts at low quality

Worked examples

  • logo.svg with width="200" height="100" at 2× → logo.jpg, 400 × 200 px, on a white background at quality 92.
  • icon.svg with width="24" height="24" at 4× → icon.jpg, a 96 × 96 px image, drawn sharp at that size rather than enlarged from 24 px.
  • A transparent badge.svg converted to JPG → every see-through area becomes the Background colour: white by default, or the colour you pick.
  • An SVG with no width, height or viewBox at 1× → 300 × 150 px, with a note that the browser default size was used, so anything drawn outside it is cut off.

How to use SVG to JPG Converter

  1. Click "Choose SVG files" or drop them onto the box — up to 50 at once.
  2. Choose a "Size" (1×, 2×, 4× or Custom width) and set the "Quality" (92 by default; lower gives a smaller file with more artefacts).
  3. Pick the "Background" colour that fills the SVG's transparent areas — white unless you change it.
  4. Click "Convert to JPG".
  5. Check the pixel size next to each file, then download each image or click "Download all (.zip)".

Common errors

  • The background is white (or a colour) where the SVG was transparent — JPG has no transparency, so see-through areas take the Background colour. Convert to PNG instead if the cut-out must stay transparent.
  • The JPG looks slightly soft or shows faint smudges around edges — JPG is lossy. Raise the Quality towards 100, or choose a larger size so the details are drawn at more pixels.
  • Text shows in the wrong font, or an image inside the SVG is missing — the SVG links to an external font or image, or names a font that is not installed on this device. Browsers never load external resources for an SVG drawn as an image; embed them or convert text to paths.
  • The picture is cut off or tiny — the SVG has no width, height or viewBox, so it was treated as 300 × 150. Add a viewBox in your editor for correct sizing.
  • "Output width must be a whole number of pixels from 1 to 16,384." — type a whole number in that range.
  • "The output would be 15000 × 15000 pixels — more than a browser can safely draw (100 megapixels, 16,384 px per side). Choose a smaller size." — choose a smaller scale or width.
  • "Scale must be between 0.1× and 32×." / "Quality must be between 1 and 100." / '"red" is not a colour. Use a hex value like #ffffff.' — correct the option and try again.
  • "This file has no <svg> element, so there is nothing to convert. Check that it is a real SVG image." or '"x.svg" is actually a PNG file, not SVG.' — the file is not a real SVG; a PNG or JPG renamed to .svg stays a raster image.
  • "… could not be drawn — the SVG may contain an error your browser rejects." — the markup was rejected (for example malformed XML). Open the file in a browser tab to check it displays.

FAQ

How do I convert SVG to JPG?

Drop the SVG into the box above, choose a size and quality, and click "Convert to JPG". The conversion runs in your browser and the JPG downloads straight away — nothing is uploaded.

Why is there a white background behind my JPG?

JPG has no transparency, so anywhere the SVG was see-through has to become a solid colour. That colour is the Background setting — white by default. Change it to any colour you like, or convert to PNG if the cut-out shape must stay transparent.

What size should I choose for a high-resolution JPG?

Pick 2× or 4×, or type a custom width such as 2048. The SVG is rasterised directly at that size, so the JPG is genuinely detailed rather than an enlarged small image. Bigger sizes give sharper results and larger files.

What quality should I use?

92 is the default and the loss is very hard to see. 75–85 makes a noticeably smaller file with little visible change in most images; for fine text and thin lines stay at 90 or above.

Why are the fonts or images wrong in my JPG?

Browsers never load external fonts, stylesheets or images for an SVG rendered as an image, so linked web fonts fall back to a default font and linked pictures disappear. A font named in the SVG that is not installed on your device is substituted too. Embed them in the SVG as data: URLs or convert text to outlines before converting.

What size will the JPG be if the SVG has no width and height?

The tool uses the viewBox if there is one. With no width, height or viewBox at all the SVG is treated as 300 × 150 px — the browser default — and the tool says so, because anything drawn outside that area is cut off.

Is it safe to convert SVG files here?

Yes. The SVG is drawn as an image, so any script inside it does not run, and the file is converted in your browser without being uploaded.

Can I convert several SVG files to JPG at once?

Yes, up to 50 per batch, all with the same size, quality and background settings. Download them individually or as one ZIP file.

G

Prefer AllUtil on Google

One click adds AllUtil to your Google preferences. You'll see our tools highlighted with a Preferred badge in Search and AI answers.

2× more likely to clickWorks in AI Overviews