Developer / Free browser tool

Image Pixel Scrambler

A visual lock, not encryption: the pixels move, the values stay. The shuffle is keyed with PBKDF2 and the salt travels inside the PNG.

Developer Runs locally Free

No account or install. Tool input is processed on your device.

Image scramble
Tool input stays local

Obfuscation, not encryption. Pixel positions are shuffled; pixel values are unchanged. It keeps an image out of casual view, but it is not a substitute for authenticated encryption. Do not use it for sensitive material.

PNG out · salt embedded
Source image

Minimum 8 characters. There is no recovery if you forget it.

Use the same password again.

PBKDF2-SHA-256 · 210,000 iterations · fresh 128-bit salt per image · lossless PNG output · limit 16 MP or 4,000 px per side.

Your scrambled PNG appears here. The salt travels inside the file, so the password is the only thing you need to remember.

Input is processed in your browser. Reloading the page clears it unless the tool saves a draft. 4 November 2026

About this tool

The scrambler rearranges every pixel while preserving the image dimensions and pixel values. The output usually looks like colored static and remains a valid image file. Restoring uses the password to derive the same permutation and return each pixel to its original position.

The key comes from PBKDF2-SHA-256 with 210,000 iterations and a random 128-bit salt. The first 32 derived bytes seed a xorshift generator, and the next eight bytes form a verifier. A Fisher–Yates shuffle creates the pixel-index permutation. Each RGBA pixel moves as one unit, preserving its alpha channel.

The salt and verifier are written into a PNG tEXt chunk with the keyword LocalBench, keeping the required parameters inside the scrambled file. PNG output avoids lossy pixel changes. Re-encoding as JPEG changes both the pixels and metadata needed for restoration.

What moves and what does not

Only positions change. The code reads the canvas as 32-bit words, one per pixel, and copies each word to a new index. No pixel is blended or re-colored, and no channel is touched individually. That is why the scrambled image has the same average color as the original: it is the same set of pixels in a different order.

It is also why this is not encryption. The histogram is untouched, and anyone with the scrambled PNG still has every original pixel value. The password hides the arrangement, not the content.

Why the salt lives inside the PNG

Each scramble draws a fresh 16-byte salt and derives 40 bytes from the password: a 32-byte seed and an 8-byte check. The metadata chunk stores the salt in Base64, the iteration count, the dimensions and the check in hex. On restore the tool reads that chunk, derives the same 40 bytes and compares the check before moving a single pixel. A wrong password fails there, instead of producing noise that looks like a corrupted success.

The container matters: re-saving may drop unknown chunks, JPEG discards them and changes pixels, and cropping breaks the dimension match.

Why a large image takes a few seconds

Two costs dominate. PBKDF2 with 210,000 iterations is deliberately slow, and the permutation is one 32-bit index per pixel: a 4-megapixel photo needs a 16 MB index array, then a 16 MB output buffer, then a PNG encode. Work is split into chunks of 200,000 permutation steps and 250,000 pixels, with a yield to the event loop between chunks. The limits are 4,000 pixels per side and 16 megapixels, roughly 200 MB of typed arrays at the ceiling.

This is visual obfuscation, not encryption. Pixel values remain unchanged, so the file is not cryptographically protected. Keep the original PNG and password: JPEG conversion, resizing, cropping or metadata removal can prevent restoration.

How it works

Choose an image

PNG, JPEG, WebP or GIF up to the pixel cap. A GIF is scrambled from its first frame.

Set and confirm a password

Eight characters minimum. The password is never stored; the salt and an eight-byte verifier are written into the PNG.

Download, then restore

Keep the PNG and the password. Restore reads the embedded salt, checks the password and inverse-maps every pixel.

Common questions

Is this encryption?

No. It is a keyed permutation of pixel positions. The pixel values are unchanged, the file is still a valid PNG, and the histogram gives away more than an encrypted blob would. Use an authenticated encryption tool when the content is actually sensitive.

Can I restore the image without the password?

Not with this tool. There is no recovery key or password bypass. The salt is in the file, but the seed comes from the password through 210,000 PBKDF2 iterations. Without the password, restoration would require guessing it; the tool offers no shortcut.

Why does converting the scrambled PNG to JPEG break it?

JPEG is lossy. The encoder changes pixel values slightly, the decoder brings back approximations, and the inverse permutation then puts wrong values in every position. It also drops the tEXt chunk that carries the salt, so restore has nothing to work from.

How does the tool know the password is wrong?

The metadata stores an eight-byte verifier derived from the same PBKDF2 output as the seed. Restore recomputes it and compares in constant time. A mismatch stops the restore before a permutation is built, so a wrong password produces an error rather than a garbage image.

What are the size limits?

4,000 pixels on either side and 16 megapixels in total. The permutation and the pixel buffer are both four bytes per pixel, so the cap keeps peak memory near 200 MB. Files are also capped at 25 MB.