Exporting Assets: SVG & PNG
Master SVG and PNG Export Techniques in Sketch
File Formats for Web Export
SVG
Vector-based format that scales perfectly on all screen resolutions. Best for logos, icons, and simple graphics with crisp edges.
PNG
Pixel-based format that supports transparency. Ideal for photos and complex graphics that need transparent backgrounds.
Export Workflow Overview
Prepare Assets
Select artboards or individual elements and make them exportable through the Inspector panel
Choose Format
Select SVG for vector graphics or PNG for pixel-based images with transparency needs
Configure Settings
Set appropriate resolution, background options, and file naming conventions
Export Files
Use File > Export to save assets with web-optimized settings to designated folders
Always check the background color option when exporting artboards. The transparent checkerboard pattern in the preview indicates areas that will be transparent in the final export, which may not match your intended design.
Artboard Export Checklist
Ensures you're exporting the correct design layout
Enables export options and preview functionality
Maintains design fidelity for client or developer review
Prevents unwanted transparency in final export
Optimizes color space and removes unnecessary metadata
Web graphics cannot use spaces in filenames. Use lowercase letters with dashes or underscores instead. The layer name becomes the filename, so rename layers before exporting.
SVG vs Pixel-Based Formats
PNG vs JPEG for Photos
| Feature | PNG | JPEG |
|---|---|---|
| Transparency Support | Yes | No |
| Photo Compression | Good | Excellent |
| File Size | Larger | Smaller |
| Web Compatibility | Universal | Universal |
Resolution Requirements
1x Resolution
Standard resolution for regular displays. Base size for your design elements and standard web viewing.
2x Resolution
Double resolution for Retina and hi-res screens. Automatically adds @2x suffix to filename for proper web implementation.
Use the folderName/fileName convention when naming layers. Sketch will automatically create folders during export, helping organize your assets efficiently.
Folder Organization Process
Select Multiple Assets
Use drag selection or Shift-click to select related graphics that should be grouped together
Rename with Folder Convention
Change layer names from feature-name to feature/name format for automatic folder creation
Make Exportable
Set all selected items as exportable and choose appropriate format (SVG for vectors)
Export All Assets
Use Export All option to process all prepared assets and create folder structure
PNG Format Comparison
| Feature | PNG-24 | PNG-8 |
|---|---|---|
| Colors Supported | Millions | 256 |
| File Size | Large | Small |
| Transparency | Yes | Yes |
| Quality | Highest | Good |
File Size Reduction Tools
ImageAlpha
Free application that converts PNG-24 to PNG-8 while maintaining transparency. Significantly reduces file sizes for web use.
Photoshop Export As
Built-in Photoshop feature (CC 2015+) that allows direct export as PNG-8 format with transparency support.
Key Takeaways

