files/en-us/web/api/decompressionstream/index.md
{{APIRef("Compression Streams API")}}{{AvailableInWorkers}}
The DecompressionStream interface of the {{domxref('Compression Streams API','','',' ')}} decompresses a stream of data. It implements the same shape as a {{domxref("TransformStream")}}, allowing it to be used in {{domxref("ReadableStream.pipeThrough()")}} and similar methods.
DecompressionStreamIn this example a blob is decompressed using gzip compression.
const ds = new DecompressionStream("gzip");
const decompressedStream = blob.stream().pipeThrough(ds);
{{Specifications}}
{{Compat}}