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.
No account or install. Tool input is processed on your device.
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.
Web Crypto is not available on this page, so the key cannot be derived. Open the site over HTTPS or on localhost and reload.
Minimum 8 characters. There is no recovery if you forget it.
Use the same password again.
The image could not be scrambled.
This image is larger than the limit.
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.
Keep this PNG and your password. Converting it to JPEG destroys the pixel mapping and the metadata.
Case-sensitive. The password is never stored in the file.
The image could not be restored.
This PNG does not contain scramble metadata.
The salt and an 8-byte verifier travel inside the PNG. The verifier rejects a wrong password before any image is produced.
Your restored image appears here. The salt comes from the PNG metadata; the password is never stored or transmitted.
This restored PNG contains no scramble metadata. Download it before closing the tab.
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.
Related tools
Image Base64
One page, both directions: a file becomes a data URI with ready-to-paste CSS and HTML, or a pasted string becomes an image again. The declared type is never trusted over the bytes.
Base64 converter
Two directions, converted as you type. Invalid characters, impossible lengths and bytes that are not valid UTF-8 are reported rather than turned into plausible-looking rubbish.
Test data generator
Pick the columns, choose a seed and a format, and get a table of fictional people to paste into a fixture. The seed is the whole state: same seed, same output.