Lzip MIME Type
application/x-lzip means, how to identify and decompress Lzip data, and how Poly handles .lz files. MIME type details for application/x-lzip
In active use| MIME type | application/x-lzip |
|---|---|
| Extensions | .lz |
| Magic number | 4C 5A 49 50 |
| First standardized | 2008 |
| Created by | Antonio Diaz Diaz |
| Browser support | No native browser decompression |
| Example applications | lzip, GNU tar, tarlz |
| Poly support | Partial. Poly recognizes .lz as application/x-lzip and stores, syncs, shares, and versions the file, but does not decompress it. |
| Indexed by Poly | Partial. Poly indexes the Lzip file's name and ordinary file properties, but not the compressed data or any tar members. |
| Preview in Poly | No. Poly has no in-app Lzip decompressor or archive browser; download the file and open it with a compatible utility. |
| Poly agent | No. The Poly agent cannot read or reason about content inside a Lzip stream. |
What does application/x-lzip mean?
The application/x-lzip media type identifies data compressed in the Lzip format, usually in a file ending in .lz. Lzip is lossless, so successful decompression reproduces the original bytes. It uses a constrained form of LZMA compression inside a format designed for interoperability, integrity checking, and recoverability.1
application/x-lzip is a deployed but unregistered media type. The shared-mime-info database used by many Linux desktops associates it with the .lz extension and the LZIP file signature, while IANA's current application registry contains neither x-lzip nor lzip.23
.lz file is a compressed byte stream, not a multi-file archive. A filename such as source.tar.lz normally means that a TAR archive was compressed as one Lzip stream.Where did Lzip come from?
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, but its file format adds a fixed-size header and a trailer containing three integrity values.
The format remains independently documented and implemented. The official manual includes a small reference decompressor, and the Lzip project publishes implementations for single-threaded, parallel, library, and recovery-oriented use cases.15
There is an active Internet-Draft that proposes the registered name application/lzip and describes application/x-lzip as its deprecated alias. That proposal has not yet become an RFC or an IANA registration, so application/x-lzip remains the spelling used by Poly and shared-mime-info today.36
How do you identify a Lzip file?
Every Lzip member starts with the four ASCII bytes LZIP, or 4C 5A 49 50 in hexadecimal. The next byte is the format version, currently 01, and the sixth byte encodes the dictionary size.1
4C 5A 49 50 01 xx ...
L Z I P
A Lzip file can contain one or more independent members concatenated together. Each member ends with a 20-byte trailer containing:
- A CRC32 of the uncompressed data.
- The uncompressed data size.
- The complete member size.
Together with the LZMA end marker, those fields let a decoder cross-check the stream in three ways. The member-size field also allows tools to walk a multi-member file backward and helps recovery software locate intact members.1
The signature is a useful identification check, but it is not proof that the entire stream is valid. Test the complete file with Lzip before relying on it:
lzip -tv download.lz
How do you open an application/x-lzip file?
Web browsers do not provide a native Lzip viewer or decompression API. A server response using application/x-lzip is normally downloaded for a local utility.
The reference lzip program can decompress a stream while preserving the compressed input:
lzip -dk report.txt.lz
For a TAR archive, inspect the member list before extracting it:
tar -tf source.tar.lz
tar -xf source.tar.lz -C empty-directory
GNU tar recognizes Lzip signatures and supports the --lzip filter. It invokes the external Lzip program rather than implementing the compression format itself.7 The Lzip project also provides tarlz, which coordinates TAR members with Lzip members for efficient creation, extraction, and recovery of .tar.lz archives.5
lzip -cd file.lz > output when you want to choose the output name explicitly. Lzip streams do not store the original filename or other file metadata, so a generic .lz name cannot tell a decompressor what kind of data will emerge.16Support in Poly
Poly recognizes .lz filenames as application/x-lzip and classifies them as archives. It can store, sync, share, version, download, and find the file by name.
Poly treats the compressed stream as opaque:
- It does not decompress Lzip data or inspect a TAR archive inside it.
- It does not index decompressed text, tar member names, or member metadata.
- It does not generate a thumbnail or provide an in-app archive browser.
- The Poly agent cannot read or reason about the compressed payload.
Download and decompress the stream with a trusted local utility when you need its contents. Uploading the decompressed result separately lets Poly apply the preview and indexing pipeline appropriate to that file's own type.
Poly's extension mapping recognizes .lz, including a compound name such as backup.tar.lz because its final extension is still .lz. It does not assign this MIME type from the proposed .tlz shorthand. That suffix is also historically ambiguous because GNU tar associates .tlz with LZMA rather than Lzip.7
Lzip, LZMA, and XZ are not the same format
Lzip uses LZMA coding, but an Lzip file is not a raw .lzma stream or an .xz file. Their containers have different headers, trailers, checksums, and decoding rules.
| Format | Common extension | Typical media type | Identifying bytes |
|---|---|---|---|
| Lzip | .lz | application/x-lzip | 4C 5A 49 50 (LZIP) |
| LZMA-Alone | .lzma | application/x-lzma | No fixed magic signature |
| XZ | .xz | application/x-xz | FD 37 7A 58 5A 00 |
Renaming one extension to another does not convert the data. Decode the original format and recompress the result when a different container is required.
Safety and recovery considerations
A small Lzip input can expand to thousands of times its compressed size. The current Internet-Draft warns that decompression can exceed a 7000-to-1 expansion ratio, so software handling untrusted files should impose output-size, memory, and time limits.6
The CRC and size fields detect accidental damage; they do not authenticate the sender or make the decompressed payload safe. If the output is a TAR archive, review its paths before extraction and watch for absolute paths, parent-directory references, symbolic links, and executable files.
Lzip intentionally stores no filename, timestamp, ownership, or other metadata. When metadata and multiple files matter, tar normally supplies that outer structure before Lzip compression. This also means converting document.txt.lz to another compression format requires preserving the output filename separately.
For damaged data, the companion lziprecover utility can identify members, merge matching damaged copies, and attempt recovery from corruption. Multi-member archives can limit the damage to affected members, but recovery is never a substitute for keeping another verified copy.1
Footnotes
- Antonio Diaz Diaz. Lzip Manual. The official manual documents the compression model, file and member structure, magic bytes, trailer fields, command behavior, integrity checks, metadata behavior, and recovery features. ↩ ↩2 ↩3 ↩4 ↩5 ↩6
- freedesktop.org shared-mime-info project.
application/x-lzipdatabase entry. The source entry associates.lzand theLZIPsignature with this media type. ↩ - Internet Assigned Numbers Authority. Media Types Registry. The current application registry does not list
application/x-lziporapplication/lzip. ↩ ↩2 - Antonio Diaz Diaz. The Lzip Format. The format author's presentation describes Lzip's 2008 design and its adoption in GNU and other projects. ↩
- Antonio Diaz Diaz. Lzip Project. The project page identifies the author and links the reference, parallel, library, tar, and recovery implementations. ↩ ↩2
- Diaz, A. Lzip Compressed Format and the
application/lzipMedia Type. Internet-Draft, January 2026. The active draft proposesapplication/lzip, namesapplication/x-lzipas a deprecated alias, and documents format and security considerations; it is not an RFC or registration. ↩ ↩2 ↩3 - Free Software Foundation. GNU tar: Creating and Reading Compressed Archives. The manual documents Lzip filtering, signature detection, and filename-suffix behavior. ↩ ↩2