Hex to Image Converter
Decode hexadecimal PNG, JPEG or WebP file bytes, or build an image from raw RGB, RGBA or grayscale pixel bytes. Preview locally and export PNG.
1. Set up your creation
File mode requires complete image bytes including the format header. Raw mode requires an exact byte count and row-major order. Dimensions do not apply to complete files. PNG export preserves the decoded pixels; it is not a byte-identical copy of the source file.
2. Preview & use the result
Load an example to get started.
Changing settings disables old exports. Processing runs locally; website ads and analytics follow our privacy information.
Using Hex to Image Converter
Decode hexadecimal PNG, JPEG or WebP file bytes, or build an image from raw RGB, RGBA or grayscale pixel bytes. Preview locally and export PNG.
- Paste hex pairs or open a UTF-8 hex dump without addresses or annotations.
- Choose complete file bytes or a raw pixel layout. For raw layouts, enter exact dimensions.
- Inspect the image and download PNG. The report records the interpreted dimensions and byte count.
Example
File mode requires complete image bytes including the format header. Raw mode requires an exact byte count and row-major order. Dimensions do not apply to complete files. PNG export preserves the decoded pixels; it is not a byte-identical copy of the source file.
Questions & answers
Can I paste a color code?
A single RGB pixel can be represented by six hex digits. This tool also accepts sequences of raw pixel bytes. For color-space conversion use Color Converter.
Why does the byte count matter?
Raw RGB requires width × height × 3 bytes, RGBA requires × 4 and grayscale × 1. Missing or extra bytes are rejected.
Which complete image files work?
PNG, JPEG and WebP with valid signatures and successful browser decoding. SVG and executable formats are excluded.
What are the limits?
Six million input characters; raw images up to one million pixels and 2,048 pixels per edge. Complete decoded images are limited to 16 million pixels and 8,192 pixels per edge.
Is my input uploaded for processing?
No processing upload is used. This tool runs in a local browser worker. Website ads and analytics follow the site privacy information.
Help improve this tool
Report a problem or suggest an improvement
Describe the issue without pasting private tool input. Feedback goes to our admin inbox.
