EditSafely

Convert PNG to ABGR Values

List every pixel of a PNG as alpha, blue, green and red numbers in ABGR order.

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 ABGR 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 ABGR Values

  1. 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. 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. 3. Copy the ABGR values. Every pixel is listed left to right, top to bottom, as 4 numbers from 0 to 255 in A B G R order. Copy them or download them as a text file.

When to use Convert PNG to ABGR Values

Convert PNG to ABGR Values reads a PNG in your browser and writes out its pixels in the ABGR order produced when packed RGBA integers are read on a little-endian machine. It saves you writing a throwaway script just to see the raw numbers.

  • Feeding code that expects ABGR. A routine you are testing takes raw ABGR 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 ABGR 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 ABGR 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 255

About the Convert PNG to ABGR Values tool

Convert PNG to ABGR Values runs as plain JavaScript in your browser tab, with no server behind it. List every pixel of a PNG as alpha, blue, green and red numbers in ABGR 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

Does Convert PNG to ABGR 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 ABGR 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.

Related tools

All PNG Tools →