Image Encoder

Share

Image Encoder

Too much data for URL encoding.

History

Help

Image Encoder is a simple demo of how images could be encoded using a linear array of binary or hexademical pixels.

The width and height can be specified in binary or hex.

Pixels can be expressed using binary (01) for black and white respectively, in which case each digit is a pixel. Or they can be expressed using hex (0123456789ABCDEF) in blocks of 6 characters corresponding to traditional RGB hex codes.

You can also toggle whether the border is in binary B&W or hex RGB. Clear the input to remove the border.

Finally, you can share images using a URL, or right-click the image itself to download it.

Notes

  • Missing pixels will be transparent and show the background of the app.
  • Extra pixels will be ignored. In RGB mode, unfinished pixels will be interpreted as hex codes if possible.
  • Illegal characters will be ignored. This also means you can use line breaks to organize your pixels without affecting the result.
  • Conversion is done automatically. When converting from hex/RGB to binary/B&W, since this is a lossy encoding, any colour with an average brightness >= 50% will be converted to white (1), otherwise it will be converted to black (0).
  • The history feature is a somewhat overpowered undo/redo that allows you to click through past states. It's linear, which means that if you go to a previous state and make a change, the history up to that state is discarded and a new timeline is started.
  • This tool is probably not responsive on mobile devices.