If you’ve ever imported photos from a DSLR or mirrorless camera and found files that won’t open in a regular browser or photo viewer, there’s a good chance they’re RAW files — and understanding what they actually are will save you from a common, avoidable mistake: uploading them straight to a website.
Table of Contents
What a RAW File Format Actually Is
A RAW file is the unprocessed, uncompressed sensor data captured directly by a camera — before any of the processing (sharpening, color correction, compression) that turns it into a standard viewable image like a JPG. Think of it as a digital film negative: all the captured information is there, but it needs to be “developed” through photo editing software before it’s a finished, shareable image.
RAW isn’t actually one single format — it’s a category, with each camera manufacturer using its own variant: Canon’s CR2/CR3, Nikon’s NEF, Sony’s ARW, and Adobe‘s more universal DNG format, among others. This is part of why RAW files can be tricky to work with: a NEF file might not open correctly in software that only supports CR2, for example.
Want to try it yourself? Compress your images free — no upload, no signup.
Why RAW Files Exist
Professional and enthusiast photographers shoot in RAW specifically because it preserves far more information than a JPG does straight out of the camera:
- Greater dynamic range — more detail preserved in both very bright and very dark areas of a photo, giving more room to recover detail when editing
- No in-camera compression artifacts — a JPG applies lossy compression the moment the photo is taken; RAW captures everything before that step
- More editing flexibility — white balance, exposure, and color corrections can be adjusted far more significantly in a RAW file without visible quality degradation, compared to attempting the same edits on an already-processed JPG
The trade-off is file size: a RAW file is typically 20-100MB, compared to a few megabytes for an equivalent JPG — a direct consequence of storing all that additional, unprocessed data.
What Does RAW Mean on iPhone?
Newer iPhones (Pro models, starting with the iPhone 12 Pro) support a format called ProRAW, which combines standard RAW’s editing flexibility with some of Apple’s computational photography processing already applied — a hybrid rather than a purely unprocessed RAW file. ProRAW files use the .DNG extension, the same universal RAW format Adobe created, so they open in the same editing software as any other DNG file.
ProRAW isn’t turned on by default — it’s a setting you have to enable (Settings → Camera → Formats → Apple ProRAW), and even then, it’s chosen per-photo via a toggle in the Camera app rather than replacing every photo you take. The same rule applies here as with any RAW file: it’s an editing-stage format, not something to upload directly to a website.
Common RAW File Extensions by Manufacturer
| Manufacturer | Extension |
|---|---|
| Canon | .CR2, .CR3 |
| Nikon | .NEF |
| Sony | .ARW |
| Apple (ProRAW) | .DNG |
| Adobe (universal) | .DNG |
| Fujifilm | .RAF |
| Panasonic | .RW2 |
| Olympus | .ORF |
If a file has one of these extensions, it’s a RAW file — and by everything covered above, it needs to be edited and exported before it belongs anywhere on a website.
Why You Should Never Upload RAW Files to a Website
This is the practical point worth understanding clearly: RAW files aren’t a web format at all, and browsers can’t display them. No browser — Chrome, Firefox, Safari, Edge — can render a RAW file directly; if you somehow uploaded one to a website, visitors would see a broken image or a download prompt, not a photo.
Beyond that fundamental incompatibility, RAW’s massive file size makes it a poor fit for the web even if browsers could display it — a single RAW photo can be larger than an entire optimized web page’s worth of properly compressed JPGs combined.
The Correct Workflow: RAW for Editing, JPG/WebP for Publishing
If you shoot in RAW (or receive RAW files from a photographer), the standard workflow is:
- Edit the RAW file in software built to handle it — Adobe Lightroom, Capture One, or free options like Darktable or RawTherapee
- Export/convert to a web-appropriate format once editing is finished — typically JPG for photos, or WebP for further savings
- Compress and resize the exported file to appropriate web dimensions, exactly as you would with any other photo source
The RAW file itself stays as your archival original — useful to keep if you might want to re-edit later with different settings, but never the file that actually gets published anywhere.
Do You Need to Shoot in RAW at All?
For most website content — blog photography, product shots, casual imagery — shooting directly in JPG is often perfectly fine, especially if lighting conditions are good and heavy editing isn’t planned. RAW’s real advantages show up specifically when:
- Lighting conditions are difficult (very bright or very dark scenes where recovering detail matters)
- Significant color or exposure correction is anticipated
- The photos might be used for print or other high-quality purposes beyond just the web, where the extra captured detail has more room to matter
If none of that applies, shooting JPG directly and skipping the RAW conversion step entirely is a reasonable, simpler choice.
Ready to shrink your images?
Compress and resize JPG, PNG, and WebP files for free, right in your browser. No uploads, no signups, no waiting.
Compress Images Now →Frequently Asked Questions
What is a RAW file and why use it?
A RAW file is unprocessed sensor data straight from a camera, before any compression or in-camera processing is applied. Photographers use it for the extra editing flexibility it preserves — more recoverable detail in shadows and highlights, and more room to correct color and exposure without visible quality loss.
Do I need both RAW and JPEG?
Many cameras can save both simultaneously for every shot — the RAW file for editing flexibility, and an instantly viewable/shareable JPEG for quick use without any processing. This is a reasonable default if storage space isn’t a major constraint, since it gives you the editing option later without holding up anything you need to share immediately.
Is JPG a RAW file?
No — JPG is a processed, compressed, standard image format. RAW is the unprocessed format that comes before any JPG is created from it.
Is a PNG a RAW file?
No — PNG is a processed, lossless image format, same category as JPG in this sense. Neither PNG nor JPG is RAW; both are finished, camera- or software-processed formats meant for viewing and sharing.
Can I convert a RAW file directly to WebP?
Not directly in most cases — RAW files typically need to go through photo editing software first (even just an “open and export” pass with no actual edits), since RAW processing software handles the conversion from raw sensor data to a standard image format. From there, converting the exported JPG or TIFF to WebP works the same as any other image.
Is DNG the same as JPG?
No — DNG (Digital Negative) is Adobe’s own RAW format, designed to be a more universal, manufacturer-independent RAW standard. It’s still a RAW file, not a viewable web format, and needs the same edit-then-export workflow as any other RAW file.
Does shooting RAW improve final web image quality?
It can, primarily by giving you more room to correct exposure, white balance, and color before the final export — but the actual file published to the web ends up as JPG or WebP either way, so the RAW advantage is entirely in the editing process, not in the final published file itself.
Once your RAW file is edited and exported, compress and resize it for the web for free with our browser-based tool — no upload required; everything happens in your browser.

