Hex to Image Converter
Paint a hex string as RGB pixels and download the result as a PNG.
Image Tools Runs in your browser
How do you convert hex to an image?
Paste hex and watch it become pixels: the string is parsed two digits per byte, every three bytes form one RGB triple, and the triples fill a canvas row by row at whatever width you pick. A trailing partial pixel is zero-padded rather than dropped. Nearest-neighbour zoom keeps single pixels visible as squares, and the canvas exports to PNG for download.
How to use the Hex to Image
- 1 Paste the hex; 0x markers and whitespace get stripped.
- 2 Choose a pixel width and a zoom level.
- 3 Bytes paint onto the canvas in RGB groups of three.
- 4 Export the pattern with the Download PNG button.
What you can use it for
- Visualising raw byte or colour data as pixels.
- Turning a hex colour list into a swatch strip.
- Teaching how RGB pixels map to bytes.
- Inspecting binary data as an image pattern.
Frequently asked questions
How are hex bytes mapped to pixels?
Two hex digits make a byte and three bytes make a pixel: FF0000 is pure red, 00FF00 green, 0000FF blue. Pixels lay left to right, wrapping at your chosen width.
What if the hex does not divide evenly by three?
Leftover bytes are padded with zeros to finish the last pixel. One spare byte FF renders as FF0000, red, instead of being silently discarded.
Why does the image look blocky?
Deliberately. Each triple is one true pixel, and the zoom scales with nearest-neighbour sampling so squares stay hard-edged instead of blurring into gradients.
Related tools
More Image Tools
More tools like this:
All Image Tools