Convert PNG to RGB Values
List every pixel of a PNG as red, green and blue numbers in RGB order. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
Drop an image anywhere on this page
or paste with Ctrl / ⌘ + V ·
Accepts PNG
Your PNG files never leave this tab
Convert PNG to RGB Values 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 file size limit
- Works offline once loaded
- Nothing stored or logged
How to use Convert PNG to RGB Values
- 1. Drop in your PNG. Add the image whose pixels you want as numbers. Small pictures give short output; anything over a million pixels should be downscaled first.
- 2. Pick a layout. Choose one pixel per line, one image row per line, or a single long line, and the separator between values. This layout has no alpha channel, so transparency is dropped and the tool warns you when the PNG had any.
- 3. Copy the RGB values. Every pixel is listed left to right, top to bottom, as 3 numbers from 0 to 255 in R G B order. Copy them or download them as a text file.
When to use Convert PNG to RGB Values
Convert PNG to RGB Values reads a PNG in your browser and writes out its pixels in the plain RGB byte order used by most raw image buffers, PPM files and numeric arrays. It saves you writing a throwaway script just to see the raw numbers.
- Feeding code that expects RGB. A routine you are testing takes raw RGB bytes. Dumping a known PNG in that exact order gives you input you can paste straight into a fixture.
- Comparing against a buffer dump. Your program produced RGB numbers and you want to see whether they match the source image. Dump the PNG the same way and diff the two lists.
- Teaching how pixels are stored. Showing the same tiny icon as RGB numbers makes channel order concrete for students, far better than a description of byte layouts.
Examples
One red pixel
Input
a 1×1 red PNG
Output
255 0 0
About the Convert PNG to RGB Values tool
Convert PNG to RGB Values runs as plain JavaScript in your browser tab, with no server behind it. List every pixel of a PNG as red, green and blue numbers in RGB order. 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 2 settings, including Layout and Value separator; the result is redone automatically when you change one. A worked example further down the page shows exactly what the tool produces for a real input.
That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, there is no upload to wait for, and it is safe to use with confidential photos and documents.
Frequently asked questions
Is Convert PNG to RGB Values free to use?
Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.
Are my files uploaded to a server?
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.
Which files does Convert PNG to RGB Values accept?
It accepts PNG images. There is no file size cap imposed by a server; very large files are limited only by your device's memory.
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 use the result?
Click Copy to put it on your clipboard, or Download .txt to save it as a file. Drop another image to start again.