All guides and resources

SVG vs PNG for UI icons

Choose a format for small interface controls, game assets, and image-only tools.

Browse the icon libraryTry the UI examples

Use SVG for flexible interface artwork

SVG preserves vector paths. It is easy to scale and works well for buttons, adaptive layout, and monochrome theming. An inline SVG can inherit the text color, which helps keep light and dark modes consistent.

Use PNG where an image is the native asset

PNG preserves a fixed raster size with transparency. It works well in tools that expect textures or static images. Pick a size close to the final display size, or use a larger export for a high-density screen. For Grid pixel art, prefer integer scaling where the UI allows it.

Decide with a real screen

Open the same free icon at 24 and 48 px in the inspector, then export both formats. Place them in your actual control and compare their edge clarity and contrast on the final background.