Drag files or click to select
Convert files online
Drag files or click to select
Convert files online
What is RW2 to AVIF conversion?
RW2 to AVIF conversion transforms Panasonic Lumix RAW files into a modern image format built on the AV1 video codec. RW2 (Panasonic Raw v2) is Panasonic's proprietary format used by all Lumix mirrorless cameras in the S series (S1, S1R, S1H, S5, S5 II, S5 IIX) and Micro Four Thirds GH and G lines (GH4, GH5, GH5S, GH6, GH7, G9, G9 II), plus enthusiast compacts like the LX100 II. Technically RW2 is TIFF-derived, but Panasonic uses its own magic number 0x55 in the file header to distinguish RW2 from standard TIFF (0x2A). The file holds 12-14 bit sensor data, full EXIF, Panasonic Maker Notes, and an embedded JPEG preview.
AVIF (AV1 Image File Format) was standardized by the Alliance for Open Media (AOM) in 2019. The alliance includes the largest technology companies: Google, Apple, Microsoft, Amazon, Netflix, Meta, Mozilla, and Intel. This backing guarantees long-term development and broad adoption across browsers, operating systems, and software.
AVIF is not just another image format. It is the result of years of video compression research adapted for still images. The AV1 codec was originally developed for 4K and 8K video streaming, which explains its exceptional efficiency on photographs. Compared to JPG, AVIF delivers files 30-50% smaller at the same visual quality, with even greater savings on complex scenes.
Converting RW2 to AVIF turns the large Lumix working digital negative into the most compact modern image. A 24-megapixel photo from the Lumix S5 II at 25 MB in RW2 becomes a 0.8-2 MB AVIF - a 12-30x reduction. At the same time AVIF preserves more detail than JPG of the same size, especially in dark areas and gradients.
History of AVIF and the AV1 codec
AV1 (AOMedia Video 1) has been in development since 2015 as an open, royalty-free alternative to proprietary video codecs like H.265/HEVC. The alliance's goal was to create a next-generation codec without licensing fees that could be used freely in browsers, streaming services, and software.
Key milestones:
- 2015 - founding of the Alliance for Open Media.
- 2018 - finalization of the AV1 specification.
- 2019 - publication of the AVIF specification for still images.
- 2020 - Chrome becomes the first browser with AVIF support.
- 2021 - Firefox adds AVIF support.
- 2022-2023 - Safari gains full AVIF support in iOS 16 and macOS Ventura.
- 2024-2025 - AVIF becomes broadly supported across all modern browsers and operating systems.
AV1 includes more than 100 compression innovations: flexible block prediction, superblocks from 4x4 to 128x128 pixels, warped motion compensation, and film grain synthesis (preserving film grain with minimal size impact). These technologies were designed for video but work excellently for photographs from Lumix sensors.
RW2 vs AVIF comparison
| Characteristic | RW2 (Panasonic RAW) | AVIF |
|---|---|---|
| Developer | Panasonic | Alliance for Open Media |
| Introduced | 2008 (Lumix LX3) | 2019 |
| Underlying codec | Panasonic proprietary | AV1 (video codec) |
| Format type | RAW (sensor data) | Final raster image |
| Colour depth | 12-14 bits per channel | 8, 10, 12 bits per channel |
| Compression | Lossless | Lossy / lossless |
| Transparency | No | Yes (full alpha channel) |
| HDR | Through RAW processing only | Yes (PQ, HLG) |
| Wide colour gamut | Linear sensor RGB | sRGB, BT.2020, Display P3 |
| File size (24 MP) | 20-30 MB | 0.8-2 MB (lossy q60-70) |
| File size (47 MP S1R) | 40-55 MB | 1.5-4 MB |
| Browser support | None | Universal in modern browsers |
| Licence | Panasonic proprietary | Open, royalty-free |
| Dynamic range | 12-14 EV | Up to 12 EV with 12-bit encoding |
| Max resolution | Up to 47 MP (Lumix S1R) | Up to 65536x65536 px |
RW2 is a format for capture and processing in RAW converters; AVIF is a format for web distribution and storage of finished images in the most compact form. Converting RW2 to AVIF radically reduces file size, and saving as 10- or 12-bit AVIF can partially preserve the wide colour gamut and dynamic range of the Lumix sensor.
Advantages of AVIF when converted from RW2
Superior compression
AVIF delivers files 30-50% smaller than JPG at equivalent visual quality. Compared to WebP, the savings are 20-30%. For large sites this translates into:
- Bandwidth savings measured in terabytes monthly.
- Lower server and CDN load.
- Reduced hosting and data transfer costs.
For a photographer's portfolio with hundreds of 47-megapixel Lumix S1R frames, switching to AVIF cuts total gallery size 3-5 times compared to JPG.
HDR and wide colour gamut support
AVIF is the first widely supported web format with HDR:
- 10-bit and 12-bit colour depth - 1,024 or 4,096 brightness levels instead of 256 in JPG.
- Wide colour gamut (BT.2020) - more shades, especially greens and reds, than sRGB.
- PQ and HLG - HDR standards for modern displays.
For Lumix S1H cameras with extended dynamic range and Cinelike profiles, AVIF allows partial preservation of HDR data. On HDR monitors and modern smartphones (iPhone 12+, Samsung Galaxy S20+), AVIF photos look significantly more saturated and lifelike.
Efficient compression of difficult scenes
AVIF is especially strong on scenes that challenge JPG:
- Sky gradients on landscapes from the Lumix S1 and S5 without banding.
- Dark areas on night shots from the Lumix S1H without block artifacts.
- Skin tones in portraits on Lumix S5 IIX frames with smooth tonal transitions.
- Out-of-focus bokeh on portraits with L-Mount Alliance lenses (Panasonic Lumix S Pro, Sigma Art, Leica Summilux SL).
Transparency with alpha channel
AVIF supports an 8-bit alpha channel, making it suitable for product photography on the Lumix GH6 with backgrounds removed. Files are significantly smaller than PNG and WebP with transparency.
Animation
AVIF supports animated frame sequences using the same AV1 compression, making it more efficient than GIF and animated WebP. For single RW2 conversion this is not used directly, but it expands the format's applications.
When to convert RW2 to AVIF
Modern sites focused on speed
Sites prioritizing load speed and high search rankings benefit from AVIF. Photographer portfolios, food blogs, travel sites with hundreds of Lumix photos all gain Core Web Vitals and SEO improvements.
Next-generation mobile apps
Modern mobile operating systems (iOS 16+, Android 12+) support AVIF at the system level. Apps for browsing Lumix photo galleries can store frames in AVIF, saving device memory and sync bandwidth.
HDR photography
Frames from the Lumix S1H captured with extended dynamic range can be saved as 10-bit AVIF with HDR metadata. On HDR displays (Apple ProMotion XDR, Samsung Galaxy AMOLED) such images look like little windows into reality.
Marketplace catalogues with alpha channel
Product photos from the Lumix GH6 on transparent backgrounds in AVIF load orders of magnitude faster than PNG. Not all marketplaces support AVIF, but where supported the bandwidth savings and user experience improvements are significant.
Professional online portfolios
Photographers using modern site builders (Webflow, Framer, Squarespace) that automatically convert uploaded images to AVIF get portfolios with minimal load time and maximum quality.
How RW2 to AVIF conversion works
Reading the proprietary RW2 container
The decoder recognizes the 0x55 magic number, reads Panasonic-specific tags (Micro Four Thirds sensor geometry for GH bodies or full-frame for S bodies, white balance multipliers, vignette correction profile). It extracts 12-14 bit data from the Lumix sensor.
Bayer demosaicing
The Lumix sensor uses the classic Bayer filter (50% green pixels, 25% red, 25% blue). The demosaicing algorithm interpolates missing colour components for each pixel. Demosaicing quality determines the sharpness of the final AVIF and the absence of moire on clothing and grilles.
Applying white balance and colour profile
White balance multipliers fixed by the camera at capture are taken from the RW2 metadata. The Panasonic colour profile translates sensor values into the standard sRGB space. Cinelike D and V-Log profiles are not carried over.
Optional extended bit depth
AVIF supports 10- and 12-bit colour depth. When converting from 14-bit RW2 this allows partial preservation of the extended dynamic range of Lumix S1H and the Dual Native ISO sensors in the GH6 and S5 II. In standard 8-bit mode the data is compressed as in JPG.
AV1 compression
AVIF uses the AV1 codec: the image is divided into variable-size superblocks (4x4 to 128x128 pixels), more than 60 intra-prediction modes are applied, and residual data is encoded with an arithmetic coder. The quality parameter (or CRF in AV1 terms) controls quality: values 50-65 give visually indistinguishable results from the original at maximum compression.
Best RW2 candidates for AVIF conversion
Photos for modern sites and blogs
Content for travel blogs, food blogs, photographer portfolios, and personal pages is the primary AVIF use case. Landscapes, portraits, reportage frames, and product photography from the Lumix S5 II, S1R, and GH6 benefit from compact AVIF size without noticeable quality loss.
HDR scenes and extended dynamic range
Frames from the Lumix S1H shot in V-Log mode or with extended exposure can be saved as 10-bit AVIF preserving part of the HDR data. On modern HDR displays such images fully realize AVIF's advantages.
Catalogue photography with transparent backgrounds
Product photos from the Lumix GH6 with Leica DG lenses, processed with background removal, are ideal for AVIF. Files with transparency in AVIF are 3-5 times smaller than PNG and 20-30% smaller than WebP with alpha.
Photo archives for long-term storage
When dealing with large volumes of processed photos from Lumix S and GH sensors, AVIF lets you build very compact web archives. A collection of tens of thousands of frames takes 15-25 times less space than RW2.
Limitations and recommendations
Compatibility with legacy software
Despite broad support in modern browsers, many older applications do not open AVIF. Older Microsoft Office versions, legacy photo viewers, and older image editors may not recognize the format. Before bulk conversion, make sure your target audience uses current software.
Encoding speed
AVIF encoding is significantly slower than JPG and WebP due to AV1's computational complexity. Batch processing hundreds of RW2 files can take noticeably longer, especially at high quality settings.
Irreversible conversion
Conversion to AVIF is one-way. The 14-bit Lumix sensor data with 12-14 stops of dynamic range becomes an 8/10/12-bit AVIF image. The ability to reprocess the RAW in the future is lost. Always preserve original RW2 files.
Social media may not support AVIF
Some social platforms either re-encode uploaded AVIF to JPG (losing the advantages) or reject it entirely. Facebook, Threads, and Pinterest periodically have AVIF issues. For social media, JPG is the safer choice.
Not for intermediate editing
Lossy AVIF should not be used as an intermediate format for further editing. Every re-save adds artifacts. For iterative work use TIFF or PNG.
Basic decoding limitations
This service performs basic RW2 decoding with default processing parameters: white balance is taken from the camera metadata as recorded at capture time, standard sRGB gamma correction is applied, and demosaicing runs automatically. White balance adjustment, exposure compensation, highlight and shadow recovery, tone curves, Cinelike D and V-Log profiles, and noise reduction are not available. For full RAW processing with control over all parameters, use specialized software: Adobe Lightroom, Capture One, RawTherapee, or SILKYPIX (including the free SILKYPIX Developer Studio for Panasonic Lumix users). This service is suitable for quick conversion of RW2 to standard raster format when in-camera processing is acceptable or further editing is not required.
What is RW2 to AVIF conversion used for
Optimizing photographer portfolios on personal websites
Photographers using the Lumix S5 II, S1R, and GH6 for portfolio work convert their selected RW2 frames to AVIF for website display. This delivers maximum page weight reduction while preserving high image quality, which matters both for client impressions and SEO metrics.
Building HDR photo galleries for modern displays
Photographers shooting on the Lumix S1H in V-Log with extended dynamic range convert RW2 to 10-bit AVIF for display on HDR monitors and modern smartphones. Viewers with Apple Pro Display XDR, iPhone 12+, or Samsung Galaxy S20+ devices see images with much greater colour depth and contrast.
Product catalogues with transparent backgrounds
Product photographers using the Lumix GH6 with Leica DG lenses, processing RW2 with background removal, convert the result to AVIF for their own online stores and platforms supporting the modern format. Files are 3-5 times smaller than PNG, providing instant loading of product cards.
Travel blogs with large photo counts
Travel photographers maintaining blogs with dozens of trip posts and hundreds of Lumix S5 II and S1R frames switch to AVIF for dramatic page weight reduction. This improves reader retention on slow mobile connections and boosts SEO rankings in Google.
Compact web archives of photo collections
Photographers and photo repositories that have accumulated terabytes of processed shots from Lumix S and GH sensors convert them to AVIF for maximally compact web archives. A collection of tens of thousands of frames takes 15-25 times less space than RW2 while remaining viewable in any modern browser.
Tips for converting RW2 to AVIF
Always preserve your original RW2 files
AVIF is a format for distribution and viewing, not archival storage. Original RW2 files contain the full 14-bit Lumix dynamic range and proprietary Panasonic metadata that cannot be recovered from AVIF. This matters especially for Dual Native ISO cameras (GH5S, GH6, S5 II), where RW2 holds uniquely low noise at high ISO.
Use 10-bit AVIF for HDR material
If the RW2 was shot on the Lumix S1H in V-Log mode or with extended dynamic range, choose 10- or 12-bit AVIF to preserve more tonal range. For regular portraits and landscapes with standard exposure, 8-bit AVIF is sufficient and noticeably more compact.
Pick quality based on intended use
For portfolios and maximum quality use quality 70-80: visually indistinguishable from the original, files are larger. For web galleries and blogs quality 55-65 is ideal - visual difference is imperceptible, size is minimal. For thumbnails and previews quality 40-50 is enough. AVIF holds acceptable quality even at low values, unlike JPG.
Use fallback for older browsers
Despite AVIF support in 93% of browsers, the remaining 7% of users will not see the image. Use the HTML picture tag with a JPG alternative: <picture><source srcset='photo.avif' type='image/avif'><img src='photo.jpg'></picture>. This guarantees that Lumix photos open for every site visitor regardless of device.