Key Facts
- Category
- Images, Audio & Video
- Input Types
- file, select, checkbox
- Output Type
- file
- Sample Coverage
- 4
- API Ready
- Yes
Overview
Convert PNG images into headerless raw pixel buffer files containing decoded pixel data. This tool is designed for graphics developers, render pipelines, and custom shaders that require direct access to raw pixel values—with options for 8-bit or 16-bit depth and premultiplied alpha—without parsing image headers.
When to Use
- •When loading image textures directly into GPU memory or custom graphics shaders without using standard image decoding libraries.
- •When developing low-level image processing algorithms that require raw, uncompressed pixel arrays.
- •When preparing image assets for embedded systems or custom hardware displays that only accept raw binary pixel buffers.
How It Works
- •Upload a PNG image file from your local device.
- •Select the desired bit depth (8-bit or 16-bit per channel) and choose whether to apply premultiplied alpha.
- •Click convert to decode the PNG and write the raw, headerless pixel buffer directly to a downloadable binary file.
Use Cases
Examples
1. Exporting Game Textures for WebGL Shaders
Graphics Programmer- Background
- A graphics programmer is writing a custom WebGL renderer and needs to load texture data directly into a GPU buffer without the overhead of client-side PNG decoding.
- Problem
- Needs a clean, headerless binary stream of RGBA pixels from a UI sprite sheet.
- How to Use
- Upload the sprite sheet PNG, select '8-bit per channel', check 'Premultiplied Alpha', and download the raw binary file.
- Example Config
-
Bit Depth: 8-bit, Premultiplied Alpha: Enabled - Outcome
- Obtained a raw binary file containing premultiplied RGBA pixel values ready to be loaded directly via WebGL's texImage2D.
2. Preparing UI Assets for an Embedded Display
Firmware Engineer- Background
- An engineer is developing firmware for an STM32 microcontroller connected to a small SPI display that only accepts raw 16-bit color data.
- Problem
- The microcontroller lacks the memory and processing power to run a PNG decoding library.
- How to Use
- Upload the interface icon PNG, select '16-bit per channel' bit depth, and convert the file.
- Example Config
-
Bit Depth: 16-bit, Premultiplied Alpha: Disabled - Outcome
- Generates a raw 16-bit pixel buffer file that can be flashed directly into the microcontroller's read-only memory.
Try with Samples
image, png, fileRelated Hubs
FAQ
Does this tool generate camera RAW formats like DNG or CR2?
No, it outputs a headerless binary buffer of raw pixel data (RGBA/RGB values), not a photographic camera RAW file.
What bit depths are supported for the output buffer?
You can choose between 8-bit and 16-bit per channel for the exported pixel data.
What does the premultiplied alpha option do?
It multiplies the RGB color channels by the alpha channel value during the conversion process.
Does the output file contain width and height metadata?
No, the output is a headerless binary file containing only the raw pixel bytes; you must track the dimensions separately.
What is the maximum file size I can upload?
The tool supports PNG image files up to 50 MB in size.