How to Reduce Figma File Size & Fix 4000px+ Canvas Bloat
When a Figma file hits the 60% or 100% browser memory banner, the culprit is rarely vector paths—it is almost always oversized raster image fills pasted into small UI frames.
Why Shrinking a Layer in Figma Does Not Shrink Memory
When you paste a 4500×3000px stock photo or raw Retina full-page screenshot into a 320×200px card, Figma stores the full-resolution source bytes inside the document and decodes the image into uncompressed RGBA textures (4 bytes per pixel) in WebAssembly memory.
Step-by-Step: Auditing Oversized Image Fills
- Deduplicate by
imageHashfirst: If one 4000px image is reused across 20 component instances, Figma stores one encoded source image—but you must check the largest rendered bounding box among all 20 instances before downsampling so no instance turns blurry. - Flag 4000px+ monster fills and >1.5× target density fills: Any fill larger than
4000pxon either edge, or larger than1.5 × (maxRenderedSize × 2)for 2× Retina (ignoring tiny icons under 150 KB), is a high-ROI cleanup target. - Preserve alpha transparency and crop transforms: Opaque photos can be re-encoded as high-quality JPEG, while transparent UI screenshots must stay PNG. Note that Figma's
figma.createImage()API accepts PNG, JPEG, and GIF bytes—not WebP or AVIF. - Never upscale and keep native Undo: Only replace a fill if the downsampled output is genuinely smaller in bytes and dimensions, and mutate via Figma's native fill API so
Cmd/Ctrl + Zworks cleanly.
Quick Reference: Recommended Target Fill Dimensions
| UI Slot (Rendered Size) | 2× Retina Target | Uncompressed RGBA RAM |
|---|---|---|
| Avatar / Thumbnail (64×64) | 128×128 px | 0.06 MB |
| Product Card (320×200) | 640×400 px | 1.02 MB |
| Feature Split (600×400) | 1200×800 px | 3.84 MB |
| Hero Banner (1440×720) | 2880×1440 px | 16.59 MB |
Automate the Entire Audit with FigSquash
FigSquash's Canvas Bloat Auditor runs 100% locally inside Figma. The Free tier gives you a complete page/selection health scan with exact wasted MB and 1-click Zoom to Layer. Pro ($19 one-time) and Team ($59 one-time) unlock the 1-Click Canvas Bloat Downsampler (1x/2x/3x) plus unlimited batch WebP/AVIF/PNG/JPG/SVG exports.
Need to compress exported assets right now? Jump to our Free Batch WebP Compressor or read our Figma WebP & AVIF Export Guide.
Squash Canvas Bloat in 1 Click — $19 Once
Zero cloud uploads. Native Cmd/Ctrl+Z undo. Offline Ed25519 license verification.