LZString 压缩

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

输入: 文本结果: 文本

文本输入

工具选项

案例

A newline-delimited weather reading

The inverse check preserves every original byte, including the final newline. Base64 carries compressed UTF-16 data safely as ordinary text.

输入

station=demo
celsius=-12.5

Expected checks

LZString Decompress recovers:
73746174696f6e3d64656d6f0a63656c736975733d2d31322e350a
压缩格式
Base64
A small release manifest

The inverse check preserves every original byte, including the final newline. Base64 carries compressed UTF-16 data safely as ordinary text.

输入

release=2.1.0
artifact=demo.tar.gz

Expected checks

LZString Decompress recovers:
72656c656173653d322e312e300a61727469666163743d64656d6f2e7461722e677a0a
压缩格式
Base64
A repeated status log

The inverse check preserves every original byte, including the final newline. Base64 carries compressed UTF-16 data safely as ordinary text.

输入

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

Expected checks

LZString Decompress recovers:
72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a
压缩格式
Base64
An HTTP-like JSON event

The inverse check preserves every original byte, including the final newline. Base64 carries compressed UTF-16 data safely as ordinary text.

输入

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

Expected checks

LZString Decompress recovers:
7b226576656e74223a226465706c6f79222c2270726f6a656374223a2264656d6f222c227265616479223a747275657d
压缩格式
Base64
A comma-and-quote CSV row

The inverse check preserves every original byte, including the final newline. Base64 carries compressed UTF-16 data safely as ordinary text.

输入

city,note
Paris,"rain, then sun"

Expected checks

LZString Decompress recovers:
636974792c6e6f74650a50617269732c227261696e2c207468656e2073756e220a
压缩格式
Base64
A release identifier

输入

RELEASEONE

Expected checks

LZString Decompress recovers:
52454c454153454f4e45
压缩格式
Base64
A sensor label

输入

SENSORWEST

Expected checks

LZString Decompress recovers:
53454e534f5257455354
压缩格式
Base64
A telescope target

输入

MOONPHASES

Expected checks

LZString Decompress recovers:
4d4f4f4e504841534553
压缩格式
Base64
A toy puzzle clue

输入

FOLLOWBIRD

Expected checks

LZString Decompress recovers:
464f4c4c4f5742495244
压缩格式
Base64
An archive marker

输入

ARCHIVEDOC

Expected checks

LZString Decompress recovers:
41524348495645444f43
压缩格式
Base64

参数

参数默认值输入与选项
压缩格式defaultdefault, UTF16, Base64

相关工具

压缩

操作参考

查看原始技术文档 (English)