SecurePixel is a client-side encryption tool that allows you to securely convert images into audio files (WAV) and then restore them back to their original form.
All processing happens directly in your browser (using JavaScript), ensuring privacy and no server uploads.
- 🛡️ Military-Grade Security – Data is compressed and encoded before embedding in audio.
- ⚡ Fast Processing – Works entirely in your browser with optimized algorithms.
- 🌐 No Server Required – 100% offline, nothing leaves your device.
- 💫 Lossless Quality – The decrypted image is exactly the same as the original.
- 🎨 Modern UI – Stylish gradient background, floating particles, and animations.
-
Read the Image File
The selected image (PNG, JPG, JPEG, BMP, GIF) is loaded as raw binary data. -
Extract Metadata
Image dimensions (width & height) are extracted and stored for later reconstruction. -
Compression
The raw image data is compressed using pako.js (zlib/deflate). -
Metadata + Data Encoding
A string is formed: IMGDATA:::
This ensures the audio file knows how to restore the image.
-
Convert to Bytes
The string is converted into aUint8Array. -
Create WAV File
A custom WAV file is generated:
- Sample rate: 8000 Hz
- Channels: Mono
- Bit depth: 8-bit
- Data chunk stores the encoded byte stream.
- Result
A downloadable.wavfile is provided.
-
Read WAV File
The encrypted.wavis parsed and raw audio bytes are extracted. -
Extract Data String
The audio bytes are decoded back into a UTF-8 string. -
Validate Format
The tool checks that the data starts with theIMGDATA:marker. -
Parse Metadata
Extracts:
- Width
- Height
- Base64 encoded compressed data
-
Decompression
Base64 data → Binary buffer → Decompressed using pako.inflate. -
Rebuild Image
The decompressed binary is wrapped in aBlobwithtype: image/png. -
Result
The image is displayed on screen and can be downloaded in its original form.
- Encryption Input: PNG, JPG, JPEG, BMP, GIF
- Decryption Input: WAV (generated by this tool)
- Decryption Output: PNG
- HTML5 / CSS3 – Modern UI with animations
- JavaScript (Vanilla) – File handling, encoding, and decryption
- pako.js – Compression (zlib/deflate)
- Web APIs – FileReader, Blob, ArrayBuffer, DataView for binary manipulation
- Open the app in your browser (
index.html). - Drag & drop or click to upload an image.
- Click "Encrypt to Audio" → download your
.wavfile. - Upload the
.wavfile in the Decrypt Audio section. - Click "Decrypt to Image" → restore the original image.
This project is open-source under the MIT License.
Feel free to use, modify, and share.
- The WAV files generated by this tool are not playable audio, but structured binary containers.
- Only WAV files generated by SecurePixel can be decrypted correctly.