.lz File Extension

Learn what a .lz file contains, how to open and verify Lzip data, how Poly supports it, and when to use TAR or another compression format.

File extension details for .lz

Storage Only
File typeLzip compressed file
MIME type
EncodingBinary, lossless LZMA-compressed data in the Lzip format
Operating systemsWindows, macOS, Linux
Opens withlzip, GNU tar, tarlz
Poly supportYes. Poly stores, syncs, shares, versions, and downloads LZ files.
Indexed by PolyPartial. Poly indexes the filename and ordinary file properties, not compressed contents.
Preview in PolyNo. Download the file to decompress or inspect it with a compatible utility.
Poly agentNo. The Poly agent cannot read data inside a Lzip stream.

What kind of file is a .lz?

A .lz file is a byte stream compressed with Lzip. It uses a constrained form of LZMA compression and is lossless, so successful decompression reproduces the original bytes. The usual MIME label is application/x-lzip, a deployed but unregistered media type. IANA does not currently list application/x-lzip or the proposed application/lzip replacement.12

Lzip compresses data rather than organizing files and directories. A name such as source.tar.lz normally means that TAR first bundled the files, then Lzip compressed the resulting stream.

Every Lzip member starts with ASCII LZIP, or 4C 5A 49 50 in hexadecimal. The next byte is the format version, currently 01. Check those bytes and validate the complete stream instead of trusting the suffix.1

Renaming an .xz, .lzma, or another compressed file to .lz does not convert it. These formats use different headers, trailers, and decoding rules.

How do I open a .lz on my computer?

  • On Windows, use a Windows build of lzip or another archive utility that explicitly supports Lzip.
  • On macOS and Linux, install lzip with your package manager, then use it from Terminal.
  • For a .tar.lz archive, GNU tar can select the Lzip filter from the filename when the external lzip program is available.3

To keep the compressed source while writing the decompressed file, run:

lzip -dk report.csv.lz

Test the full stream without saving its output with lzip -tv download.lz. For a tarball, inspect the member list before extraction with tar -tf source.tar.lz.

Lzip does not store the original filename, timestamp, ownership, or similar metadata. Choose the output name yourself when a generic filename does not reveal what the decompressed bytes contain.1

Poly support for .lz

Poly recognizes .lz as Lzip data. It stores, syncs, shares, versions, and downloads the file, and you can find it by filename and ordinary file properties.

Poly does not decompress the stream, inspect TAR members, generate a thumbnail, provide an archive preview, or index the compressed contents. The Poly agent cannot read the payload. Decompress the file with a trusted utility and add the resulting supported files separately when you need content search, preview, or agent access.

History of .lz

Antonio Diaz Diaz designed Lzip in 2008 as a Unix-style alternative to Gzip and Bzip2.4 Its command-line interface follows familiar compressor conventions, while its format uses a fixed six-byte header and a 20-byte trailer for each member.

The trailer records a CRC32, the uncompressed data size, and the complete member size. These three checks help detect damage and let recovery tools locate intact members in a multi-member file.1 The Lzip project provides reference, parallel, library, TAR, and recovery-oriented implementations.5

Working with .lz and alternatives

Choose the format for the workflow:

FormatGood fitMain distinction
LzipLong-term storage of compressed streamsMulti-member design with three integrity checks
GzipBroad Unix and web compatibilityMore widely installed
XZCompact Unix source and package distributionDifferent LZMA-based container
ZstandardFast modern compression and decompressionOften chosen when throughput matters
ZIPSharing several files across desktop systemsBuilt-in directory and per-entry structure

Lzip members can use dictionaries from 4 KiB through 512 MiB, so memory needs depend on how the stream was created.1 A small compressed input can also expand dramatically. Set resource limits for untrusted data, and inspect TAR paths, links, and executables before extraction. CRC and size checks detect accidental damage; they do not authenticate the sender or make the output safe.

Footnotes

  1. Antonio Diaz Diaz. Lzip Manual. The official manual documents the file structure, magic bytes, dictionary range, integrity fields, metadata behavior, commands, and recovery design. 2 3 4 5
  2. Internet Assigned Numbers Authority. Media Types Registry. The application registry does not currently list application/x-lzip or application/lzip.
  3. Free Software Foundation. GNU tar: Creating and Reading Compressed Archives. GNU tar supports Lzip filtering and filename-based compression selection.
  4. Antonio Diaz Diaz. The Lzip Format. The format author's presentation dates Lzip's design to 2008.
  5. Antonio Diaz Diaz. Lzip Project. The official project page links the reference, parallel, library, TAR, and recovery implementations.
© Poly Corp. 2026