Convert PNG to BGRA Values
List every pixel of a PNG as blue, green, red and alpha numbers in BGRA 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 BGRA 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 BGRA 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. Transparency comes out as the alpha value, 0 for fully clear and 255 for solid.
- 3. Copy the BGRA values. Every pixel is listed left to right, top to bottom, as 4 numbers from 0 to 255 in B G R A order. Copy them or download them as a text file.
When to use Convert PNG to BGRA Values
Convert PNG to BGRA Values reads a PNG in your browser and writes out its pixels in the BGRA byte order used by Windows bitmaps, many GPU textures and screen capture buffers. It saves you writing a throwaway script just to see the raw numbers.
- Feeding code that expects BGRA. A routine you are testing takes raw BGRA 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 BGRA 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 BGRA 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
0 0 255 255
About the Convert PNG to BGRA Values tool
Convert PNG to BGRA Values does its work locally, right in the browser. List every pixel of a PNG as blue, green, red and alpha numbers in BGRA order. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the PNG Tools collection on EditSafely, a set of 292 small, focused PNG utilities that share the same instant, private workspace.
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.
Running locally also makes the tool fast and dependable: the image is read straight from your device the moment you drop it, there is no server outage that can take it down mid-task, and private pictures stay private.
Frequently asked questions
Does Convert PNG to BGRA Values cost anything?
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?
No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.
Which files does Convert PNG to BGRA 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?
Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.
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.