XCAssets Generator
Turn SVGs and PNGs into an Xcode Assets.xcassets catalog with @1x, @2x and @3x slices, Dark Mode pairs and Contents.json. Download as a ZIP with SwiftUI and UIKit snippets.
- Xcode Catalog
- Retina 1x · 2x · 3x
- Contents.json
How to build an Xcode asset catalog from images
XCAssets Generator turns a folder of SVGs and PNGs into a ready-to-drop Assets.xcassets catalog for Xcode. Every image is exported at @1x, @2x and @3x, and pairs can be wired up as Light/Dark variants.
It writes the Contents.json files for you and includes SwiftUI and UIKit code snippets, so adding the catalog to an app is a drag and drop. When to use it: use XCAssets Generator whenever you are adding new UI icons, badges or illustrations to an iOS or macOS project and want clean Retina slices without manually creating folders and JSON metadata. The conversion runs entirely in your browser.
Step by step
- Drop in the SVG or PNG images you want in the catalog.
- Set any dark-mode pairs and image names.
- Download the ZIP with the Assets.xcassets folder and code snippets.
- Drag the catalog into your Xcode project.
Questions
Which image formats can I use as input?
SVG for vectors, and PNG for bitmaps. Both are converted to the three retina scales automatically.
Does it support Dark Mode?
Yes. Give a dark variant of an image and the tool wires the pair up in Contents.json so iOS picks the right one automatically.
Are SwiftUI and UIKit usage snippets included?
Yes. The downloaded ZIP includes ready-to-copy SwiftUI Image and UIKit UIImage snippets matching your asset names.