# Convert Raw Pixel Buffer to JPEG

Convert a headerless raw pixel buffer file to a JPEG image. You must provide the image dimensions, channel count, and bit depth.

> Canonical page: https://elysiatools.com/en/tools/raw-to-jpg

- **Category:** Media

- **Keywords:** raw, pixel, data, jpg, jpeg, convert, image, binary, processing, camera-raw

## Overview

Use this tool only when you already have a headerless raw pixel buffer and know its exact layout. It does not decode camera RAW photo containers such as DNG, ARW, CR2, or NEF. The uploaded bytes are interpreted strictly according to the width, height, channel count, and bit depth you provide.

## Inputs

- **Raw Pixel Buffer File** (file): Select raw pixel buffer file to convert
- **Image Width (pixels)** (text): Enter image width in pixels
- **Image Height (pixels)** (text): Enter image height in pixels
- **Color Channels** (select): Select number of color channels
- **Input Bit Depth** (select): Select bit depth of raw data
- **JPEG Quality (1-100)** (text): Enter JPEG quality (1-100)

## When to use

- When you have a headerless raw binary file containing pixel data from a camera sensor or framebuffer and need to view it as a standard image.
- When debugging custom graphics pipelines or embedded systems that output raw RGB, RGBA, or grayscale pixel buffers.
- When you know the exact width, height, channel count, and bit depth of a raw pixel dump and want to encode it to JPEG.

## How it works

- Upload the headerless raw pixel buffer binary file.
- Specify the exact image width and height in pixels.
- Select the number of color channels (Grayscale, Grayscale + Alpha, RGB, or RGBA) and the input bit depth (8-bit or 16-bit per channel).
- Set the desired JPEG output quality and convert the raw bytes into a downloadable JPEG image.

## Use cases

- Converting raw framebuffers extracted from embedded devices or microcontrollers into viewable JPEG images.
- Verifying raw pixel outputs from custom image processing algorithms or GPU shaders during development.
- Converting raw grayscale or RGB sensor dumps from industrial cameras to standard image formats for documentation.

## Frequently asked questions

### Can I convert camera RAW files like DNG, CR2, or NEF with this tool?

No. This tool does not support camera RAW container formats. It only processes headerless raw pixel buffers.

### What happens if I enter the wrong width or height?

Entering incorrect dimensions will result in a skewed, scrambled, or corrupted JPEG image because the bytes are parsed sequentially based on the dimensions you provide.

### Which color channel configurations are supported?

You can select 1 channel (Grayscale), 2 channels (Grayscale + Alpha), 3 channels (RGB), or 4 channels (RGBA).

### Does this tool support 16-bit raw pixel buffers?

Yes, you can select either 8-bit or 16-bit per channel as the input bit depth.

### What is the maximum file size I can upload?

The tool supports raw pixel buffer files up to 200 MB in size.

## Related tools

- [Convert JPEG to Raw Pixel Buffer](https://elysiatools.com/en/tools/jpg-to-raw): Export JPEG images as raw pixel buffer files for development workflows and low-level image processing.
- [Convert ARW to JPEG](https://elysiatools.com/en/tools/arw-to-jpg): Convert Sony ARW RAW files to JPEG format. Automatically extracts image dimensions and metadata from the RAW file.
- [Convert CR2 to JPEG](https://elysiatools.com/en/tools/cr2-to-jpg): Convert Canon CR2 RAW files to JPEG format. Automatically extracts image dimensions and metadata from the RAW file.
- [Convert CR3 to JPEG](https://elysiatools.com/en/tools/cr3-to-jpg): Convert Canon CR3 RAW files to JPEG format. Automatically extracts image dimensions and metadata from the RAW file.
- [Convert CRW to JPEG](https://elysiatools.com/en/tools/crw-to-jpg): Convert Canon CRW RAW files to JPEG format. Automatically extracts image dimensions and metadata from the RAW file.
- [Convert DNG to JPEG](https://elysiatools.com/en/tools/dng-to-jpg): Convert DNG (Digital Negative) RAW files to JPEG format. Automatically extracts image dimensions and metadata from the RAW file.
- [Convert Leica RAW to JPEG](https://elysiatools.com/en/tools/leica-raw-to-jpg): Convert Leica RAW files to JPEG format. Automatically extracts image dimensions and metadata from the RAW file.
- [Convert NEF to JPEG](https://elysiatools.com/en/tools/nef-to-jpg): Convert Nikon NEF RAW files to JPEG format. Automatically extracts image dimensions and metadata from the RAW file.

## Samples

- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [JPG Samples](https://elysiatools.com/en/samples/jpg-samples): Sample JPG images in different aspect ratios and resolutions
- [JPG Viewer Samples](https://elysiatools.com/en/samples/jpg-viewer-samples): Sample JPEG images in different aspect ratios for the in-browser JPG Viewer
- [Web Image Processing Go Samples](https://elysiatools.com/en/samples/web-image-processing-go): Web Go image processing examples including image reading/saving, image resizing, and format conversion
