SVG to PNG Converter: Batch Scale & Recolor
Convert SVGs to high-resolution PNGs with infinite scaling. Features batch processing, CSS color injection, DPI control, and device-specific presets (iOS, Android).
About
The core problem with most vector conversion tools is that they rasterize the image after fixing the dimensions, rather than before. This results in the dreaded "fuzzy edge" artifacting when you attempt to use the resulting PNG on high-density displays. Accuracy in this conversion process is non-negotiable for professional workflows.
This tool operates differently. It parses the raw XML of the SVG, injects scaling instructions at the source level, and renders the vector data directly onto a high-precision canvas. This allows for Scale factors of 10x or even 100x without a single lost pixel. Furthermore, it addresses the common developer friction of color management by allowing you to inject CSS overrides (changing fill or stroke) into the batch before processing.
Whether you are generating assets for an iOS bundle requiring @3x density or preparing a logo for print at 300 DPI, this engine ensures mathematical precision in the final raster output.
Formulas
To calculate the required pixel dimensions P for a target physical size L (in inches) at a specific print resolution D (DPI), use the fundamental rasterization formula:
When dealing with screen density scaling (e.g., Retina displays), the output dimension Wout is derived from the base vector width Wbase and the density multiplier M:
Reference Data
| Platform / Standard | Asset Type | Dimensions (px) | Aspect Ratio |
|---|---|---|---|
| iOS (Apple) | App Icon (iPhone) @3x | 180 × 180 | 11 |
| iOS (Apple) | App Icon (iPad Pro) @2x | 167 × 167 | 11 |
| Android | Play Store Icon | 512 × 512 | 11 |
| Android | Adaptive Icon (Foreground) | 432 × 432 | 11 |
| Web Standard | Favicon (Modern) | 196 × 196 | 11 |
| Social Media | OpenGraph Image | 1200 × 630 | 1.911 |
| Video | YouTube Thumbnail | 1280 × 720 | 169 |
| Print (A4) | Full Page @ 300 DPI | 2480 × 3508 | 1√2 |