Pixel Sort Studio

Turn a photo into streaky glitch art by sorting runs of pixels, steer the effect with thresholds, angle and a brush, and save a full-size PNG or an animated GIF.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Open a photo

    Choose a JPG, PNG or WebP photo.

  2. 2
    Choose the key

    Pick Brightness, Hue or Saturation in Sort by.

  3. 3
    Set the window

    Move the lower and upper thresholds and check Show mask.

  4. 4
    Pick direction

    Set the angle and Reverse order, and choose an interval mode.

  5. 5
    Paint a mask

    Optionally paint the area to sort and switch the brush mask on.

  6. 6
    Export

    Download the full-size PNG or the animated GIF.

About this tool

Pixel sorting is a glitch art technique popularised around 2010: you pick runs of pixels along each row and sort them by a value such as brightness, so colours melt into smooth streaks while the rest of the picture stays sharp. The look depends entirely on which pixels are sorted, and that is what this studio gives you control over. A threshold window chooses pixels whose brightness, hue or saturation lies between a lower and an upper value; only uninterrupted runs of those pixels are sorted, so a sky can stream while a face stays intact. The interval mode decides how runs are cut: threshold runs use the full run, random lengths break runs into pieces up to a maximum length for a choppier texture, and whole lines ignore the threshold completely. The angle slider turns the sorting direction anywhere around the circle, 90 degrees gives the classic downward drip, and reverse flips the order. A brush mask lets you paint exactly where sorting may happen. The preview updates live on a 900 pixel copy, and exports run on the photo at up to 3000 pixels.

Reading the mask

Show mask darkens and tints every pixel that is outside the threshold window, so you can see which areas will move before you commit. The panel also states the share of pixels inside the window. For brightness and saturation the scale runs from 0 to 255; for hue the colour wheel of 360 degrees is mapped onto the same 0 to 255 range, so reds sit at both ends and greens near 85. Invert mask sorts everything outside the window instead, which is handy when you want the bright subject to smear and the dark background to stay still.

Angles and direction

For angles other than 0, 90, 180 and 270 degrees the photo is rotated onto a larger working canvas, the rows are sorted and the result is rotated back over the original, so the borders never turn transparent. Diagonal angles involve resampling and soften fine detail slightly; the four right angles are pixel exact. The quick buttons jump to the common angles.

Brush mask

Paint area adds to the mask with a round brush whose size is a percentage of the photo, and Erase removes from it. While the brush mask is switched on, nothing outside the painted area is sorted, whatever the thresholds say. Every dab is part of the undo history, so Ctrl+Z removes the last stroke. The mask is stored in relative coordinates, so it lines up on the full-size export too.

Animated GIF

The GIF starts with the untouched photo, then shows the sort sweeping across the image in 16 steps at 480 pixels on the long side and pauses on the finished frame. Each frame has its own palette.

Limits

Sorting a 3000 pixel photo with wide windows can take several seconds on a phone. Hue sorting of grey pixels is arbitrary, because grey has no hue. The effect is not reversible on the exported file, so keep your original. Nothing is uploaded.

Worked example

A 2400 by 1600 sunset photo sorted by brightness with the window 70 to 210 and angle 90 leaves the black silhouettes of trees untouched while the orange sky drips downwards. Show mask reports 58 percent of pixels inside the window. Switching to random lengths with a maximum of 60 pixels gives shorter, broken streaks, and the full-size PNG export keeps all 2400 by 1600 pixels.

Quick facts

Frequently asked questions

What does pixel sorting actually do?

It reorders pixels inside chosen runs along each row from low to high value, here brightness, hue or saturation, which turns detail into smooth streaks.

Why are some areas not affected?

Only pixels inside the threshold window, and inside the brush mask when it is on, are sorted. Widen the window or use Whole lines to affect more.

How do I make vertical streaks?

Set the angle to 90 degrees for downward streaks or 270 degrees for upward ones.

Does the export use the full resolution?

Yes, up to 3000 pixels on the long side. The preview uses a 900 pixel copy so sliders stay responsive.

Can I undo brush strokes?

Yes. Every dab and every slider change goes into the undo history.

Is my photo sent anywhere?

No. Sorting, masks and GIF encoding all run in your browser.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages