Free online · No sign-up · No watermark
Convert PNG to RAW Pixel Data Online
This PNG to RAW converter strips a PNG down to its plain pixel values and saves them as an uncompressed RAW file. It works as a PNG to RAW online tool for developers who load images into code, microcontroller displays and analysis tools that can't decode PNG. The output is raw pixel data, not a camera RAW file like CR2 or NEF.
Drop any file here or browse
PNG files · Up to 20 files at once
Files are encrypted and auto-deleted within 24 hours.
- Instant conversion
- 100% private
- No registration
- All formats
How it works
Turn a PNG into raw pixel bytes in 4 steps
Four steps, all in your browser. Nothing to install.
-
Step 1
Upload your PNG file
Click Choose files or drop your PNG into the box. Sprites, icons, screenshots and full images all work, and you can add up to 20 files at once.
-
Step 2
Choose RAW as the output
RAW is already set as the target format on this page. If it isn't, select it from the output list.
-
Step 3
Click Convert
Press Convert to turn the PNG into an uncompressed RAW image. The PNG is decoded and its pixels are written out in order, row by row, with no header or compression.
-
Step 4
Download your file
Click Download to save the RAW file. Note the image width and height before you close the page, because the RAW file doesn't store them.
FAQ
Questions about PNG to RAW conversion
The questions developers and makers ask before converting.
Can you convert a PNG into a camera RAW file?
No. A camera RAW file (CR2, NEF, ARW) holds sensor readings that only a camera can capture. A PNG to RAW conversion gives you the image's decoded pixel values in a plain, headerless file. That's what most people searching for "png to raw" need for code or hardware.
Is transparency kept when converting PNG to RAW?
Only if the RAW file stores four channels (RGBA). Because a RAW file has no header, nothing inside it says that the fourth byte is alpha. When you load the file, tell your software the layout, or it will read the colors in the wrong order.
Why is the RAW file bigger than my PNG?
PNG uses lossless compression, so flat areas and repeated patterns take up very little space. RAW stores every pixel at full size. A 1920 x 1080 image with RGBA pixels comes to about 8.3 MB as RAW, even if the PNG was only a few hundred KB.
Can I convert PNG to RAW RGB565 for a display?
RGB565 packs each pixel into 2 bytes, which many small TFT screens expect. Check the pixel format of the downloaded RAW file against your display driver. If it's 8 bits per channel, you'll need a short script to repack the bytes before flashing them.
How do I open a RAW file made from a PNG?
Use a tool with a raw import option. In GIMP, open the file and choose Raw image data, then enter the width, height and pixel format. In Python, numpy.fromfile reads the bytes and reshape turns them back into rows and columns.
Still have questions? Our team replies within 24 hours.
Contact supportWhy A2Z Converter
A PNG to RAW tool that fits developer workflows
Get clean pixel data without writing a decoder, installing ImageMagick or spinning up a script.
Convert my PNG nowHeaderless output
The RAW file is just pixel bytes in row order, ready to read with fread, numpy.fromfile or a firmware loader.
Batch sprites and icons
Drop up to 20 PNGs at once, such as a full icon set or sprite sheet frames, and download them together.
Lossless in, exact out
PNG is lossless, so the pixel values in your RAW file match the PNG exactly. No rounding and no color drift.
Private by default
Uploads travel over an encrypted connection and are wiped from our servers within 24 hours.
Any OS, any browser
Works on Windows, Mac, Linux, Chromebook and phones. Handy when your build machine has no image tools.
Real people on support
Email us with your file and target format and we'll reply within 24 hours.
What is a RAW file made from a PNG?
PNG (Portable Network Graphics) is a lossless image format from 1996. It compresses pixel data with the Deflate algorithm and wraps it in chunks that store the width, height, color type and, optionally, transparency. To read a PNG, software needs a decoder such as libpng, zlib or a language library like Pillow.
A RAW file removes that work. Once a PNG is converted to RAW, the file is simply the pixel values one after another. That makes it easy to load on hardware with little memory, to copy into a frame buffer, to embed in C source as a byte array, or to feed into tools like ImageJ and GIMP using their raw import options, where you enter the width, height and channel order yourself.
Keep a copy of the PNG. It's smaller, it keeps its own size information, and you can convert it to a different pixel layout later. Think of the RAW file as the build output and the PNG as the source.
Embedded projects are the biggest group, and "png to raw bytes for embedded display" is one of the most common requests we see. Arduino, ESP32 and STM32 boards driving small TFT or OLED screens often have no room for a PNG decoder, so the image is stored as raw bytes and pushed straight to the display. Game developers do something similar for textures and fonts on retro or homebrew consoles.