Image Formats • • By Umar

SVG to PNG 512x512: Exact App Icon Export

512 by 512 is a fixed size that stores and browsers check for, not a scale. Type the number, keep the artwork square, and check the file before you upload it.

SVG to PNG 512x512: Exact App Icon Export

An SVG has no pixel size of its own, so a converter has to be told one. Most converters offer 1x, 2x, and 4x buttons, and those buttons multiply whatever size the SVG declares. That works when the declared size already matches the target. It does not work when the target is a fixed 512 by 512 pixels and the SVG declares 24, 200, or 1,024. The export then comes back at 48, 400, or 1,024 pixels, and the store or manifest rejects it or scales it in a way nobody chose.

Where 512 by 512 is actually required

The number turns up in three places. Google Play's icon specification asks for 512 by 512 pixels, a 32-bit PNG, sRGB colour, and a file no larger than 1,024 KB, as a full square. Play applies its own corner radius, 30 percent of the icon size, and its own shadow, so neither belongs in the file. A manifest for an installable web app needs a 192-pixel icon and a 512-pixel icon, according to MDN's installability guide for Chromium browsers. Discord's server settings recommend at least 512 by 512, while its Help Center minimum is 128 by 128.

Apple wants one 1024 by 1024 pixel master for the App Store, opaque and square; export both sizes from the SVG rather than enlarging the 512 file. The Apple touch icon is 180 by 180, used when someone adds a site to an iPhone home screen. Our complete SVG to PNG guide lists the full set of export sizes.

Destination Size Background
Google Play listing icon512 × 512, 32-bit PNG, sRGB, max 1,024 KBSolid colour; Play shows its own interface colour behind a transparent icon
PWA manifest, purpose "any"512 × 512, plus 192 × 192Transparency allowed
PWA manifest, purpose "maskable"512 × 512, plus 192 × 192Opaque, full-bleed, logo inside the safe zone
Discord server iconAt least 512 × 512 squareTransparency allowed; Discord crops the corners

Exact size, not a scale

In a browser converter, type 512 into the width field with the aspect-ratio lock on. For a square SVG the height becomes 512 on its own. In a design tool, type 512w in Figma's export panel, or set the artboard to 512 by 512 in Illustrator and export that artboard at 1x. The scale buttons stay useful for other jobs — 2x for a retina display size, 4x for print — but they answer a different question from "exactly 512 pixels wide".

On the command line, the same rule applies in different units. Some tools take pixels directly and some take density, in dots per inch. Density and pixels relate through the SVG's own width: required density equals target pixels divided by the SVG width in units, times 96. A 24-unit icon needs (512 ÷ 24) × 96, which is 2,048 DPI, to land on 512 pixels. Rendering at a high density and then resizing down to 512 gives smoother edges than rendering small and enlarging, because the downsampling blends the extra detail into the edge pixels.

Make the SVG square before you export

A 512 by 512 PNG is square, so the artwork has to be square first. Check the opening tag: viewBox="0 0 24 24" is square, viewBox="0 0 1200 800" is not. Three options exist for a rectangular SVG. Padding scales the artwork to fit inside the square and fills the rest — a 1200 by 800 drawing becomes 512 by 341. Cropping scales it to fill the square and cuts the overflow, which suits a photo and can cut a logo or its text. Stretching sets both sides to 512 independently, which turns circles into ovals. For an icon, padding is the safe default.

Whitespace inside the SVG causes a second failure. A viewBox wider than the artwork leaves empty space around it, so the logo comes out small inside a correctly sized 512 file. Fit the artboard to the artwork before exporting, keeping room so strokes and shadows are not clipped. In Inkscape's command line, --export-area-page exports the page, while --export-area-drawing crops to the drawing's bounding box, so a width of 512 then measures the cropped drawing, not the page.

The maskable safe zone, in pixels

A PWA icon marked purpose: "maskable" is handed to the operating system, which crops it into a circle, a squircle, or a rounded square. The maskable specification defines a minimum safe zone: a circle in the centre with a radius of 40 percent of the icon width. On a 512-pixel icon that circle is about 410 pixels across, leaving roughly 51 pixels on each side that a mask may remove. Everything the icon needs to say goes inside that circle. The background, a solid colour or a full-bleed pattern, reaches every edge.

Keep the two manifest purposes as separate entries. A padded maskable icon used as an ordinary "any" icon looks small, and a full-size logo declared maskable loses its edges to the first circle mask. Check the result in Chrome DevTools: Application panel, Manifest, tick "Show only the minimum safe area for maskable icons" in the Icons section. Maskable.app previews the same file under several Android shapes. Skip the old Lighthouse PWA check: Lighthouse removed its PWA category in version 12.0, in April 2024; DevTools is where the check lives now.

Transparent or solid? Decide per destination

The same 512 file cannot serve every destination, because the destinations disagree about transparency. Google's Play guidance says to pick a background colour and avoid transparency, since a transparent asset displays the background colour of the Play interface. Maskable icons and Apple touch icons need an opaque, full-bleed background: the mask or home screen fills whatever is empty, and the fill is not chosen by you. An ordinary PWA "any" icon and a Discord server icon may keep transparency. When one SVG feeds two destinations, export twice and name the files for where they go. A transparent PNG that shows black in one viewer is usually fine; the black is the viewer painting transparency over a dark surface, which our guide to black PNG backgrounds walks through in detail.

The export, tool by tool

Each tool below exports the same file. Set the size in pixels rather than a scale, and check the result with the steps in the next section before uploading.

