TapCub is live — analytics, insights and live chat, free on one platform

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.

Convert
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×.

    What size the PNG comes out
    Opening tagSize taken from1×4×
    <svg width="24" height="24" viewBox="0 0 24 24">width and height24 × 2496 × 96
    <svg viewBox="0 0 800 600">viewBox800 × 6003,200 × 2,400
    <svg width="210mm" height="297mm">width and height794 × 1,1233,175 × 4,490
    <svg width="100%" height="100%" viewBox="0 0 512 512">viewBox512 × 5122,048 × 2,048
    <svg width="2in" viewBox="0 0 4 1">one side + viewBox ratio192 × 48768 × 192
    <svg>default 300 × 150300 × 1501,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.

    Your files never leave this device: they are read and converted by your browser, and nothing is uploaded to TapCub or anyone else. To check, open your browser’s developer tools, go to the Network tab and run the tool: no file is sent.

    Version v1.0Updated Update history

    Read the result

    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.

    How to use it

    Convert SVG to PNG in four steps

    The default settings (2×, PNG, transparent) suit logos and icons for websites and slides.

    1. 1

      Add the SVG

      Choose or drop .svg files, or paste the code from a design tool or icon library.

    2. 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. 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. 4

      Download

      Download each image or all of them as one ZIP. Settings apply to every file in the list.

    How it works

    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
    CSS absolute units in pixels
    UnitDefinitionPixels
    pxCSS pixel, 1/96 in1
    ininch96
    cm1/2.54 in37.795
    mm1/10 cm3.7795
    pt1/72 in1.3333
    pc12 pt16
    Worked example

    An A4 diagram and a 24 px icon

    Two files that are typical of what people convert.

    From the SVG tag to pixels
    FileCalculationPNG size
    Diagram, width="210mm" height="297mm"210 × 96 ÷ 25.4 and 297 × 96 ÷ 25.4, rounded794 × 1123 px at 1×
    Same diagram for print at 300 DPIExact width = 210 ÷ 25.4 × 300 = 24802480 × 3508 px
    Icon, width="24" height="24"24 × 4 and 24 × 496 × 96 px at 4×
    Google Play app icon, 512 × 512 requiredExact width 512, height follows the ratio512 × 512 px

    Print shops ask for pixels at 300 DPI: multiply the size in inches by 300 and type that as the exact width.

    Common mistakes

    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.

    FAQ

    SVG 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.

    Changelog

    Update history

    New features, fixes and data refreshes for this tool, newest first.

    1. · 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

    See your data clearly. Find your growth.

    Every click, backed by data. Install one line of code and see your first numbers in a minute.

    No credit card · Free plans for analytics and chat · Cookieless analytics