You can share production-ready assets with developers for use in websites or mobile applications. You can export design assets from XD to PNG, SVG, JPG, and PDF formats, optimized for deployment on iOS, Android, or the web.
To export all artboards: Ensure that no artboard or asset is selected. You can click the pasteboard (gray area around the artboards) to deselect objects or artboards.
To export specific assets or artboards: Select the asset or the artboard that you want to export. To select an artboard, click the artboard title, (Cmd/Ctrl + click) its background, or double-click its background. Alternatively, open the Layers panel and select the artboards you want to export.
To export multiple objects as a single asset, you must group the objects before you export them.
When you export to PNG, XD exports all associated resolutions for that object. You need to choose the format you designed at to get the correct export sizes.
For example, if you designed at 1x, a 10 x 10 rectangle is exported at 10px x 10px, 20px x 20px, and 30px x30px. If you designed at 2x, a 10 x 10 rectangle is exported at 5px x 5px and 15px x 15px.
When exporting assets as PNG, you also have to choose which platform you want them to be exported for - Design, Web, iOS, or Android.
iOS has three export sizes. Assets are exported at 1x, 2x, and 3x resolutions.
The default artboard sizes for various iOS devices assume that you are designing at 1x, so if you’ve used the defaults, leave your export at 1x. However, you can opt to design at 2x too by doubling the width and height of your artboard.
Use the following infographic to understand how your design assets are exported for iOS when you design at 1x and 2x.
Assets are optimized and exported for the following Android screen densities:
- ldpi - Low density (75%)
- mdpi - Medium density (100%)
- hdpi - High density (150%)
- xhdpi - Extra high density (200%)
- xxhdpi - Extra extra high density (300%)
- xxxhdpi - Extra extra extra high density (400%)
Use the following infographic to understand how your design assets are exported for Android when you design at different resolutions.
If an image is exported as a linked image, a bitmap image is stored separately with a reference to it in the SVG file.
When you export assets (such as photos) as JPG, you can set the quality level of the exported JPG according to your needs. Choose any of the percentage options in the Quality drop-down list, navigate to the destination folder, and click Export.
Single PDF file
You can select multiple artboards or assets, and export them as a single PDF file. Multiple artboards or assets are placed in separate pages and a single PDF is created.