EditSafely

Convert RGB values to PNG

Build a PNG from a list of R,G,B numbers, one pixel per triple.

Runs on your device, nothing uploaded

Width (pixels)
Try:

0 chars · 0 lines

Output

Build a PNG from a list of R,G,B numbers, one pixel per triple.

Type or paste above to see the result here.

Example: Three-pixel strip

What you paste never leaves this tab

Convert RGB values to PNG is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, 200 photos straight off a camera means 1.6 GB uploaded, a wait in somebody's queue, and 240 MB downloaded again. Here it means 0 bytes up and 0 bytes down.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Convert RGB values to PNG

  1. 1. Paste your RGB values. Enter the color of each pixel as three numbers from 0 to 255, such as 255,0,0 for red. Commas, spaces and new lines all work as separators.
  2. 2. Set the image width. Choose how many pixels go in each row. The values fill the picture left to right, top to bottom, and the height follows from how many triples you gave.
  3. 3. Download the PNG. Save the result as a lossless PNG with every pixel exactly the color you typed. Lines starting with # are treated as comments and skipped.

When to use Convert RGB values to PNG

Convert RGB values to PNG turns a plain list of red, green and blue numbers into a real PNG image, one pixel per triple. It is the reverse of dumping a picture's pixels as numbers.

  • Rebuilding a picture from a pixel dump. You exported a PNG's pixels as RGB numbers, edited them in a script or spreadsheet, and now want the changed values back as an image.
  • Visualizing program output. A sensor, simulation or homework program prints colors as numbers, and pasting them here shows the data as a picture you can save.
  • Making exact test images. Tests for an image tool need tiny pictures with known pixel colors, and typing the values gives you a PNG that is correct to the byte.

Examples

Three-pixel strip

Input

255,0,0 0,255,0 0,0,255 + width 3

Output

a 3×1 PNG: red, green, blue

2×2 checker

Input

0,0,0 255,255,255 255,255,255 0,0,0 + width 2

Output

a 2×2 black and white PNG

About the Convert RGB values to PNG tool

Convert RGB values to PNG runs as plain JavaScript in your browser tab, with no server behind it. Build a PNG from a list of R,G,B numbers, one pixel per triple. Whatever you put in stays on your device from start to finish.

The tool is part of EditSafely's PNG Tools section, 292 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.

You can shape the output with the Width (pixels) setting, and the result refreshes the moment you change it. The finished file is put together in browser memory and saved with the Download button, so it never touches a server on the way to your disk. 2 worked examples further down the page show exactly what the tool produces for real inputs.

That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.

Frequently asked questions

Is Convert RGB values to PNG free to use?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I save the output?

Click the Download button once the result is ready. The file is built in your browser's memory and handed straight to your downloads folder, without passing through a server.

Related tools

All PNG Tools →