Convert CR2 to WebP

Converting CR2 to WebP takes the JPEG your Canon embedded in the raw file and re-encodes it as WebP, which is the right target when the picture is going onto a web page rather than into an inbox. Expect a quarter to a third fewer bytes than the equivalent JPG, and set a maximum width while you convert — a 6,000-pixel image is not what a gallery needs.

  • Where it runs In your browser. The file is never uploaded.
  • Lossy Some detail is traded for size. WebP cannot hold everything a CR2 can.
  • File size limit Up to 100 MB per file, free, without an account.
  • Worth knowing This extracts the preview your camera wrote when it took the photograph, at full resolution on almost every camera. It is the camera’s own rendering, so its picture style is baked in and the extra highlight and shadow latitude that is the reason to shoot raw is not in it. Perfect for viewing, sending or uploading; not a substitute for developing the file.

Up to 100 files at once. Mixed formats are fine.

Why WebP is the target when the CR2 is destined for a web page

The reason to pick WebP over JPEG is bytes. For the same visible quality it typically lands a quarter to a third smaller, and on a page with thirty photographs on it that saving compounds into something a visitor can feel. Largest Contentful Paint is usually an image, and on a photography site it is always an image.

The reason it is safe to pick is that the compatibility question closed. WebP is supported in every current browser and standardised as RFC 9649. Serving it no longer requires a fallback chain, a picture element with three sources, or a conversation with a client about old versions of Safari.

The two compressions between the sensor and the WebP

Here is the part most pages would leave out. A CR2 is not developed here; the converter locates the finished JPEG that your Canon wrote inside the file at the moment of capture and works from that. Producing a WebP means decoding that JPEG and encoding it again, so the picture passes through two lossy encoders on its way to your website.

At the default quality of 82, and at the pixel dimensions a web page actually displays, the second pass is not something a viewer will spot. It is still worth understanding for one practical reason: always convert from the CR2, not from a WebP or JPG you exported earlier. Each additional round trip costs a little more, and the chain has already used one of its lives.

Resizing matters more than quality on a CR2 to WebP job

The embedded preview is the camera’s full-resolution rendering — a 5D Mark IV gives 6,720 pixels across, a 5DS 8,688. A responsive image on a website is served at perhaps 1,600 or 2,400 pixels for a high-density display, and everything beyond that is bytes the browser downloads and throws away.

So set a maximum width. Going from 6,720 to 2,000 pixels removes about nine-tenths of the pixel count, which dwarfs anything the quality slider can do and costs nothing visible. Dropping quality from 82 to 60 on a full-size image is the wrong lever pulled in the wrong order.

What a WebP gallery gives up compared with the Canon original

The output is the camera’s own rendering, with the picture style you had loaded — Standard, Landscape, Faithful — already applied and unchangeable. If the shoot needs consistent grading before it goes online, that has to happen in a raw developer working from the CR2, and this page is the wrong stage of the pipeline.

The metadata also goes, because a re-encode does not carry EXIF through. For public web images that is a benefit: a property listing photographed with a GPS-tagging body should not publish the coordinates, and a portfolio does not need to broadcast the lens. If you want credit or copyright fields in the file, they have to be written into the WebP afterwards.

Converting a Canon shoot without handing it to a website first

This runs in your browser. For a working photographer that is not a detail — an unpublished shoot, a client’s property, a set under embargo — none of it goes anywhere. The conversion is JavaScript and a WebAssembly encoder downloaded to your machine, operating on files that stay on it.

It also means the batch is bounded by your computer rather than by a plan. Drop a folder, get a ZIP, with a 100 MB per-file ceiling on the free tier that no CR2 comes near.

Where WebP still loses to AVIF, and why CR2 to WebP is usually right anyway

AVIF compresses better than WebP at the same quality, sometimes considerably, and it is also supported broadly now. If page weight is the only consideration it is the stronger choice.

WebP wins on the other axes: it encodes far faster, which is what you notice converting two hundred frames in a browser tab, and every CMS, image plugin and CDN understands it without configuration. For a gallery of Canon photographs the difference in delivered bytes is smaller than the difference in the hour you spend getting there.

Naming and serving the files after the conversion

The output arrives named after the source, so IMG_4821.CR2 becomes IMG_4821.webp. That is convenient for matching a delivered gallery back to the originals and unhelpful for search, because a camera’s serial filename tells a crawler nothing.

Rename before uploading, and write alt text that describes the photograph rather than repeating the filename. Neither of those is something a converter can do for you, and both matter more to how the gallery performs than the choice between WebP and JPEG does.

The 16,383-pixel ceiling and the one case it bites

WebP cannot store an image longer than 16,383 pixels on either side. Nothing that comes out of a Canon DSLR approaches that, so for a straight CR2 conversion the limit is theoretical.

It becomes real if you stitch first. A panorama assembled from eight or ten CR2 frames can pass 16,383 pixels easily, and at that point WebP is simply not able to hold it — the picture has to go out as JPEG, or be split, or be scaled down. Worth knowing before a stitching session rather than after.

A sensible pipeline for a Canon archive going online

