Tools

Home
Hex to ASCIIASCII to HexHex to Base64String to HexHex to RGB

Hex to Image Converter

Convert hex dump data to a visual image. Input hex color values, set pixel width, and download as PNG.

Your files never leave your browser
INPUT (HEX DATA)0 chars
OUTPUT (IMAGE PREVIEW)No image
Ready·RGB mode | Width: 16

Paste hex color values, pick a pixel width, and watch the bytes render as an actual image on a canvas. Useful for malware analysis, spotting patterns in binary dumps, or just turning a wall of RGB hex into something you can see. And everything runs in your browser. Nothing gets uploaded.

How to Use

Enter hex data in the left panel. Each pixel is represented by a hex color value (e.g., FF0000 for red).

Set the width in pixels. The height is computed automatically based on the number of pixels.

Choose a mode -- RGB (6 chars per pixel), RGBA (8 chars per pixel), or Raw (2 chars per grayscale pixel).

Click Convert to render the image on the canvas. Use the Pixel Scale option for zoomed viewing.

Download as PNG by clicking the .png button.

Frequently Asked Questions

What format should the hex data be in?

Enter hex color values separated by spaces, commas, or newlines. For RGB mode, each pixel is 6 hex characters (e.g., FF0000 for red). For RGBA mode, each pixel is 8 hex characters (e.g., FF0000FF for opaque red). For Raw/grayscale mode, each pixel is 2 hex characters (e.g., FF for white, 00 for black). You can optionally include # or 0x prefixes -- they will be stripped automatically.

How is the image width and height determined?

You specify the width in pixels using the Width input. The height is automatically calculated by dividing the total number of parsed pixels by the width (rounding up). If the last row has fewer pixels than the width, the remaining pixels default to transparent.

What does the Pixel Scale option do?

Pixel Scale enlarges each pixel for easier viewing. At 1x scale, each data pixel maps to exactly one screen pixel. At 4x, each pixel becomes a 4x4 block. The downloaded PNG always uses 1x scale (original resolution), so the scale only affects the on-screen preview.

Can I use this to visualize binary file hex dumps?

Yes! If you have a hex dump of raw binary data, use Raw/grayscale mode. Each byte (2 hex chars) becomes a grayscale pixel. Set the width to match the structure of your data (e.g., 256 or 512 for common file analysis). This technique is commonly used in malware analysis and forensics to visually identify patterns in binary files.

Is there a size limit?

The tool runs entirely in your browser, so the limit depends on your device's memory and the canvas size supported by your browser. Most browsers support canvas sizes up to around 16,384 x 16,384 pixels. For practical use, images up to a few million pixels render without issues.

Share: