Swap Adjacent Pixel Pairs
Swap each pixel with its neighbour, side by side or top and bottom, for a fine woven glitch. Running it twice restores the original. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
Drop images anywhere on this page
or paste with Ctrl / ⌘ + V ·
Accepts PNG · several at once
Your PNG files never leave this tab
Swap Adjacent Pixel Pairs is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, 200 photos straight off a camera means 1.6 GB uploaded, a wait in somebody's queue, and 240 MB downloaded again. Here it means 0 bytes up and 0 bytes down.
- No upload
- No file size limit
- Works offline once loaded
- Nothing stored or logged
How to use Swap Adjacent Pixel Pairs
- 1. Add the PNG. Drop in one or more PNG files. The swap is done in your browser and keeps the picture size exactly.
- 2. Choose the neighbour and pair width. Swap with the pixel to the right or the one below, and set the pair width to swap stripes of several pixels instead of single pixels.
- 3. Pick how often and run. Swap every pair, or only every Nth pair for a sparser pattern. Running the result again with the same settings restores the original.
When to use Swap Adjacent Pixel Pairs
Swap Adjacent Pixel Pairs exchanges every pixel, or every stripe of pixels, with its neighbour. It produces a fine interlaced texture on detailed images and is exactly reversible, which makes it handy for simple scrambling as well as for glitch effects.
- Interlaced glitch texture. Swapping wide stripes of columns makes a picture look woven or misregistered, a subtle effect that keeps the subject recognisable.
- Simple reversible scrambling. Swapping pairs hides fine detail from a quick glance, and anyone with the same settings can swap them back to the original exactly.
- Testing image pipelines. Single-pixel swaps create the highest-frequency changes possible, useful for checking how resizing or compression handles fine detail.
Examples
Interlace columns
Input
art.png, to the right, every pair, 1 px
Output
art.png with columns 0/1, 2/3, 4/5... swapped
Scramble and unscramble
Input
Run the result through again with the same settings
Output
The original picture back, pixel for pixel
About the Swap Adjacent Pixel Pairs tool
Swap Adjacent Pixel Pairs does its work locally, right in the browser. Swap each pixel with its neighbour, side by side or top and bottom, for a fine woven glitch. Running it twice restores the original. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the PNG Tools collection on EditSafely, a set of 292 small, focused PNG utilities that share the same instant, private workspace.
You can shape the output with 3 settings, including Swap with the neighbour, Swap every Nth pair (1 = all) and Pair width (px); the result is redone automatically when you change one. The finished file is put together in browser memory and saved with the Download button, so it never touches a server on the way to your disk. 2 worked examples further down the page show exactly what the tool produces for real inputs.
Running locally also makes the tool fast and dependable: the image is read straight from your device the moment you drop it, there is no server outage that can take it down mid-task, and private pictures stay private.
Frequently asked questions
Does Swap Adjacent Pixel Pairs cost anything?
Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.
Are my files uploaded to a server?
No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.
Which files does Swap Adjacent Pixel Pairs accept?
It accepts PNG images. There is no file size cap imposed by a server; very large files are limited only by your device's memory.
Do I need to sign up or install anything?
Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.
How do I save the output?
Click the Download button once the result is ready. The file is built in your browser's memory and handed straight to your downloads folder, without passing through a server.
Related tools
All PNG Tools →Swap Blocks of Pixels
Cut a PNG into square blocks and shuffle them into a scrambled puzzle, or swap neighbouring blocks in pairs.
Shift Pixels by Offset Value
Slide each row or column sideways by its own offset, following a wave, random bands or random lines, for a glitch effect.
Sort PNG Pixels by Brightness
Pixel-sort a PNG: runs of pixels along each row or column are rearranged from dark to light, the classic glitch look.