Skip to tool

Zstd Compress and Decompress

Compress or decompress Zstandard (.zst) files up to 2 GiB, with a level from -7 to 4.

Runs in your browser — your input is processed on this device and never uploaded.

Input

Pasted text up to 100 MiB, read as UTF-8, or a file or folder up to 2 GiB. A folder is packed as a .tar first.

Auto decompresses Zstandard data and files named .zst, .zstd or .tzst, and compresses anything else. Compress and Decompress force a direction.

Result

Results appear here.

About this tool

On this page

What is Zstandard?

Zstandard is a compression format from Facebook, published in 2016. Files usually end in .zst. It compresses quickly and decompresses even faster, which is why it shows up in Linux packages, databases and backups.

This tool compresses bytes into a Zstandard frame, or decompresses a Zstandard frame back to the original bytes.

Zstandard options

Input
Pasted text up to 100 MiB, read as UTF-8, or a file up to 2 GiB. A file is read in pieces and is not held whole.
Action
Auto (the default), Compress or Decompress. Auto decompresses Zstandard data and files named .zst, .zstd or .tzst, and compresses anything else. Decompress reads Zstandard only. It does not guess other formats.
Level
A whole number from -7 to 4. -7 is the fastest and usually the largest, and 4 is the smallest this tool makes. 0 means the library default, which is level 1. The default is 3, the same as the zstd command, and the level is ignored when you decompress.
Filename
Optional. Compress adds .zst. Decompress removes one trailing .zst or .zstd, and .tzst becomes .tar. Left blank, an upload keeps its own name and pasted text downloads as output.zst or output.bin.
  • Frames this tool writes stay at or under an 8 MiB window. It opens frames up to 128 MiB, which covers zstd --long=27, and rejects a larger window.
  • The result is a file download. Expanding pasted text stops at 200 MiB and expanding a file at 4 GiB.

Why the Zstandard levels stop at 4

The zstd command goes up to level 19, or 22 with --ultra. This page uses a pure Rust codec and offers levels -7 to 4. It will still open a frame that asks for a window of up to 128 MiB.

Speed is the reason most people pick Zstandard. In our tests on a desktop computer, 100 MiB of text compressed at level 3 in under a second, to about 28 MiB.

Zstandard alternatives

Gzip (.gz) is older and opens almost everywhere. Brotli (.br) is common for web content. LZ4 (.lz4) is faster still, with larger files. XZ (.xz) usually makes smaller files but takes much longer, and this page does not open it.

The zstd command on your computer does the same job for files larger than 2 GiB, and it can use the higher levels, long-distance matching and dictionaries.

Things to know about Zstandard

Yann Collet created Zstandard. He also wrote LZ4. The format is RFC 8878, which replaced RFC 8478.

Some programs compress with a shared dictionary file that both sides must have. A frame made that way is rejected here, because this page has no way to load the dictionary.

Warning

A frame can carry a checksum of the original bytes, which catches a damaged or truncated download. It does not tell you who made the file, and it is not a signature.

Browse

Find similar tools by category or tag.