EditSafely

Convert JPG to RGB

Dump the raw RGB pixel array of a JPG. Runs entirely in your browser, so your data never leaves your device.

Input

Drop a file here, or click to browse

Files never leave your device

Output

The result appears here as you type.

Options

How to use Convert JPG to RGB

  1. 1. Add the JPG to dump. Drop in the photo whose raw pixel data you want as plain numbers, such as a small test image or an icon you are debugging.
  2. 2. Set the value formatting. Type a Value separator such as a space or comma to place between each red, green and blue number, and toggle One pixel per line to put each pixel on its own line instead of one long stream.
  3. 3. Copy the RGB values. The tool outputs every pixel's red, green and blue values in order, formatted the way you chose. Copy the result into a script, spreadsheet or shader you are building.

When to use Convert JPG to RGB

Convert JPG to RGB dumps the raw red, green and blue values of every pixel in a photo as plain text. It is aimed at developers who need actual numeric pixel data to feed into a script, a shader or a manual calculation rather than a viewable image.

  • Feeding pixel data into a shader or graphics program. You are writing a custom rendering routine and need the exact RGB values of a small test texture as literal numbers. Dumping them with one pixel per line gives you data ready to paste into code.
  • Debugging a color processing algorithm. Your image processing code is producing unexpected output and you want to verify the raw input values by hand. Extracting the RGB array lets you check specific pixels against your expectations.
  • Building a tiny test fixture from a real photo. You want unit test data based on an actual image rather than made-up numbers. Dumping a small photo's RGB values with a comma separator gives you a fixture you can paste directly into test code.
  • Analyzing pixel patterns in a spreadsheet. You want to chart or sort pixel color values from a small image in a spreadsheet application. Formatting the output with one pixel per line makes it easy to paste into rows.

Examples

Dump RGB values

Input

photo.jpg

Output

"255 0 0" and one more line per pixel

About the Convert JPG to RGB tool

Convert JPG to RGB does its work locally, right in the browser. Dump the raw RGB pixel array of a JPG. There is no upload step, no queue and no account, and your data never travels over the network.

It belongs to the JPG Tools collection on EditSafely, a set of 145 small, focused JPG utilities that share the same instant, private workspace.

You can shape the output with 2 settings, including Value separator and One pixel per line, and the result refreshes the moment 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: results appear as you type or drop a file, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.

Frequently asked questions

Does Convert JPG to RGB cost anything?

Yes, it is completely free. All 2,658 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 JPG to RGB accept?

It accepts JPG and JPEG photos. 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?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.

Related tools

All JPG Tools