EditSafely

Convert BGR Values to PNG

Rebuild a PNG from a list of BGR 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 BGR 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 BGR 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 BGR Values to PNG

  1. 1. Paste your BGR values. Paste the numbers, 3 per pixel in B G R 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. Every pixel comes out fully opaque, since this layout carries no alpha channel.

When to use Convert BGR Values to PNG

Convert BGR Values to PNG turns raw pixel numbers in the BGR byte order that computer vision libraries and 24-bit bitmap files store pixels in 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 BGR 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 BGR 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 BGR numbers, set the width and download a PNG you can trust to the last byte.

Examples

One row per line

Input

0 0 255 0 0 255

Output

image.png (2×1 px, red)

About the Convert BGR Values to PNG tool

Convert BGR Values to PNG is a free online tool that works entirely inside your web browser. Rebuild a PNG from a list of BGR 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

Is Convert BGR Values to PNG free to use?

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?

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.

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?

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