EIT easy-image-tools / Build an image from RGBA byte values

Build an image from RGBA byte values

Assembles an image from decimal RGBA byte numbers (any separators). Set the width — height is computed automatically.

Nothing found — try another word.

01

Build an image from RGBA byte values

Nothing found — try another word.

Width

Nothing found — try another word.

Preview
Source
Result
no result yet

Build an image from RGBA byte values assembles a picture from the numbers that describe it: every pixel is four numbers — red, green, blue, alpha — pasted into the text field. Set the Width so the rows can be counted, and the height follows from how many pixels you pasted. The parser is forgiving about separators, because only the digits are read, so a list copied out of a JavaScript array works untouched; it is not forgiving about values: each must be a whole number from 0 to 255, the count must be a multiple of four, and the pixel count must divide evenly by the width.

  • Assembled entirely in your browser: no upload, no server, no signup.
  • Any separators are ignored — spaces, commas, line breaks, parentheses.
  • Each value must be a whole number from 0 to 255; fractions are rejected.
  • The pixel count must divide evenly by the width, or nothing is assembled.
  • Free with no daily limit, no watermark and no account, also for commercial use.

How to use it

  1. Paste the RGBA numbers into the text field; any separators between them are ignored.
  2. Set Width to the number of pixels in one image row - the height is computed from the rest.
  3. Download the assembled PNG from the Download button.

Questions

Why do I have to enter the width?

A flat list of RGBA values has no row structure, so its pixels would run into one long line. Width turns the list into a grid.

Which separators are accepted?

None in particular. Spaces, commas, semicolons, parentheses and line breaks are all ignored, because the parser only reads the digits. The hex to PNG page on this site is the stricter sibling: it wants exactly eight hex characters per pixel.

Can the values be fractions or percentages?

No. A channel is a byte, so every value must be a whole number from 0 to 255 and 12.5 is rejected. Multiply a CSS alpha by 255 first.

What happens when the pixel count does not fit the width?

The page refuses to guess. If the division leaves a remainder, nothing is assembled and the error names both numbers.

Related tools