ARGB to JPG Converter
Convert ARGB image files to JPG format online. Handles raw ARGB pixel data and ARGB-ordered images with alpha compositing over custom backgrounds.
Drop your ARGB file here or browse
Raw ARGB, PNG, or BMP โข Max 50 MB
Processing...
Source (ARGB)
Output (JPG)
About
ARGB is a pixel format where each pixel stores 4 bytes in the order Alpha, Red, Green, Blue. It appears in raw framebuffer dumps, Android Bitmap exports, DirectX surfaces, and certain embedded graphics pipelines. Converting ARGB to JPG requires alpha compositing: JPG has no transparency channel, so every translucent pixel must be blended against a chosen background color using the standard "over" operator Cout = Csrc โ ฮฑ + Cbg โ (1 โ ฮฑ). Getting the byte order wrong (confusing ARGB with RGBA or BGRA) produces color-shifted or corrupted output. This tool parses raw ARGB buffers given explicit dimensions and also accepts standard PNG files that use ARGB channel ordering internally.
JPEG quality Q controls the DCT quantization step. Values below 60 introduce visible block artifacts, while values above 92 yield diminishing file-size returns. This tool approximates lossless visual fidelity at Q = 92 by default. Note: any pixel with ฮฑ = 0 becomes pure background color. If your source uses premultiplied alpha, results will appear darker than expected because this tool assumes straight (non-premultiplied) alpha.
Formulas
Alpha compositing uses the "source over" operation to flatten a transparent pixel onto an opaque background. For each color channel:
Where ฮฑ is normalized to [0, 1] by dividing the 8-bit alpha byte by 255:
Raw ARGB buffer size validation ensures the file contains exactly the expected number of bytes:
Where W = width in pixels, H = height in pixels. If the file size does not equal sizeexpected, the dimensions are incorrect or the format is not raw ARGB.
JPEG quality Q maps to a quantization scaling factor. For Q < 50: S = 5000 รท Q. For Q โฅ 50: S = 200 โ 2 ร Q. Lower S produces finer quantization and larger files.
Reference Data
| Pixel Format | Byte Order | Bytes/Pixel | Alpha | Common Source |
|---|---|---|---|---|
| ARGB8888 | A-R-G-B | 4 | Yes (8-bit) | Android Bitmap, DirectX |
| RGBA8888 | R-G-B-A | 4 | Yes (8-bit) | OpenGL, WebGL, PNG |
| BGRA8888 | B-G-R-A | 4 | Yes (8-bit) | Windows GDI, BMP |
| ABGR8888 | A-B-G-R | 4 | Yes (8-bit) | Some GPU framebuffers |
| RGB888 | R-G-B | 3 | No | Raw camera, BMP 24-bit |
| BGR888 | B-G-R | 3 | No | OpenCV default |
| RGB565 | R(5)-G(6)-B(5) | 2 | No | Embedded LCD, Android |
| ARGB4444 | A(4)-R(4)-G(4)-B(4) | 2 | Yes (4-bit) | Legacy Android |
| ARGB1555 | A(1)-R(5)-G(5)-B(5) | 2 | Yes (1-bit) | PlayStation, legacy GPU |
| Grayscale+A | G-A | 2 | Yes (8-bit) | Medical imaging |
| JPEG (baseline) | Y-Cb-Cr (DCT) | Variable | No | Web, cameras |
| PNG | R-G-B-A (filtered) | Variable | Optional | Web, screenshots |
| WebP | VP8/VP8L | Variable | Optional | Web |
| TIFF (32-bit) | Varies | 4 | Optional | Print, GIS |
| BMP (32-bit) | B-G-R-A | 4 | Optional | Windows |