EditSafely

Convert BGRA Values to PNG

Rebuild a PNG from a list of BGRA pixel values, reordering the channels for you.

Runs on your device, nothing uploaded

Width (px, 0 = from the line layout)
Height (px, 0 = auto)
Try:

0 chars · 0 lines

Output

Rebuild a PNG from a list of BGRA pixel values, reordering the channels for you.

Type or paste above to see the result here.

Example: One row per line

What you paste never leaves this tab

Convert BGRA 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 BGRA Values to PNG

  1. 1. Paste your BGRA values. Paste the numbers, 4 per pixel in B G R A order, separated by spaces, commas or line breaks. Each value is a whole number from 0 to 255.
  2. 2. Tell the tool the width. Enter the image width, or put one image row per line and the width is worked out for you. Height follows from the pixel count unless you set it.
  3. 3. Download the PNG. The channels are moved into standard RGBA order and saved as a lossless PNG. The alpha value sets each pixel's transparency, so see-through areas survive in the PNG.

When to use Convert BGRA Values to PNG

Convert BGRA Values to PNG turns raw pixel numbers in the BGRA byte order used by Windows bitmaps, many GPU textures and screen capture buffers back into a picture you can open anywhere. Everything runs in your browser, so the data never leaves your device.

  • Looking at a buffer dump. A program wrote a frame out as BGRA numbers while you were debugging. Pasting them here shows the actual image instead of a wall of digits.
  • Checking a channel-order bug. Red and blue look swapped in your output. Rebuilding the same values as BGRA and as RGBA quickly shows which order the data is really in.
  • Making a test image by hand. You need a tiny picture with exact pixel values for a unit test. Type the BGRA numbers, set the width and download a PNG you can trust to the last byte.

Examples

One row per line

Input

0 0 255 255 0 0 255 255

Output

image.png (2×1 px, red)

About the Convert BGRA Values to PNG tool

Convert BGRA Values to PNG is a free online tool that works entirely inside your web browser. Rebuild a PNG from a list of BGRA pixel values, reordering the channels for you. 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 Width (px, 0 = from the line layout) and Height (px, 0 = auto), and the result refreshes the moment you change one. 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. 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 content such as internal documents, credentials or customer data. It also responds instantly, since every step is handled on your own machine rather than by a remote API.

Frequently asked questions

Does Convert BGRA Values to PNG cost anything?

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?

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.

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?

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 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 →