TIFF to RAW Converter
Decode a TIFF and dump its pixels as headerless RAW bytes in the layout your code expects — RGBA, BGR for OpenCV, RGB565 for embedded displays — or as a C header.
TIFF to RAW Converter
Load an image to see its first 64 bytes.
–
Runs in your browser — nothing you enter is uploaded or stored.
Scratchpad auto-saved
How it works — in four simple steps
No signup and nothing to install — it all runs in your browser.
Drop a TIFF
It's decoded in your browser.
Choose the pixel layout
RGBA, RGB, BGR, RGB565… plus row order and premultiplied alpha.
Pick the output
Binary .raw, a C header or hex text.
Download and note the size
Width, height and layout are in the file name; RAW has no header.
Note the width, height and pixel layout — RAW has no header, so the reader must be told them. They're also put in the file name.
Features
Eight pixel layouts
RGBA, RGB, BGRA, BGR, ARGB, grayscale, gray + alpha and RGB565 — as .raw, a C header or hex.
Built-in TIFF decoder
Opens LZW, ZIP, PackBits, JPEG and CCITT fax TIFFs, tiles, CMYK, 16-bit and multi-page files — no plugin.
Nothing uploaded
Decoding and encoding run in your browser tab; the files never leave your device.
About the TIFF to RAW Converter
TIFF is common in scientific imaging, machine vision and scanning, but microcontrollers, GPU upload code and quick NumPy experiments want a flat array of pixels. Decoding TIFF variants (LZW, predictor, tiles, 16-bit) yourself is tedious; this does it and writes exactly the bytes you choose.
Your TIFF is read by our own decoder (browsers other than Safari can't open TIFF): uncompressed, LZW (with predictor), Deflate/ZIP, PackBits, JPEG-in-TIFF and CCITT Group 3/Group 4 fax compression; strips or tiles; 1, 2, 4, 8, 16 and 32-bit samples; grayscale, RGB, palette and CMYK; planar or interleaved; orientation tags honoured; and every page of multi-page files.
After decoding, the pixels are read from a canvas and written in the layout you choose — channel order, top-down or bottom-up rows, optional premultiplied alpha — with no header or padding. Snippets for NumPy, FFmpeg and ImageMagick show how to read the file back.
TIFF vs RAW pixels compared
| Property | TIFF | RAW pixels |
|---|---|---|
| Origin / standard | Aldus, 1986 · TIFF 6.0 (1992, Adobe) | No standard — a plain pixel dump |
| Compression | None, LZW, Deflate, PackBits, JPEG, CCITT fax | None |
| Transparency | Extra-sample alpha channel | If the layout includes it (RGBA, BGRA, ARGB, YA) |
| Colour depth | 1–32 bits per sample; gray, RGB, palette, CMYK | 8-bit channels, RGB565, grayscale |
| Animation / pages | Multi-page | No |
| Maximum size | 4 GB file (32-bit offsets) — BigTIFF beyond | Any |
| Typical use | Print, scanning, fax, archives, GIS | Firmware, GPU uploads, NumPy, FFmpeg rawvideo |
| Opens in | Photoshop, Preview, Windows Photos, GIMP; only Safari among browsers | Code, FFmpeg, ImageMagick (with size given) |
RAW file sizes
RAW output has no compression, so its size depends only on the dimensions and the pixel layout — exactly width × height × bytes per pixel:
| Image | RGBA / BGRA / ARGB | RGB / BGR | RGB565 · gray + alpha | Grayscale |
|---|---|---|---|---|
| 320 × 240 | 307,200 | 230,400 | 153,600 | 76,800 |
| 800 × 480 | 1,536,000 | 1,152,000 | 768,000 | 384,000 |
| 1920 × 1080 | 8,294,400 | 6,220,800 | 4,147,200 | 2,073,600 |
Sizes in bytes. A C header (.h) is about 6× larger as text, hex text about 3×.
Things to know
- 16-bit becomes 8-bit. Samples are exported at 8 bits per channel. For full 16-bit scientific data, use a dedicated library.
- Only the first page. Multi-page TIFFs export their first page.