Techniques

What is pixel sorting?

Pixel sorting example showing algorithmic rearrangement of pixels

Pixel sorting is an algorithmic glitch art technique that rearranges pixels within an image based on specific criteria like brightness, hue, or saturation values. The result creates distinctive streaking effects where areas of similar value blur into flowing lines while other areas remain sharp.

The process works by selecting rows or columns of pixels, sorting them according to your chosen parameter, and placing them back in the image. Brightness-based sorting typically creates the most dramatic effects, with dark and light areas separating into distinct bands.

Artists control the effect through threshold values -determining which pixels get sorted and which remain static. Lower thresholds affect more of the image; higher thresholds preserve more original detail. Direction (horizontal, vertical, or diagonal) dramatically changes the visual result.

Tools for pixel sorting include Processing scripts, dedicated applications like Glitch Lab, and Photoshop plugins. Our pixel sorting guide covers both automated tools and manual techniques.