EditSafely

Convert PNG to ARGB Values

List every pixel of a PNG as alpha, red, green and blue numbers in ARGB 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 ARGB 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 ARGB 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 ARGB values. Every pixel is listed left to right, top to bottom, as 4 numbers from 0 to 255 in A R G B order. Copy them or download them as a text file.

When to use Convert PNG to ARGB Values

Convert PNG to ARGB Values reads a PNG in your browser and writes out its pixels in the ARGB order used by packed 32-bit color integers on several desktop and mobile platforms. It saves you writing a throwaway script just to see the raw numbers.

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

About the Convert PNG to ARGB Values tool

Convert PNG to ARGB Values is a free online tool that works entirely inside your web browser. List every pixel of a PNG as alpha, red, green and blue numbers in ARGB order. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.

This page is one of 292 PNG utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.

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.

Because nothing leaves your device, the tool is suitable for sensitive images such as ID scans, screenshots of internal systems or personal photos. It is also quick, since the pixels are processed on your own machine rather than by a remote API.

Frequently asked questions

Does Convert PNG to ARGB 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 ARGB 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 →