Sort PNG Pixels
Sort all pixels in a PNG by brightness, hue, saturation or a color channel.
Drop an image here
PNG, JPG, WebP, GIF or BMP. You can also paste an image.
No result yet
Options
How to use
- 1
Upload a PNG by clicking the upload area or dragging a file in.
- 2
Choose what to sort by: brightness, hue, saturation or a color channel.
- 3
Choose a direction: ascending or descending.
- 4
Click Download to save the sorted image.
Example
Before640 × 427

After640 × 427

Frequently asked questions
What does sorting by brightness do?
Dark pixels move to one end and bright pixels move to the other. The result looks like a gradient running across the image.
Will sorting change the image dimensions?
No. The output has the same width and height as the original. Only the pixel positions change.
About this tool
Sort PNG Pixels rearranges every pixel in your image by a chosen property (brightness, hue, saturation, or the red, green or blue channel) and lays them back in rows from left to right, top to bottom. All processing runs locally using the Canvas API. Your image never leaves your device.