MainspringGuides › Sort Desktop Icons
macOS Guide

How to Sort and Clean Up Desktop Icons on Mac

Updated July 2026 · 3 min read

A messy desktop has a two-second fix and a permanent one, and they live in the same right-click menu. Clean Up By straightens things once; Sort By keeps them straightened forever; and View Options controls the grid everything snaps to. Knowing which is which is the whole game.

One-time tidy: Clean Up and Clean Up By

Right-click any empty desktop area (or click the desktop and use Finder's View menu):

Clean Up By is the tool for the weekly reset: everything lines up, and you can still drag icons anywhere afterwards. If a stray icon refuses to join the grid, it's usually mid-drag from an earlier session — click it once and run Clean Up again.

Permanent order: Sort By

In the same right-click menu, Sort By is the standing rule:

Kind is the most useful key for real desktops: images cluster with images, PDFs with PDFs, folders together — which is also exactly what Stacks does, more compactly.

Tune the grid itself

Right-click the desktop and choose Show View Options (or press Cmd + J):

These controls work identically on Ventura, Sonoma, and Sequoia.

The honest hierarchy

Clean Up for the quick fix. Clean Up By when you want today's mess sorted but tomorrow's freedom kept. Sort By when the desktop should police itself. And when even sorted icons are too many icons, let macOS fold them into piles by kind automatically — that's Stacks, one entry up in the same menu.

When icons misbehave anyway

Desktop discipline, one click

While you're tidying, Mainspring turns 90+ hidden macOS settings — Finder, desktop, Dock, and more — into labelled, reversible toggles. Flip, compare, keep what works.

Try Mainspring free →

Signed & notarized by Apple · 1-day free trial · $29 once

Beyond sorting: fold the pile

Sorting arranges the clutter; Stacks makes it disappear into self-organizing piles that expand on click: desktop Stacks explained.