User Rating 0.0 β˜…β˜…β˜…β˜…β˜…
Total Usage 0 times
Paste binary digits. Non-0/1 characters are stripped automatically.
Drop file here or click to browse Any file type accepted
Leave blank for auto (square).
Is this tool helpful?

Your feedback helps us improve.

β˜… β˜… β˜… β˜… β˜…

About

Raw binary data has no inherent visual form. This tool maps byte sequences to pixel values on a canvas, producing a faithful raster image from any binary input. In 1-bit mode each bit becomes a black or white pixel. In grayscale mode each byte (0 - 255) maps to a single luminance pixel. In RGB mode every 3 bytes define one pixel's red, green, and blue channels. Width is configurable; height derives from Nw where N is the total pixel count. The output is a lossless PNG suitable for forensic analysis, steganography research, or data-art projects.

Misconfiguring width produces diagonal banding artifacts that obscure structure. Choosing the wrong color mode shifts byte alignment and corrupts the visual. This converter auto-detects sensible defaults but exposes every parameter so you can match the source format exactly. Note: the tool approximates square dimensions when no width is specified. For non-square data, set width manually to match the original raster stride.

binary to image binary converter data visualization pixel art binary data image generator raw bytes to image

Formulas

The core mapping converts a linear byte array into a 2D pixel grid. Given N total pixels (determined by byte count and color mode) and a chosen width w:

h = ceil(Nw)

For auto-width when no value is specified:

wauto = ceil(√N)

Pixel count N depends on the color mode and total byte count B:

{
N = B Γ— 8 if 1-bitN = B if grayscaleN = floor(B Γ· 3) if RGBN = floor(B Γ· 4) if RGBA

Each pixel at position i maps to canvas coordinates:

x = i mod w , y = floor(iw)

Where B = total bytes in input, N = total pixel count, w = image width in pixels, h = image height in pixels, i = linear pixel index.

Reference Data

Color ModeBytes per PixelChannelsValue RangeTypical Use
1-Bit (B&W)1810 or 1Fax, barcodes, QR internals
Grayscale110 - 255Firmware dumps, entropy maps
RGB330 - 255 eachRaw framebuffers, BMP payloads
RGBA440 - 255 eachTransparent textures, iOS assets
Common File Signatures (Magic Bytes)
PNG89 50 4E 47First 4 bytes: 137 80 78 71 decimal
JPEGFF D8 FFFirst 3 bytes: 255 216 255
GIF47 49 46 38ASCII: GIF8
BMP42 4DASCII: BM
PDF25 50 44 46ASCII: %PDF
ZIP50 4B 03 04PK header
Pixel Scale Reference
1Γ—1 data pixel = 1 screen pixelActual size, may be tiny
4Γ—1 data pixel = 4Γ—4 blockGood for <256 byte files
8Γ—1 data pixel = 8Γ—8 blockGood for <64 byte files
16Γ—1 data pixel = 16Γ—16 blockPoster/print quality for small data

Frequently Asked Questions

If the total byte count is not evenly divisible by 3 (RGB) or 4 (RGBA), the trailing bytes are discarded. For example, 100 bytes in RGB mode yields floor(100 Γ· 3) = 33 pixels, with 1 byte unused. This is standard behavior matching raw framebuffer conventions. The tool reports the exact pixel count so you can verify alignment.
In 1-bit mode each individual bit becomes one pixel - a 0 bit renders black, a 1 bit renders white. One byte produces 8 pixels. In grayscale mode the entire byte value (0-255) maps to a single pixel's luminance. The same 100-byte file produces 800 pixels in 1-bit mode but only 100 pixels in grayscale. Use 1-bit for examining bit-level structure; use grayscale for byte-level entropy patterns.
Diagonal banding occurs when the configured width does not match the original data's row stride. If the source data was organized in rows of 320 bytes but you set width to 256, every row shifts by 64 bytes creating a shear artifact. Set the width to the exact row length of the source format. Common values: 128, 256, 320, 512, 640, 1024.
Yes. Paste a string of 0 and 1 characters into the text input. The converter groups every 8 characters into one byte (big-endian, MSB first). Characters other than 0 and 1 are stripped automatically. If the total character count is not a multiple of 8, the final partial byte is zero-padded on the right.
The practical limit depends on browser memory. Canvas dimensions are capped at roughly 16384 Γ— 16384 pixels in most browsers. For a grayscale image that is approximately 268 million pixels (~256 MB of input). Realistically, files up to 10 MB render in under 2 seconds. Files above 50 MB may cause tab slowdowns. The tool displays a warning when pixel count exceeds 4 million.
Yes. A scale factor of 4Γ— means each data pixel occupies a 4Γ—4 block on the canvas. The exported PNG dimensions equal width Γ— scale by height Γ— scale. A 64-wide grayscale image at 4Γ— scale exports as 256 Γ— (heightΓ—4) pixels. This is useful for making small datasets visible but increases file size quadratically with scale.