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

Free tool · Files SVG to PNG: convert vector files to sharp images in your browser

Drop in logos, icons or diagrams as .svg files, or paste the SVG code. Pick a scale or an exact width and download PNG with a transparent background, or JPG on white. Your browser does the drawing; nothing is uploaded.

  • Files stay on your device
  • Batch convert, ZIP download
  • 1×, 2×, 4× or exact width

Convert SVG to PNG

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.

    How do I convert SVG to PNG?

    Add the SVG file or paste its code, choose a size and click Download. The PNG is drawn by your browser and saved straight away.

    How do I get a high-resolution PNG from an SVG?

    Choose 2× or 4×, or type an exact width. The vector is redrawn at that size, so it stays sharp. The only limit is about 16.7 megapixels per image.

    Does the PNG keep a transparent background?

    Yes, with the background set to Transparent. Pick White or a custom colour if the image will sit on a background you know.

    Are my SVG files uploaded?

    No. They are read and converted by your browser; you can watch the Network tab in developer tools and see that no file is sent.

    Why does the text look different in the PNG?

    The SVG uses a font that is not available to the browser when it draws the file as an image, usually a web font. Convert the text to paths in your design tool, or install the font locally.

    My SVG has no width or height. What size will the PNG be?

    The viewBox is used as the size in pixels, so viewBox="0 0 800 600" gives 800 × 600 at 1×. With no viewBox either, it is 300 × 150, the default browsers use.

    Can I convert many SVG files at once?

    Yes. Add up to 100 files and download them as one ZIP; the same size, format and background apply to all.

    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