Kadben

LZ4 decompressor and compressor

Choose a .lz4 file or paste LZ4 data as Base64 or hex; frames and raw blocks are both read. Reverse the direction to compress.

Runs in your browser. Nothing you paste or choose is uploaded.

LZ4 decompressor and compressor

    Add a step
    Result

      How to use it

      1. Choose a file, or paste the compressed data as Base64 or hex.
      2. Read the result; add the step “JSON format” if it is JSON.
      3. Press “Reverse the direction” to compress; tick “Raw block (no frame)” for a bare block.

      Rules and limits

      How LZ4 is read and written

      Limits

      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.

      Related tools