EditSafely

Swap Blocks of Pixels

Cut a PNG into square blocks and shuffle them into a scrambled puzzle, or swap neighbouring blocks in pairs.

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 Blocks of Pixels 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 Blocks of Pixels

  1. 1. Add the PNG. Drop in one or more PNG files. Only whole blocks move, so the picture keeps its exact size.
  2. 2. Set the block size. Choose the block size in pixels. A strip that does not fill a whole block at the right or bottom edge stays where it is.
  3. 3. Shuffle or swap pairs, then run. Shuffle all blocks into a random order set by the seed, or swap each block with its right-hand neighbour in every row.

When to use Swap Blocks of Pixels

Swap Blocks of Pixels cuts a picture into square tiles and rearranges them. Shuffling with a seed gives a repeatable scrambled puzzle, and pair swapping gives an orderly checker of exchanged tiles that you can undo by running it again.

  • Making a tile puzzle. Shuffling a photo into 64 pixel blocks gives a ready-made sliding or jigsaw puzzle image, and the seed lets you recreate the same layout.
  • Block glitch artwork. Small blocks shuffled across an image give the blocky corruption look of a broken stream, a popular style for covers and posters.
  • Hiding a picture in plain sight. A shuffled image hides its content at a glance while keeping all of its pixels, which is useful for teasers and reveal games.

Examples

Make a tile puzzle

Input

photo.png, 64 px blocks, shuffle, seed 7

Output

photo.png scrambled into a grid of shuffled 64 px tiles

Swap neighbouring tiles

Input

pattern.png, 16 px blocks, side-by-side pairs

Output

pattern.png with blocks 1 and 2, 3 and 4... swapped in every row

About the Swap Blocks of Pixels tool

Swap Blocks of Pixels is a free online tool that works entirely inside your web browser. Cut a PNG into square blocks and shuffle them into a scrambled puzzle, or swap neighbouring blocks in pairs. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.

This page is one of 292 PNG utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.

You can shape the output with 3 settings, including Block size (px), Swap and Random seed (same seed, same result); 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.

Because nothing leaves your device, the tool is suitable for sensitive images such as ID scans, screenshots of internal systems or personal photos. It is also quick, since the pixels are processed on your own machine rather than by a remote API.

Frequently asked questions

Is Swap Blocks of Pixels free to use?

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?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

Which files does Swap Blocks of Pixels 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?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

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 →