How to use it
- Choose a file, or paste the compressed data as Base64 or hex.
- Read the result; add the step “JSON format” if it is JSON.
- Press “Reverse the direction” to compress; tick “Raw block (no frame)” for a bare block.
Rules and limits
How LZ4 is read and written
- Frames are read one after another with their checksums (xxHash32) checked, skippable frames are passed over, and anything else is read as one raw block.
- Compressing writes a frame with independent 4 MB blocks and a content checksum, or one raw block with “Raw block (no frame)” ticked.
- Decompression stops at 64 MB of output, so a small “zip bomb” cannot fill the memory of the tab.
Limits
- The text box shows the first 200,000 characters; the download has everything.
Questions and answers
Frame or block: which one is mine?
Data that starts with the bytes 04 22 4D 18 is a frame, as the lz4 command-line tool writes it; a raw block has no header and usually comes from a program that stores only the compressed bytes.
Can I paste hex instead of Base64?
Yes: Base64 (standard or URL-safe), hex with or without spaces, or a file. The page says how it read the input; to choose by hand, set “Read as” to “Base64” or “Hex”.
Why does it say the frame needs a dictionary?
It was compressed with a dictionary that is not part of the data, and the page does not have it. Decompress it with the program that made it.