.LIF

LIF File

Leica Image File
Ask a question
QUICK ANSWER

A LIF file is a Leica Image File, a proprietary container produced by Leica confocal and fluorescence microscopes running LAS AF or LAS X software. It stores one or more multi-dimensional image series (X/Y/Z slices, time points, spectral channels) in a single binary file. Open it free with FIJI (ImageJ with Bio-Formats) on any platform, or with the official Leica LAS X software.

Developer: Leica Microsystems GmbH Category: Raster Image Files MIME: image/x-lif
OPENS ON Windows macOS Linux
Related: .JPG · .PNG · .TIF · .ECW

On this page

19k+ extensions indexed
Last reviewed Jun 17, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the LIF file format?

A .lif file is a Leica Image File - a proprietary binary container used by Leica Microsystems confocal and fluorescence microscopy software (LAS AF and LAS X) to store multi-dimensional image data. A single .lif file can hold dozens of independent image series from one microscopy session: 2D widefield images, z-stack series, time-lapse sequences, and multi-channel spectral lambda stacks.

The file begins with a one-byte magic value (0x70) followed by a UTF-16 LE XML metadata block (LMSDataContainerHeader) that describes every series - dimensions (X, Y, Z, T, C), physical voxel size in metres, channel labels, objective settings, and timestamps. Raw pixel data follows immediately after the XML block as contiguous blocks for each series, with no padding between them.

Pixel depth ranges from 8-bit to 16-bit per channel, with up to 8 simultaneous channels. File sizes commonly run from tens of megabytes to over 20 GB for large tile scans or extended time-lapse experiments.

The format is supported by the OME Bio-Formats library, making .lif files readable in FIJI (an ImageJ distribution) and OMERO image management servers without Leica software. Leica's newer XML-based formats - .xlif and .lof - address larger datasets and more modular workflows, but .lif remains in wide use for compatibility.

Reading physical pixel size correctly requires the formula physical_size / (num_pixels - 1) per axis; Bio-Formats version 5.9 adopted this corrected calculation.

Security & safety

RISK: LOW

Pure data file, no executable code. Contains only pixel data and XML metadata. No known malware vectors.

Format details

in a nutshell
FULL NAMELeica Image Fileaka LIF, Leica LAS AF Image File
DEVELOPERLeica Microsystems GmbHsince ~2004 (Leica LAS AF software era)
MIME TYPEimage/x-lif
TYPEProprietary binary microscopy image container (multi-dimensional)
This extension is also used by…
  • CA-Clipper Installer Compressed Archive - Legacy DOS-era installer tool (CA-Clipper) used .lif for its compressed archive format - entirely unrelated to microscopy; db_name references this incorrectly.
MAGIC BYTES · FILE SIGNATURE
OFFSET
00
HEX
70
ASCII
p
Magic byte 0x70 at offset 0; memory/test byte 0x2A at offset 6. Header size DWORD follows. Little-endian.

Programs that open LIF files

Windows4 apps
Leica LAS X Paid File → Open → select .lif file. Full native support including metadata and analysis tools.
Leica Application Suite (LAS AF) Paid Legacy LAS AF software also opens LIF files; superseded by LAS X.
FIJI (ImageJ distribution with Bio-Formats) Open-source File → Open → select .lif; Bio-Formats importer dialog appears to choose series.
ImageJ + Bio-Formats plugin Open-source Install Bio-Formats plugin, then Plugins → Bio-Formats → Bio-Formats Importer → select .lif.
macOS2 apps
FIJI (ImageJ distribution with Bio-Formats) Open-source File → Open → select .lif; same Bio-Formats importer as Windows.
ImageJ + Bio-Formats plugin Open-source Bio-Formats Importer - select .lif.
Linux2 apps
OMERO Open-source Import LIF file via OMERO.importer; all series are accessible in OMERO.web.
FIJI (ImageJ distribution with Bio-Formats) Open-source File → Open → select .lif.

Technical details

deep spec
Magic byte0x70 at offset 0; test/memory byte 0x2A at offset 6
Byte orderLittle-endian
Metadata formatUTF-16 LE XML block (LMSDataContainerHeader) embedded immediately after the binary header; describes all image series, dimensions, physical voxel sizes, channel info, and timestamps
Pixel data layoutRaw pixel blocks follow the XML metadata immediately without padding; one contiguous block per image series
Typical size10 MB - 20 GB (z-stacks, time-lapse, or spectral data can be very large)
Bit depth8-bit, 12-bit, or 16-bit per channel; up to 8 simultaneous fluorescence and transmitted-light channels
DimensionsX/Y up to tens of thousands of pixels (tile scans); Z: hundreds of slices; T: time-lapse series; C: spectral lambda stacks
CompressionNone (raw pixel data stored uncompressed)
Multi-series supportA single .lif file can contain dozens of independent image series from one microscopy session
Physical pixel size formulaphysical_size / (num_pixels - 1) per axis; Bio-Formats v5.9+ adopted this corrected formula
Third-party supportOME Bio-Formats library (FIJI/ImageJ, OMERO); widely supported in life-science image analysis software
Format variantsLIF v1 (original) and LIF v2 (current in LAS X; adds XLIF/LOF support)
Released~2004 (Leica LAS AF software era)
Latest versionLIF format v2 (current in LAS X)
Specificationdocs.openmicroscopy.org

LIF conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with LIF files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about LIF files.

Frequently asked questions

How do I open a LIF file without Leica software?
Use FIJI (free ImageJ distribution) - it includes Bio-Formats, which reads LIF natively. File → Open → select the .lif, then choose which series to open.
Why is my LIF file so large?
LIF stores raw uncompressed pixel arrays for all dimensions (X×Y×Z×time×channels). A z-stack time-lapse at 16-bit per channel easily reaches gigabytes.
Can I open just one image series from a LIF file?
Yes - Bio-Formats importer shows a list of all series inside the file; you can select specific ones without loading the whole file.
How do I convert LIF to TIFF?
Open in FIJI, choose the series, then File → Save As → TIFF (or OME-TIFF via Bio-Formats exporter for metadata preservation).
What is the difference between LIF, LOF, and XLIF?
LIF is the original multi-series container. LOF (Leica Object File) stores a single image object. XLIF/XLEF/XLCF are newer XML-based container variants in LAS X.

References

1Bio-Formats - Leica LIF format documentationdocs.openmicroscopy.org
2GitHub - liffile: Python reader for Leica LIF filesgithub.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.BINCD/DVD Disc Image (BIN/CUE)
7.NOMEDIAAndroid No-Media Marker File
8.RPMSGRestricted Permission Message
9.MDMarkdown Document
10.TMPTemporary File

Related extensions

.JPGJPEG Image
.PNGPortable Network Graphics
.TIFTagged Image File Format
.ECWEnhanced Compression Wavelet (ECW) image
.AVIFAV1 Image File Format (AVIF)
.JP2JPEG 2000 Image (ISO/IEC 15444-1)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z