.LZ4 file extension
To open .LZ4 files on Windows, if you have the lz4 executable available, open a Command Prompt in the folder with the file.
To open a .lz4 file, decompress it with the LZ4 tools (lz4/unlz4) or view its contents via lz4cat. On most systems this is done from a terminal using the official lz4 CLI.
Last updated: June 12, 2026
Open on your device
Choose your operating system for a dedicated step-by-step opening guide.
How to open .LZ4 files
Use these platform-specific instructions to open .LZ4 files safely.
Windows
- If you have the lz4 executable available, open a Command Prompt in the folder with the file.
- Decompress to a file: run "lz4 -d input.lz4 output" (or use "unlz4 input.lz4 output").
Mac
- Open Terminal and make sure the lz4 CLI is installed and available in your PATH.
- Decompress to a file: run "lz4 -d input.lz4 output" or stream to stdout with "lz4cat input.lz4 > output".
Linux
- Open a terminal and confirm the lz4 tools are installed (commands: lz4, unlz4, lz4cat).
- Decompress to a file: run "unlz4 input.lz4 output" (or "lz4 -d input.lz4 output").
iOS
- iOS does not commonly provide a standard, built-in way to decompress .lz4 files as standalone files; transfer the .lz4 to a Mac/PC and decompress it there using the lz4 tools.
Android
- Android does not commonly include standard end-user tooling to decompress .lz4 files; transfer the .lz4 to a desktop system and decompress it using the lz4 tools.
Security notes
- .lz4 files are not executable by themselves, but decompression produces arbitrary data; treat the decompressed output as untrusted until you know what it is.
- Be cautious with untrusted .lz4 files that decompress to extremely large outputs (disk exhaustion) or long-running streams; the LZ4 Frame format can be used for streaming and may not always carry a known content size.
- Use well-maintained decoders (such as the official lz4 project) because parsing framed compressed data is complex and decoder bugs can be a risk surface.
What can hide inside an archive
Compressed packages can contain executables or scripts you only see after extraction. Double extensions and nested archives are common tricks. Scan unexpected downloads before unpacking, and extract to an empty folder so you can review contents safely.
Avast offers free and premium antivirus software that protects against viruses, malware, ransomware, and phishing. Scan files before opening them to ensure safety.
NortonNorton 360 delivers comprehensive antivirus protection, VPN, and identity theft monitoring. Scan files for threats before opening to keep your device secure.
We may earn a commission when you use affiliate links. This supports our free file extension guides.
Can't open this file?
These are the most common causes and fixes when .LZ4 files fail to open.
Common reasons
- Decompression fails with “not a valid LZ4 frame” or similar
- You decompressed it, but the output file “still won’t open”
- Unexpected output size or “No space left on device”
Fix steps
- Verify the file really is LZ4 frame-compressed and not a different format that happens to use .lz4.
- If you control the producer, prefer generating standard LZ4 Frame format output for .lz4 files (so common tools can decode it).
OS-specific troubleshooting
What is a .LZ4 file?
.lz4 is most commonly an LZ4 Frame format stream/file that wraps LZ4-compressed blocks with a header (magic number), optional checksums, and size fields. The LZ4 Frame format is designed for fast compression/decompression and streaming. The output after decompression is whatever original data was compressed (e.g., a tar archive, a log, a disk image, etc.).
Background
LZ4 is a fast, lossless compression algorithm and a widely used implementation/library, often chosen when speed is more important than maximum compression ratio. In practice, “.lz4” files usually mean data encoded using the LZ4 Frame format, which defines a standard header and optional integrity checks so tools can safely decode streams and files.
Further reading
Authoritative resources for more details on the .LZ4 format.
Common .LZ4 issues
Decompression fails with “not a valid LZ4 frame” or similar
Many tools expect the LZ4 Frame format (with the frame magic number). If the data was stored as raw LZ4 blocks (no frame header) or is not LZ4 at all, frame-based decoders will reject it.
- Verify the file really is LZ4 frame-compressed and not a different format that happens to use .lz4.
- If you control the producer, prefer generating standard LZ4 Frame format output for .lz4 files (so common tools can decode it).
You decompressed it, but the output file “still won’t open”
.lz4 only describes compression, not the underlying file type. After decompression you may get a tar archive, a log, a database dump, or other binary data that needs its own viewer/extractor.
- Decompress to a new file rather than overwriting, so you can inspect the result: "lz4 -d input.lz4 output".
- Identify the decompressed output type and open it with the appropriate tool (for example, if it’s a tar archive, extract it with a tar tool).
Unexpected output size or “No space left on device”
Compression can drastically reduce stored size; decompressed output can be much larger. Some LZ4 frames may also omit content-size metadata, making it harder to predict the final size before decoding.
- Ensure you have enough free disk space for the fully decompressed output.
- If you only need to read the contents, consider streaming with lz4cat and processing the data without writing a full intermediate file (e.g., redirect stdout to another command).
FAQ
Is .lz4 the same as .zip or .7z?
Not exactly. .lz4 typically contains a single LZ4-compressed stream using the LZ4 Frame format; it’s a compression container for data, not a general multi-file archive format like ZIP or 7z.
How do I “extract” a .lz4 file?
Decompress it with lz4/unlz4 (for example: "lz4 -d input.lz4 output"). If the decompressed output is itself an archive (like a tar), then extract that archive with the appropriate tool.
What’s the difference between LZ4 and the LZ4 Frame format?
LZ4 is the compression algorithm. The LZ4 Frame format is a standardized wrapper around LZ4-compressed blocks that includes headers and optional checksums so files/streams can be decoded reliably.
Similar file extensions
Compare related formats in the same category to find the right tool faster.