SVG to PNG · JPG SVG to JPG: convert SVG to JPEG on a white or coloured background
Some forms, email tools and older systems only take JPG. Add the SVG, pick the size and background colour and download a JPG. Transparent areas are filled, because JPEG cannot store transparency, and everything runs in your browser.
- Files stay on your device
- White or any background
- 1×, 2×, 4× or exact width
Convert SVG to JPG
Add SVG files or paste code. Every file gets the same size, format and background settings; download one at a time or all as a ZIP.
Or paste SVG code
No SVG yet. Choose, drop or paste files, paste code, or try the sample.
JPG has no transparency, so a transparent background becomes white.
The SVG is drawn the way your browser shows it in an <img>: scripts in the file do not run, and external images, fonts and stylesheets linked from it are not loaded. Text set in a web font falls back to a system font unless it was converted to outlines.
What size the PNG comes out
Common ways the <svg> tag is written, and the PNG size this tool produces at 1× and 4×.
| Opening tag | Size taken from | 1× | 4× |
|---|---|---|---|
<svg width="24" height="24" viewBox="0 0 24 24"> | width and height | 24 × 24 | 96 × 96 |
<svg viewBox="0 0 800 600"> | viewBox | 800 × 600 | 3,200 × 2,400 |
<svg width="210mm" height="297mm"> | width and height | 794 × 1,123 | 3,175 × 4,490 |
<svg width="100%" height="100%" viewBox="0 0 512 512"> | viewBox | 512 × 512 | 2,048 × 2,048 |
<svg width="2in" viewBox="0 0 4 1"> | one side + viewBox ratio | 192 × 48 | 768 × 192 |
<svg> | default 300 × 150 | 300 × 150 | 1,200 × 600 |
Physical units are converted at 96 pixels per inch, as in CSS. Percentages need a container, which an image does not have, so the viewBox is used instead.
Version v1.0Updated Update history
What you get from the conversion
SVG is a recipe for drawing; PNG and JPG are grids of pixels. These are the choices that decide how the pixels come out.
Size
At 1× the image is as big as the SVG says: its width and height, or the viewBox if those are missing. 2× doubles both sides, which keeps logos crisp on phone and laptop screens. An exact width keeps the aspect ratio.
Background
PNG keeps transparent areas transparent, so a logo can sit on any colour. JPG cannot store transparency; the empty areas are filled with white or the colour you choose.
Sharpness
The vector is redrawn at the output size rather than enlarged from a small picture, so 4× is as sharp as 1×, only bigger.
What can change
Anything the SVG pulls from elsewhere: linked images, web fonts and CSS files. Scripts and animations do not run, so you get the first frame.
If the PNG is large, shrink it with the image compressor; flat logos usually compress well as PNG or WebP.
Convert SVG to PNG in four steps
The default settings (2×, PNG, transparent) suit logos and icons for websites and slides.
-
1
Add the SVG
Choose or drop .svg files, or paste the code from a design tool or icon library.
-
2
Pick the size
1× for the size set in the file, 2× or 4× for sharp results, or type an exact width or height in pixels.
-
3
Pick the format and background
PNG with a transparent background for logos; JPG on white for photos, email or systems that reject PNG.
-
4
Download
Download each image or all of them as one ZIP. Settings apply to every file in the list.
How the output size is worked out
The tool reads the opening <svg> tag, converts its units to pixels, then multiplies by your scale. It never has to guess from rendered pixels.
- Width and height both set: use them. Units follow CSS: 1in = 96 px, 1cm = 37.8 px, 1mm = 3.78 px, 1pt = 1.33 px, 1em ≈ 16 px
- Only one of them set: take the other from the viewBox ratio
- Neither set, or set in %: use the viewBox width and height as pixels
- No size and no viewBox: 300 × 150, the default size browsers give a replaced element
- The output is capped at 16,777,216 pixels (4096 × 4096, the canvas area limit of Safari on iPhone and iPad) and 16,384 px on the longest side; larger sizes are reduced in proportion
| Unit | Definition | Pixels |
|---|---|---|
| px | CSS pixel, 1/96 in | 1 |
| in | inch | 96 |
| cm | 1/2.54 in | 37.795 |
| mm | 1/10 cm | 3.7795 |
| pt | 1/72 in | 1.3333 |
| pc | 12 pt | 16 |
An A4 diagram and a 24 px icon
Two files that are typical of what people convert.
| File | Calculation | PNG size |
|---|---|---|
| Diagram, width="210mm" height="297mm" | 210 × 96 ÷ 25.4 and 297 × 96 ÷ 25.4, rounded | 794 × 1123 px at 1× |
| Same diagram for print at 300 DPI | Exact width = 210 ÷ 25.4 × 300 = 2480 | 2480 × 3508 px |
| Icon, width="24" height="24" | 24 × 4 and 24 × 4 | 96 × 96 px at 4× |
| Google Play app icon, 512 × 512 required | Exact width 512, height follows the ratio | 512 × 512 px |
Print shops ask for pixels at 300 DPI: multiply the size in inches by 300 and type that as the exact width.
Where SVG to PNG goes wrong
Most surprises come from things the SVG loads from elsewhere or from a missing size.
Text in a web font
If the SVG uses a font from Google Fonts or the designer's computer, the PNG falls back to a system font. Convert text to outlines before exporting the SVG.
Linked images
An SVG that points to a photo at a URL shows a blank space, because images inside an SVG used as a picture are not fetched. Embed them as data URIs.
Upscaling a small PNG instead
Enlarging a 64 px PNG in an editor makes it blurry. Go back to the SVG and convert it at the size you need.
JPG for a logo
JPG has no transparency and adds blur around sharp edges. Use PNG for logos and icons, JPG only where PNG is not accepted.
The same privacy-first approach in our analytics
This converter keeps files on your device. TapCub applies the same idea to analytics: collect what you need, keep personal data out.
Cookieless visitor ID
Visitors are told apart by a keyed hash of the site, a salt, the IP address and the browser type. Nothing is written to the browser and the IP is never stored.
Learn moreCompliance centre
Choose balanced or strict, switch on IP truncation for some regions only, set the geography level and retention.
Learn moreSafeguards
Encryption in transit, sensitive fields encrypted at rest, masking by role, export and deletion of one person's data.
Learn moreSVG to PNG questions
Still have a question?
Chat with the team behind TapCub — we usually reply within a few hours on business days.
Why is the background white in my JPG?
JPEG has no transparency. Wherever the SVG is transparent, the tool paints the background you choose: white by default, or any colour.
Is JPG or PNG better for an SVG logo?
PNG, in most cases: it keeps sharp edges and transparency. Use JPG when a system only accepts JPG or for illustrations with gradients and many colours.
What quality are the JPGs saved at?
Quality 92 out of 100, high enough that compression artefacts are hard to see around text and edges. Run the result through the image compressor if you need a smaller file.
Can I convert SVG to JPG at a set width?
Yes. Choose Exact width, type the pixels, and the height follows the SVG's aspect ratio.
Update history
New features, fixes and data refreshes for this tool, newest first.
-
· v1.0
LaunchedFirst release.
Missing something or found an error? Tell us — requests that come up often go into the next update. All tool updates
Analytics that keep personal data out
TapCub counts visits without cookies and never stores IP addresses, with a compliance centre for stricter regions.