Free tool · RAW preview · Runs in your browser
JPG to RAW
Short answer
A JPG cannot be turned back into a RAW file. A JPG is a rendered, 8-bit, compressed picture; the sensor data that a RAW file holds is not in it, and no converter can recreate it.
Nothing is uploaded. The tool takes the full-size JPEG preview that the camera stored inside the RAW file; it does not develop the sensor data.
Key takeaways
- RAW and JPG hold different things: a RAW file keeps the values the sensor measured; a JPG keeps a rendered 8-bit picture. In our test the RAW files took 0.6 to 2.3 bytes per sensor pixel and their JPEG previews 0.05 to 0.73.
- Going the other way works: 52 of 79 of the RAW files we tested contained a JPEG, and this tool takes it out in 37 to 122 ms.
- A JPG saved with a .raw or .dng name is still a JPG. Wikipedia describes DNG conversion as extracting the raw image data from a source file and assembling it; a JPG has no raw data to extract.
- If you need more editing room from a JPG, the useful steps are to edit it once, export at high quality, and keep the original; nothing makes up for lost sensor data.
- Wikipedia notes a raw file is typically 2 to 6 times larger than a JPEG; in our files the preview was 0.1% to 19.1% of the RAW size.
Measured: bytes per pixel, RAW against JPEG
Real RAW files in our test took 0.6 to 2.3 bytes per sensor pixel; their JPEG previews took 0.05 to 0.73. If you have the RAW file, this page's tool takes the JPEG out of it.
Measured with the tool's own code (the same functions the page runs) on 79 camera RAW files from the CC0 sample collection at raw.pixls.us: 27 file types from 28 makers, from compact cameras to medium format. Every JPEG the tool extracted was then read by ffprobe and decoded end to end by ffmpeg; the size, quality and sensor figures come from the files themselves.
| Camera | RAW type | RAW file | Sensor megapixels | RAW bytes per pixel | Preview bytes per pixel |
|---|---|---|---|---|---|
| Canon EOS 5DS | CR2 | 29 MB | 49.8 MP | 0.6 | 0.08 |
| Canon EOS 40D | CR2 | 5.8 MB | 2.5 MP | 2.3 | 0.15 |
| Nikon D7200 | NEF | 29 MB | 24.2 MP | 1.2 | 0.06 |
| Nikon D7200 | NEF | 23 MB | 24.2 MP | 0.9 | 0.06 |
| Sony DSLR-A230 | ARW | 14 MB | 10.1 MP | 1.4 | 0.73 |
| Olympus XZ-1 | ORF | 11 MB | 10.2 MP | 1.1 | 0.14 |
| Pentax K10D | PEF | 9.6 MB | 10.3 MP | 0.9 | 0.13 |
| Adobe DNG Converter Canon EOS 5D Mark III | DNG | 24 MB | 10.5 MP | 2.3 | 0.05 |
| Samsung NX500 | SRW | 24 MB | 28.2 MP | 0.9 | 0.14 |
| Sony ILCE-7RM5 | ARW | 41 MB | 30.7 MP | 1.3 | 0.20 |
| Canon EOS 5DS | CR2 | 61 MB | 52.7 MP | 1.2 | 0.08 |
| Nikon D5600 | NEF | 35 MB | 24.2 MP | 1.4 | 0.14 |
| Pentax K-r | DNG | 13 MB | 12.5 MP | 1.1 | 0.12 |
| Samsung GX10 | DNG | 17 MB | 10.3 MP | 1.6 | 0.13 |
| DJI FC350 | DNG | 18 MB | 9.0 MP | 2.0 | 0.48 |
| Autel Robotics XB015 | DNG | 18 MB | 9.0 MP | 2.0 | 0.46 |
| Sony DSC-HX99 | ARW | 19 MB | 18.3 MP | 1.0 | 0.33 |
| Sony DSC-HX95 | ARW | 20 MB | 18.3 MP | 1.1 | 0.57 |
| Hasselblad Lunar | ARW | 25 MB | 24.3 MP | 1.0 | 0.22 |
| Leaf Aptus 22 | MOS | 23 MB | 21.4 MP | 1.1 | 0.30 |
| Leaf Aptus 75 | MOS | 43 MB | 33.3 MP | 1.3 | 0.69 |
| Nikon COOLPIX P950 | NRW | 26 MB | 16.0 MP | 1.6 | 0.12 |
| Nikon COOLPIX P1000 | NRW | 26 MB | 16.0 MP | 1.6 | 0.11 |
| Nikon D2Xs | NEF | 10 MB | 12.4 MP | 0.8 | 0.12 |
| Nikon 1 J1 | NEF | 11 MB | 10.2 MP | 1.1 | 0.13 |
| Nikon D2X | NEF | 13 MB | 12.4 MP | 1.0 | 0.13 |
| Olympus C7070WZ | ORF | 11 MB | 7.1 MP | 1.5 | 0.33 |
| Olympus STYLUS1,1s | ORF | 11 MB | 12.0 MP | 1.0 | 0.12 |
| Olympus E-M5 Mark III | ORF | 18 MB | 20.5 MP | 0.9 | 0.13 |
| Pentax K-r | PEF | 13 MB | 12.5 MP | 1.1 | 0.12 |
| Pentax K-1 | PEF | 47 MB | 36.6 MP | 1.3 | 0.12 |
| Pentax 645D | PEF | 63 MB | 41.2 MP | 1.5 | 0.13 |
| Sony DSC-F828 | SRF | 17 MB | 8.3 MP | 2.1 | 0.49 |
| Sony DSC-R1 | SR2 | 21 MB | 10.4 MP | 2.0 | 0.53 |
A rendered picture and a RAW file are different amounts of information. The RAW file stores a number for every sensor pixel, with 12 to 14 bits per value; the JPEG stores a compressed 8-bit picture, which is why it is so much smaller.
What you can do instead
- If you still have the RAW file, extract its JPEG with the tool above or develop it in a RAW editor.
- If you only have the JPG, edit it once at the best quality available and keep the original.
- If a service asks for RAW, it needs the camera file; a renamed JPG will be rejected or treated as a JPG.
- If you want a DNG, convert from the camera RAW with a RAW converter; Wikipedia describes conversion as extracting the raw image data from the source file and assembling it in the DNG layout.
What you get: the camera's picture, not your RAW data
The preview is what the camera rendered at the moment of shooting: its white balance, its picture style, its sharpening, in 8 bits per channel. Wikipedia notes that processing from the sensor to a viewable image involves operations such as demosaicing, color translation and compression, and that a RAW developer lets you change them afterward; the preview has them baked in.
That makes it a good proof and a good file to share quickly, and a poor starting point for rescuing a dark or blown-out frame. If you need that, develop the RAW file in a RAW editor.
How the preview is found
Most RAW formats are built on the TIFF layout, and others (Canon CR3, Fujifilm RAF, Sigma X3F) have their own. Rather than rely on each maker's tags, the tool walks the file looking for the start of a JPEG and then reads that JPEG segment by segment until its end marker, so a stray byte pair inside compressed data is not mistaken for an image. It keeps baseline and progressive JPEGs and skips the lossless JPEG streams that hold the sensor data themselves.
It then picks the largest picture, lists the others, and saves it unchanged. Scanning took 37 to 122 ms in a browser for files of 43 MB to 64 MB.
How the numbers were measured
The tool's own scanning code ran on 79 CC0 files; the script, the list of files and the full results are saved with the page's evidence. For each file we recorded every JPEG found, the one used, its estimated quality (from the luminance quantization table, compared with the standard table), and the sensor image size where the file states it. Each extracted JPEG was read by ffprobe and decoded by ffmpeg to the end: 52 of 52 passed.
Questions people ask
How do I convert RAW to JPG?
Choose the file above. If it holds a JPEG preview, the tool saves it as a JPG. It works in your browser; nothing is uploaded.
Is my file uploaded?
No. The file is read and the JPEG is taken out in your browser.
Is this the same as developing the RAW file?
No. It saves the picture the camera already rendered. Developing reads the sensor data and lets you change white balance, exposure and more; that needs a RAW editor.
Why is the picture smaller than my camera's resolution?
Many cameras store a smaller preview than the sensor image. In our test 15 of 34 previews with a known sensor size had under 90% of its pixels.
Does it lose quality?
The JPEG is saved exactly as the camera stored it, without being compressed again. The only quality limit is the camera's own preview.
Can I convert many files at once?
Yes. Choose several files; download each one or a ZIP.
Does it keep the date and camera settings?
Whatever the camera stored in the preview's Exif is kept. Use the EXIF remover if you want it gone.
How big is the file I get?
In our test the preview was 0.1% to 19.1% of the RAW file's size (6 KB to 10 MB).
Why not just open the RAW file in my photo app?
You can, and a RAW editor gives you more control. This tool is for when you need a JPG quickly, on a device without that software.
Related
Sources and how we checked
- Wikipedia: Raw image format (read 2026-10-10)
- Wikipedia: Digital Negative (DNG) (read 2026-10-10)
- raw.pixls.us: RAW sample database (CC0) (read 2026-10-10)
- FFmpeg Documentation: ffprobe (used to check every extracted JPEG) (read 2026-10-10)
Reviewed October 10, 2026. The measurements ran the tool's own code on 79 camera RAW files from the CC0 collection at raw.pixls.us and decoded every extracted JPEG with ffmpeg. The files and results are in data/seo/hub/evidence/2026-10-10/raw.