Free Lossless Image Format
image/flif
Released 2015
· by Jon Sneyers and Pieter Wuille (Cloudinary)
The Free Lossless Image Format (FLIF) is a novel, open-source lossless image format created in 2015. Utilizing MANIAC (Meta-Adaptive Near-zero Integer Arithmetic Coding), FLIF consistently outperformed PNG, lossless WebP, and lossless BPG in compression ratios. It is especially famous for its responsive progressive decoding, allowing an image to be viewed in low quality after downloading only a tiny fraction of the file. Despite its technical brilliance, FLIF development was officially halted in 2020 as its core concepts and developers transitioned to creating the new JPEG XL standard.
Technical Specifications
.flif
MANIAC (Meta-Adaptive Near-zero Integer Arithmetic Coding)
image/x-flif
Magic Bytes & HTTP Headers
FLIF
Browser Support Matrix
| Browser | Status | Min Version |
|---|---|---|
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | Legacy |
Advantages & Limitations
- Achieves some of the highest lossless compression ratios ever developed for raster images
- Incredible progressive decoding allows an image to be highly recognizable even after only 5% of the file has been downloaded
- Supports animations and complex alpha channels losslessly
- Officially abandoned in favor of JPEG XL
- Zero native support in web browsers or standard operating system previewers
- Encoding speed can be significantly slower than standard PNG or WebP compression
Developer Code Snippets
File Detection Steps
How to programmatically detect a image/flif
file by reading its raw bytes:
- 1 Check the first 4 bytes for the ASCII string 'FLIF' (Hex: 46 4C 49 46)
- 2 The 5th byte indicates the color format and depth (e.g., Grayscale vs RGBA)
Software Support
ImageMagick
Conversion Tools
Share & Embed
[](https://freewebptojpg.com/mime/image/flif)
<iframe src="https://freewebptojpg.com/mime/image/flif/embed" width="100%" height="280" style="border:1px solid #cbd5e1;border-radius:8px;" title="FLIF Specs"></iframe>
JSON API
All data on this page is available as a free, open JSON API. Use it in your project, documentation, or tooling.
GET https://freewebptojpg.com/mime/image/flif.json
Open JSON
Frequently Asked Questions
What is the difference between FLIF and PNG?
FLIF offers significantly better lossless compression than PNG (often 30-50% smaller) and features an advanced progressive decoding method that makes images look recognizable almost instantly over slow connections. However, PNG is universally supported, whereas FLIF has been deprecated and lacks web browser support.
Why was the FLIF format discontinued?
FLIF was discontinued because its lead developers joined the Joint Photographic Experts Group (JPEG) committee to help design a new, next-generation universal format: JPEG XL (.jxl). JPEG XL incorporates the best parts of FLIF (like the responsive progressive loading) while adding lossy compression and broader industry support.
Can I use FLIF files on a website?
No modern web browsers natively support FLIF. While JavaScript/WebAssembly polyfills exist (like poly-flif), they are computationally expensive. Developers should use WebP, AVIF, or JPEG XL instead.