Trim Whitespace

Trim image whitespace for cleaner layouts

Trim Whitespace removes empty borders so screenshots, product shots, and scanned assets sit tighter in cards, galleries, and social media previews. It works by detecting the outer border color and cropping until real content begins.

Transparent padding is handled automatically too, so PNG exports with alpha margins can be cropped without manual selection tools.

Whitespace trimming at a glance

Best source files
Scans, screenshots, and flat-background product images
Threshold starter range
8 to 15 for clean edges; 20 to 35 for noisy JPEG borders
Typical result
Tighter framing and smaller file size from removed border pixels
Transparent borders
Auto-detected so alpha padding can be removed in one pass

What the sensitivity control does

  • 0 to 10: strict matching for crisp, near-solid borders.
  • 11 to 25: balanced setting for everyday screenshots and scans.
  • 26 to 40: more tolerant for JPEG artifacts and slight gradients.
  • 41+: aggressive trimming; review edges to avoid clipping soft shadows.

Tradeoffs and safe use

Border removal helps visual focus and can reduce download weight — for further size savings, compress the result after trimming. Aggressive thresholds can trim subtle edge detail such as glows, thin outlines, or faint scan marks. Keep the threshold as low as possible while still clearing unwanted padding.

If an edge looks clipped, rerun with a lower value. If a fringe remains, increase in small steps until you get a clean crop.

When not to trim whitespace

  • Print workflows: keep bleed and safety margins that are required downstream.
  • Intentional composition: preserve negative space used for visual balance.
  • Brand templates: avoid changing assets that rely on fixed canvas ratios. For precise control, use manual crop instead.

Trim Whitespace Questions, Answered

How does whitespace trimming work?

The tool samples corner pixels, treats that color or transparency as border background, then crops inward until it reaches meaningful content.

What threshold should I use first?

Start around 8 to 15 for clean PNGs and flat backgrounds. Increase to 20 to 35 for JPEG scans with compression noise or light shadowing.

Will this reduce image quality?

Cropping removes outer pixels but does not resize the remaining subject. You keep the same detail in the kept area while often reducing final file size.

When should I avoid auto-trimming?

Skip trimming when edge whitespace is intentional for print bleed, composition, or brand-safe margins that should stay in the exported file.