No Login Data Private Local Save

Image to Binary Array - Online Pixel Dump

14
0
0
0
Upload Image

Click or drag image here

Supports PNG, JPG, GIF, BMP, SVG
Preview: No image
Settings
Black (0) 128 White (255)
Pixel Dump
0 bytes 0 px
Frequently Asked Questions

It’s a tool that reads every pixel of an image and expresses its color values in a machine-readable binary or hexadecimal format. Developers often use such arrays to embed small graphics directly into firmware, microcontrollers, or web applications without relying on external files.

You can choose from Hex Array (C-style), Binary Strings (8-bit spaced), RGBA Bytes as JSON, or Raw comma-separated bytes. Pixel formats include RGB888, RGB565, RGBA32, Grayscale, and a binary mask with adjustable threshold.

Select Hex Array (C-style) to get a printable C array like const uint8_t myImage[] = {0x12, 0xAB...};. You can copy-paste it directly into your code, or download it as a .h header file. For raw binary data, use the Download button to get a .bin file.

Large images produce huge arrays that can slow down your browser or exceed memory limits. The tool automatically scales your image to fit the chosen bounds, preserving the aspect ratio. This keeps the output manageable while still representing the image faithfully.

It converts each pixel to pure black or pure white based on a luminance threshold (0–255). This is useful for creating monochrome bitmaps, QR-like codes, or simple icons. The output will contain 0x00 (black) or 0xFF (white) for each pixel, unless you select a binary string format where it shows 00000000 or 11111111.

No, everything runs entirely in your browser using Canvas and JavaScript. Your image never leaves your device, ensuring privacy and security.