How the size is worked out
The tool reads the SVG's width, height and viewBox. Lengths in physical units are turned into pixels at the CSS rate of 96 px per inch:
| Unit | Pixels |
|---|---|
| in | 96 |
| cm | 37.80 (96 ÷ 2.54) |
| mm | 3.78 (96 ÷ 25.4) |
| pt | 1.333 (96 ÷ 72) |
| pc | 16 |
| px or no unit | 1 |
If only one side is given, the other follows the viewBox proportions. If neither is given, the viewBox size is used, and with no viewBox either, the browser default of 300 × 150 applies. Percentages count as missing.
Worked example
An SVG says width="2in" height="1in", which is 192 × 96 px. The suggested output width is twice that, 384 px, giving 384 × 192, ready for high-density screens. Type 1000 and you get 1000 × 500.
The 8,192 px cap
The longest side is limited to 8,192 px, and the other side shrinks to match. A tall 1:4 icon at a width of 4000 would be 4000 × 16,000, so it is scaled by 8192 ÷ 16000 = 0.512 to 2048 × 8192. The status line tells you when this happens.
What does not render
- Images, fonts, style sheets and scripts linked from outside the SVG are not loaded, for security. Images embedded as data inside the file do work.
- Text is drawn with fonts installed on your device. For an exact match, convert text to outlines in your design app before exporting.
- Animations are captured as a single frame.
For crisp results, export at twice the size the image will be shown, or at the exact size a store or form asks for.