Tool Exact-size setting
Browser converterType 512 in the width field, aspect lock on, background Transparent or a chosen colour. Format Studio's converter renders in the browser, so the file is not uploaded.
FigmaSelect the frame, Export panel, PNG, type 512w. For a transparent file, uncheck "Show in exports" on the frame's fill.
IllustratorSet the artboard to 512 × 512, then File > Export > Export for Screens, PNG, 1x. Draw a solid background rectangle on the artboard for an opaque file.
PhotoshopFile > Open the SVG and set 512 × 512 in the rasterize dialog, then File > Export > Export As, PNG.
CanvaMake a 512 × 512 custom-size design, place the SVG, Share > Download, PNG. Transparent background is a Pro feature.

Command-line tools need one extra care: several stretch by default when both a width and a height are given. With rsvg-convert, rsvg-convert -w 512 -h 512 --keep-aspect-ratio icon.svg -o icon.png keeps the proportions; without --keep-aspect-ratio, a non-square SVG is drawn stretched, because preserving the ratio is not the default. Inkscape takes pixels directly: inkscape icon.svg --export-type=png --export-filename=icon.png --export-width=512. ImageMagick takes density before the input file: magick -density 2048 -background none icon.svg -resize 512x512 icon.png for a 24-unit icon. In Python, cairosvg.svg2png(url="icon.svg", write_to="icon.png", output_width=512, output_height=512). With sharp in Node.js, sharp("icon.svg", { density: 300 }).resize(512).png().toFile("icon.png") re-renders the vector at the target width.

Check the file before you upload it

Four checks take a minute and catch most rejections. First, read the dimensions from the file itself: right-click, Properties, Details on Windows, or Get Info on a Mac, and confirm 512 by 512. Second, confirm the file size against the destination limit — 1,024 KB for Google Play. If it is over, run a lossless optimizer such as OptiPNG first; if still over, pngquant reduces the palette to 256 colours, which suits flat icons and can halve the file, but gradients may band, so compare at full size. Never fix a large file by exporting smaller than 512.

Third, open the PNG at 48 pixels wide, the size most people see in a launcher or server list, and confirm the mark still reads. Fine detail that looks crisp at 512 turns into a smudge at 48. Fourth, preview the mask in Maskable.app or the DevTools safe-area view, and confirm nothing the icon needs is outside the 410-pixel circle. For a manifest, the sizes string must match the file's real pixel size — Chromium reports an icon that fails to load or decode as an installability error in the same DevTools panel.

A short checklist for the next export

  1. Confirm the destination. Play, PWA "any", PWA "maskable", Discord, or Apple touch icon — each one sets the background rule.
  2. Square the SVG. Square viewBox, artboard fitted to the artwork, and a padding or crop decision for anything rectangular.
  3. Type 512. Pixel width in the converter, 512w in Figma, a 512 artboard in Illustrator, --export-width=512 in Inkscape.
  4. Place the logo inside the safe zone when the file is maskable: inside the 410-pixel circle, background reaching every edge.
  5. Verify the file. 512 by 512 in Properties, under 1,024 KB for Play, readable at 48 pixels, and the manifest sizes string matching the real file.

Keep the SVG as the master and export from it each time the icon changes. A PNG resized from another PNG only gets softer; the vector redraws cleanly at any size.

Umar

Founder, Format Studio

Umar builds Format Studio's free creator tools and writes the practical guides.

Frequently Asked Questions

How do I export an SVG as a 512x512 PNG?

Type 512 as the pixel width in your converter or design tool instead of using a scale button. For a square SVG, the height follows at 512. Check the exported file's properties afterwards — it must read 512 by 512 pixels, not 511 or 513. The article gives the exact setting for Figma, Illustrator, Inkscape, Photoshop, and the command line.

Why is my PNG 511x512 or 1024x1024 instead of 512x512?

Scale buttons multiply the SVG's own size, so they only land on 512 by accident. A 24-unit icon at 2x is 48 pixels; a 1024-pixel SVG at 1x stays 1024. A 511-pixel result comes from rounding when a fractional size is scaled. Type the pixel size directly, and for a non-square SVG decide whether to pad, crop, or stretch before exporting.

What is the maskable icon safe zone for a 512x512 PNG?

A circle in the centre of the icon with a diameter of 80 percent of the icon width — about 410 pixels across on a 512-pixel icon, leaving roughly 51 pixels on each side that a mask may cut away. Keep the logo inside that circle and fill the whole square with an opaque background. Test it in Chrome DevTools under Application, Manifest, with "Show only the minimum safe area for maskable icons" ticked, or in Maskable.app.

Should a 512x512 app icon have a transparent background?

It depends on the destination. Google Play asks for a background colour rather than transparency, and transparent Play icons show the Play interface colour behind them. Maskable PWA icons and Apple touch icons must be opaque and full-bleed. An ordinary PWA "any" icon may keep transparency. Export two versions when one file has to serve two destinations.

Do I need a 512x512 PNG for the Apple App Store?

No. Apple wants a single 1024 by 1024 pixel master for the App Store, with no transparency and no rounded corners. Export 512 by 512 for Google Play and for a PWA manifest; make the 1024 version from the same SVG or master artwork instead of enlarging the 512 file.

What do I put in the PWA manifest for a 512x512 icon?

List the file in the icons array with src, type image/png, sizes 512x512, and a purpose. Chromium needs 192 and 512 pixel icons to offer installation. Keep "any" and "maskable" as separate entries pointing at separate files where the artwork differs, because a padded maskable icon looks small when used without a mask, and a full-size logo gets cropped when masked.

Export It at Exactly 512 × 512

Drop the SVG in, type 512 as the width, pick Transparent or a solid background, and download the PNG — all in your browser, nothing uploaded.

Open Image Converter →