LZ4 压缩

使用 LZ4 压缩 处理输入并生成压缩或归档数据。

输入: 文本 (UTF-8) / 文件结果: 二进制字节

or drop a file here

文本输入

运行后查看结果

案例

A newline-delimited weather reading

The inverse check preserves every original byte, including the final newline.

输入

station=demo
celsius=-12.5

Expected checks

LZ4 Decompress recovers:
73746174696f6e3d64656d6f0a63656c736975733d2d31322e350a
A small release manifest

The inverse check preserves every original byte, including the final newline.

输入

release=2.1.0
artifact=demo.tar.gz

Expected checks

LZ4 Decompress recovers:
72656c656173653d322e312e300a61727469666163743d64656d6f2e7461722e677a0a
A repeated status log

The inverse check preserves every original byte, including the final newline.

输入

ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready

Expected checks

LZ4 Decompress recovers:
72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a
An HTTP-like JSON event

The inverse check preserves every original byte, including the final newline.

输入

{"event":"deploy","project":"demo","ready":true}

Expected checks

LZ4 Decompress recovers:
7b226576656e74223a226465706c6f79222c2270726f6a656374223a2264656d6f222c227265616479223a747275657d
A comma-and-quote CSV row

The inverse check preserves every original byte, including the final newline.

输入

city,note
Paris,"rain, then sun"

Expected checks

LZ4 Decompress recovers:
636974792c6e6f74650a50617269732c227261696e2c207468656e2073756e220a
A release identifier

输入

RELEASEONE

Expected checks

LZ4 Decompress recovers:
52454c454153454f4e45
A sensor label

输入

SENSORWEST

Expected checks

LZ4 Decompress recovers:
53454e534f5257455354
A telescope target

输入

MOONPHASES

Expected checks

LZ4 Decompress recovers:
4d4f4f4e504841534553
A toy puzzle clue

输入

FOLLOWBIRD

Expected checks

LZ4 Decompress recovers:
464f4c4c4f5742495244
An archive marker

输入

ARCHIVEDOC

Expected checks

LZ4 Decompress recovers:
41524348495645444f43

相关工具

压缩

操作参考

查看原始技术文档 (English)