Interactive Bitstream Editor — Decompress & LZ Compress/Decompress

No file loaded.
- The app ignores any characters except "0" and "1" when reading a file or when you paste/type.
- Bits are grouped into 8-bit bytes. Each textbox displays at most 8 bits (may be shorter for the final partial byte).
- Edit anywhere: added or removed bits will automatically slide/flow across adjacent boxes so the full stream stays continuous.
- Only 16 boxes are shown per row. If your screen is narrower than the full row width you can scroll horizontally to see the full row.
- The "Decompressed block" below shows the decompressed bytes according to the algorithm you provided; it treats the bitstream as continuous (ignores textbox boundaries) and updates automatically whenever you change any textbox.
- "LZ comp" asks you to select a binary file (.bin) and compresses that file using the same LZ token scheme. The compressed result is offered as a downloadable .bin file.
- "LZ decomp" asks you to select a compressed .bin file (produced by this compressor) and decompresses it, offering a downloadable decompressed .bin.
Decompressed block — no data