# Convert SVG to PNG

Convert SVG vector graphics to PNG raster format with customizable resolution, quality, and transparency options

> Canonical page: https://elysiatools.com/en/tools/svg-to-png

- **Category:** Media

- **Keywords:** svg, png, convert, vector, raster, image, format, resolution, quality, transparency

## Overview

Easily convert your SVG vector graphics into high-quality PNG raster images with precise control over resolution, compression, and transparency settings.

## Inputs

- **SVG File** (file): Select an SVG file...
- **Output Width** (number): Output width in pixels (optional)
- **Output Height** (number): Output height in pixels (optional)
- **Render Density (DPI)** (number): Rendering density for SVG (DPI)
- **PNG Compression Level** (range): PNG compression level (0=fastest/largest, 9=slowest/smallest)
- **Adaptive Filtering** (checkbox): Enable adaptive filtering for better compression
- **Preserve Transparency** (checkbox): Keep SVG transparency in output PNG
- **Background Color** (color): Background color (if transparency is disabled)

## When to use

- Preparing vector icons or logos for web use where PNG compatibility is required.
- Adjusting the resolution and DPI of SVG files for print or high-resolution display.
- Optimizing image file sizes by applying custom compression levels and adaptive filtering.

## How it works

- Upload your SVG file using the file selector.
- Adjust output settings such as width, height, and render density (DPI) as needed.
- Configure transparency, background color, and compression levels to suit your project requirements.
- Click convert to generate and download your optimized PNG file.

## Use cases

- Converting vector logos into standard PNG format for email signatures and social media profiles.
- Generating high-resolution raster assets from SVG illustrations for presentations.
- Batch-optimizing web graphics by converting SVGs to PNGs with specific compression settings.

## Frequently asked questions

### Can I keep the background transparent?

Yes, ensure the 'Preserve Transparency' checkbox is enabled to maintain the transparent background of your original SVG.

### How do I change the image size?

You can specify the desired output width and height in pixels before starting the conversion.

### What does the compression level do?

A higher compression level (up to 9) results in a smaller file size, while a lower level (0) provides faster processing with a larger file size.

### Can I add a solid background color?

Yes, disable 'Preserve Transparency' and select your preferred background color using the color picker.

### Is there a limit to the file size I can upload?

Yes, the tool supports SVG files up to 10MB.

## Related tools

- [Image Watermark Opacity](https://elysiatools.com/en/tools/image-watermark-opacity): Add watermarks with custom opacity to images, supporting both text and image watermarks with advanced opacity controls
- [PDF Header/Footer Snippets](https://elysiatools.com/en/tools/pdf-header-footer-snippets): Convert HTML to PDF with reusable logo, title, and date snippets
- [SVG Favicon Generator](https://elysiatools.com/en/tools/svg-favicon-generator): Turn an SVG or raster logo into a complete favicon pack with ICO, PNG variants, Apple touch icon, and web manifest
- [Data URI Generator](https://elysiatools.com/en/tools/data-uri-generator): Convert files into Data URIs (Base64 or percent-encoded) for inlining images, fonts, and assets directly into HTML, CSS, or Markdown
- [Image Watermark Corner](https://elysiatools.com/en/tools/image-watermark-corner): Add corner watermarks to images with customizable positioning, size, opacity, and multiple corner options
- [Image Watermark Diagonal](https://elysiatools.com/en/tools/image-watermark-diagonal): Add diagonal watermarks to images with customizable angle, size, opacity, and positioning across the image
- [Image Watermark Image](https://elysiatools.com/en/tools/image-watermark-image): Add image watermarks to images with customizable position, size, opacity, and rotation
- [Image Watermark Tile](https://elysiatools.com/en/tools/image-watermark-tile): Add tiled watermarks to images with customizable spacing, size, opacity, and pattern options

## Samples

- [XML Samples](https://elysiatools.com/en/samples/xml-samples): XML (eXtensible Markup Language) format examples from simple to complex structures
- [XML Viewer Samples](https://elysiatools.com/en/samples/xml-viewer-samples): Sample XML files (bookstore, RSS feed, SVG) for the in-browser XML Viewer
- [PNG Samples](https://elysiatools.com/en/samples/png-samples): Sample PNG images in different aspect ratios and resolutions
- [SVG Samples](https://elysiatools.com/en/samples/svg-samples): Scalable Vector Graphics (SVG) samples demonstrating various SVG features and techniques

## Related content

- [SVG, Favicon, and Icon Asset Workflow Tools](https://elysiatools.com/en/hubs/svg-favicon-icon-workflows): Build favicon packs, optimize SVG assets, convert icons across ICO, PNG, JPG, WebP, and SVG, and prepare web-ready image assets in one hub.
- [Image Format Conversion and Animated Export Tools](https://elysiatools.com/en/hubs/image-convert): Compare image format converters for JPG, PNG, GIF, AVIF, WebP, TIFF, ICO, base64, and animation-friendly exports in one hub.
- [Text Case, Encoding, and Normalization Conversion Tools](https://elysiatools.com/en/hubs/text-convert): Compare text case conversion, character-width conversion, encoding conversion, quoted-printable handling, and inline text normalization tools in one hub.
- [XML Conversion, Mapping, and XPath Tools](https://elysiatools.com/en/hubs/xml-convert): Curated tools for XML conversion, mapping, merging, and XPath extraction in one hub.
