SVG
Photo & Image/SVG Converter

SVG Converter

Convert SVG to PNG or JPEG — 100% in your browser

100% LOCAL2 formatsUp to 2048pxLive previewTransparent PNG
Saved Configs· Auto-save on
The CalculatorPage 1

SVG Source

Preview

Enter SVG code to preview

Click "Convert to Image" to convert & download

Data Source & Legal Disclaimer
Effective: Browser-native APIs — no expirationLast updated: 3 months agoUpdate: Manual review
Sources: MDN — Canvas API · MDN — File API

Processing uses browser-native Canvas and File APIs, so output can vary slightly between browsers. All processing runs locally in your browser.

See all data sources & update policy →
How it worksPage 2

Vector vs raster — what conversion actually does — illustrated

SVG stores a drawing as math — paths, shapes, coordinates — so it scales to any size with zero quality loss. PNG/JPEG store a fixed grid of pixels. Converting "rasterizes" the math onto a grid at the size you choose: bigger size → sharper edges but a larger file; smaller → compact but softer curves.

From curves to pixels
VECTOR (math)<circle cx="30" cy="30" r="30"/>64×64 PNG512×512 PNGsmooth edge, larger file

A circle is a single element in SVG — one line of math. Rasterized at 64px it shows stair-stepped edges; at 512px the same math yields smooth edges. That is why the size slider matters.

Pick the right size for the job

The same logo as SVG, converted at three sizes.

  1. 64 px:A favicon — tiny and fine, edges barely visible at icon size
  2. 512 px:A card thumbnail — the default sweet spot for crisp text
  3. 2048 px:Print or retina hero — max sharpness, biggest file
  4. PNG vs JPEG:PNG keeps transparency (needed over colored backgrounds); JPEG is smaller but fills transparency with a background
FAQ & detailsPage 3

Usage: fill in the fields and read the answer immediately — convert SVG to PNG or JPG with custom dimensions and transparent background. Everything runs locally; nothing is uploaded.

FreeToolHub SVG to PNG / JPEG is a free browser-based tool — convert SVG to PNG or JPG with custom dimensions and transparent background. No signup, no upload; everything runs locally in your browser.

About this tool

What is this tool?

Convert SVG to PNG or JPG with custom dimensions and transparent background. Live preview. Free, 100% browser-based, no signup.

2 formatsUp to 2048pxLive previewTransparent PNG

What Is the SVG Converter?

The SVG Converter rasterizes vector SVG source into PNG or JPEG bitmaps at any resolution from 64 up to 2048 pixels, entirely in your browser. Paste SVG markup straight into the code editor or upload an .svg file, and a live preview re-renders as you edit; if your source lacks a viewBox, one is generated automatically from its width and height attributes so scaling behaves correctly. Output is square at your chosen size, PNG keeps the background transparent, and JPEG encodes at a fixed 0.92 quality. The result panel reports exact dimensions, format, and encoded file size before you commit, making this a fast bridge from vector design to raster deliverable.

Who Should Use This Tool?

Designers exporting icons produce pixel-perfect raster versions at every common size without opening a desktop editor. Developers who receive SVG logos but need PNG fallbacks for email templates, Office documents, or older platforms convert in seconds. Content creators rasterize vector illustrations for platforms that reject SVG uploads — many social networks and CMS image fields still do. Presentation builders export at the 2048-pixel maximum for crisp full-slide graphics. Students and hobbyists experimenting with SVG markup get immediate visual feedback from the live preview, which exposes malformed markup before conversion. Because your SVG text never leaves the browser session, client-owned vector artwork stays confidential throughout the process.

How Does It Work?

(1) Provide SVG source: paste markup into the code box, click Upload SVG to load a file, or press Sample for a working example. (2) Set output size on the slider from 64 to 2048 pixels and choose PNG or JPEG. (3) Click Convert to Image. Your markup is parsed, injected with explicit width and height attributes, serialized, and rendered onto a canvas at the chosen resolution; PNG preserves transparency, while JPEG encodes at 0.92 quality. (4) Review the rendered result with its reported dimensions and file size, then download it — the file is named svg- plus your chosen size, such as svg-512x512.png — and a toast confirms each success.

PNG or JPEG — Which Output Should You Pick?

Choose PNG whenever the graphic contains transparency, sharp edges, text, or flat color — logos, icons, and UI elements. PNG is lossless, lines stay crisp at any export size, and the transparent background survives, which matters when a mark must sit cleanly over any backdrop. Choose JPEG only for continuous-tone content such as gradients or embedded photography, where its lossy compression at the fixed 0.92 quality yields visibly smaller files and the subtle artifacts disappear. One caveat: JPEG cannot store alpha, so transparent regions render black in JPEG output. For icons and logos the answer is nearly always PNG; reserve JPEG for SVG illustrations that behave like photographs.

Frequently Asked Questions

How do I convert SVG to PNG without losing quality?

SVG is math, so quality is decided entirely by the raster size you pick, not by the converter. Set the output width and height to at least the largest size you will display it at (or use the 300 DPI preset for print). PNG is lossless, so once rasterized at that size the pixels never degrade further — scaling up afterwards is what blurs edges.

Why does my transparent SVG get a white background when converted to JPEG?

JPEG has no alpha channel, so transparency must be filled with a solid color — the tool fills it white by default. If you need to keep transparency, choose PNG or WebP as the output format; both preserve the alpha channel exactly as the SVG defined it.

What DPI preset should I choose?

96 DPI matches standard screen rendering and is right for web assets; 72 DPI produces smaller legacy-size exports; 150 DPI suits typical document embedding; 300 DPI is the print standard. The presets compute pixel dimensions from the SVG's viewBox, so a 100x100 viewBox at 300 DPI exports at 313x313 pixels.

Does the SVG conversion upload my file to a server?

No. Conversion uses the browser's native Canvas and File APIs entirely on your device — your SVG source and the raster output never leave the browser. Output can vary very slightly between browsers because each has its own rasterizer, which is also true of every client-side converter.

Can I convert SVG to PNG with transparent background?

Yes. The tool preserves SVG transparency when converting to PNG. You can also set a custom background color (white, black, or any hex color). For JPG output, transparency is replaced with white since JPG does not support alpha channels. Set custom output dimensions or use the SVG's native size.

Does it support SVG with external fonts or linked images?

Embedded fonts and inline images convert correctly. External references (fonts loaded via @font-face URL, or <image href="external-url">) may not render if the external resources are blocked by CORS. For best results, embed all fonts and images inline in the SVG before conversion.

Related tools

Joke of the Day
Sep 17

Why did the fish get bad grades?

Free core, forever

Keep the Free Edition Free

No signups, no data sold. The core of every tool is free forever — the optional Pro plan adds batch processing, unlimited downloads, white-label exports and an ad-free experience.

Support me on Ko-fi— keep tools free

100% of proceeds go towards hosting & building more free tools.