Keep the CR2 files as the masters, on the assumption that they will outlive whatever the site is built in. Extract WebP at the size the site actually serves, and regenerate rather than upscaling if the design later changes.

For the handful of images that carry the page — a hero, a cover, the one everybody looks at — it is worth going back to the CR2 in a raw developer and doing the work properly. For the other ninety per cent, the camera’s own rendering resized to 2,000 pixels is indistinguishable from the careful version and takes seconds instead of minutes.

How to get web-ready WebP files out of Canon CR2 captures

  1. Drop your CR2 files onto this page, or click to choose them.
  2. Set a maximum width — 1,600 to 2,400 pixels suits most web galleries.
  3. Download the WebP files, or take the whole set as a ZIP.

CR2 vs WebP: a 35 MB capture against a page-weight budget

CR2 compared with WebP
CR2WebP
Full nameCanon Raw 2WebP Image
File extension.cr2.webp
Media typeimage/x-canon-cr2image/webp
CompressionLossless — nothing is discardedEither, depending on the setting
First published20042010
Published byCanonGoogle
SpecificationRFC 9649
LicensingProprietaryOpen standard
Standing todayLegacy, still read everywhereCurrent
Bit depth148
Colour it can describeRGBRGB, YCbCr
Largest image16,383 px per side
Opens in a browserNo browserEvery browser
Considered insteadDNG, TIFF, JPGAVIF, JPG, PNG

What is lost

WebP has nowhere to put the GPS coordinates, so that goes no further than the CR2. Worth checking before the original is deleted, and worth knowing if the point was to strip it.

CR2 carries up to 14 bits per channel and WebP stores 8. The extra precision is what survives heavy correction without banding, so the conversion is best made after the editing rather than before it.

What the target format adds

WebP supports transparency and CR2 does not. That is room the result has and the original never used — converting does not create a transparent background, it only makes one possible afterwards.

Opening the result

WebP opens in every current browser. CR2 has narrower browser support than that. If the file is going onto a web page or into a form, that is usually the whole reason for the conversion.

CR2 dates from 2004 and is largely superseded. WebP is what current software writes, so the conversion is as much about staying readable as about the file itself.

CR2 is a vendor format; WebP is a published specification (RFC 9649). That matters for anything meant to still open in ten years, when the program that wrote the original may not be around.

The usual programs do not overlap: CR2 opens in Adobe Lightroom, Canon Digital Photo Professional and darktable, WebP in Adobe Photoshop, GIMP and Squoosh — so whoever receives the result needs something from the second list.

What each format is for

The two are aimed at different work: CR2 at photography and editing, WebP at the web and handing a finished file over. That is worth weighing before converting, because the reason one exists is usually the reason the other is awkward.

CR2 is Canon's format, published in 2004. It comes out of Canon EOS digital SLRs. Underneath it is TIFF, which is why a program that has never heard of CR2 can sometimes still open one.

WebP comes from Google and dates from 2010, specified as RFC 9649. Adobe Photoshop, GIMP and Squoosh all read it.

CR2 to WebP: questions from people publishing photographs

Are my CR2 files uploaded anywhere?

No. This conversion runs entirely inside your browser, so the file never leaves your device. You can confirm it yourself: open the network tab of your browser's developer tools and convert something. You will see the page load, plus the analytics and advertising the site is paid for with — and nothing carrying your file. The engine behind this particular pair is a raw preview extractor, which pulls the JPEG the camera already embedded rather than developing the sensor data; your browser fetches it once and caches it.

How much smaller is WebP than the JPG from the same CR2?

Typically a quarter to a third fewer bytes at a comparable visible quality, which is the reason WebP exists. On a gallery of forty images that is the difference between a page that feels instant and one that does not.

Is the picture compressed twice?

Yes, and it is worth knowing. The converter extracts the JPEG your Canon embedded at capture, decodes it, and encodes it again as WebP — two lossy passes. At the default quality of 82 and at the sizes images are displayed on a web page the second pass is not visible, but it is real, and it is a reason to convert once from the original rather than repeatedly from your own output.

Should I resize while converting?

Almost always, for web use. A Canon CR2 preview is the full sensor dimensions — often 6,000 pixels or more across — and no web page displays that. Setting a maximum width of 1,600 or 2,000 pixels cuts the file size far more than any quality setting will, and removes detail nobody was going to see.

Do all browsers show WebP now?

Yes. WebP is supported across every current browser and is a published standard, RFC 9649. The compatibility argument against it was real ten years ago and is not any more.

Does the WebP keep the camera EXIF?

No. The conversion decodes and re-encodes, so the EXIF block does not survive — no lens, no exposure settings, no GPS. For images going onto a public website that is usually the outcome you want anyway.

Is there a pixel limit on WebP?

WebP tops out at 16,383 pixels on a side. No Canon CR2 comes close — a 50-megapixel 5DS frame is 8,688 pixels wide — so this only matters if you have stitched a panorama before converting.

More about these formats

Where these figures come from

The claims this page makes about CR2 and WebP are checkable, and these are the documents that settle them.