CompressionStreamBaseline 2023Newly availableSince May 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.Learn moreSee full compatibilityReport feedbackNote: This feature is available in Web Workers. The CompressionStream interface of the Compression Streams API is an API for compressing a stream of data.Constructor CompressionStream() Creates a new CompressionStream Instance properties CompressionStream.readable Returns the ReadableStream instance controlled by this object. CompressionStream.writable Returns the WritableStream instance controlled by this object. ExamplesIn this example a stream is compressed using gzip compression. jsconst compressedReadableStream = inputReadableStream.pipeThrough( new CompressionStream("gzip"), ); SpecificationsSpecificationCompression # compression-streamBrowser compatibilitydesktopmobileserverChromeEdgeFirefoxOperaSafariChrome AndroidFirefox for AndroidOpera AndroidSafari on iOSSamsung InternetWebView AndroidWebView on iOSDenoNode.jsCompressionStreamChrome – Full supportChrome80Toggle historyEdge – Full supportEdge80Toggle historyFirefox – Full supportFirefox113Toggle historyOpera – Full supportOpera67Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android80Toggle historyFirefox for Android – Full supportFirefox for Android113Toggle historyOpera Android – Full supportOpera Android57Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet13.0Toggle historyWebView Android – Full supportWebView Android80Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historyDeno – Full supportDeno1.19Toggle historyNode.js – Full supportNode.js18.0.0moreToggle historyCompressionStream() constructorChrome – Full supportChrome80Toggle historyEdge – Full supportEdge80Toggle historyFirefox – Full supportFirefox113Toggle historyOpera – Full supportOpera67Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android80Toggle historyFirefox for Android – Full supportFirefox for Android113Toggle historyOpera Android – Full supportOpera Android57Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet13.0Toggle historyWebView Android – Full supportWebView Android80Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historyDeno – Full supportDeno1.19Toggle historyNode.js – Full supportNode.js17.0.0Toggle history"deflate" compressionChrome – Full supportChrome80Toggle historyEdge – Full supportEdge80Toggle historyFirefox – Full supportFirefox113Toggle historyOpera – Full supportOpera67Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android80Toggle historyFirefox for Android – Full supportFirefox for Android113Toggle historyOpera Android – Full supportOpera Android57Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet13.0Toggle historyWebView Android – Full supportWebView Android80Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historyDeno – Full supportDeno1.19Toggle historyNode.js – Full supportNode.js17.0.0Toggle history"deflate-raw" compressionChrome – Full supportChrome103Toggle historyEdge – Full supportEdge103Toggle historyFirefox – Full supportFirefox113Toggle historyOpera – Full supportOpera89Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android103Toggle historyFirefox for Android – Full supportFirefox for Android113Toggle historyOpera Android – Full supportOpera Android71Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet20.0Toggle historyWebView Android – Full supportWebView Android103Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historyDeno – Full supportDeno1.23Toggle historyNode.js – Full supportNode.js21.2.0moreToggle history"gzip" compressionChrome – Full supportChrome80Toggle historyEdge – Full supportEdge80Toggle historyFirefox – Full supportFirefox113Toggle historyOpera – Full supportOpera67Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android80Toggle historyFirefox for Android – Full supportFirefox for Android113Toggle historyOpera Android – Full supportOpera Android57Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet13.0Toggle historyWebView Android – Full supportWebView Android80Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historyDeno – Full supportDeno1.19Toggle historyNode.js – Full supportNode.js17.0.0Toggle historyreadableChrome – Full supportChrome80Toggle historyEdge – Full supportEdge80Toggle historyFirefox – Full supportFirefox113Toggle historyOpera – Full supportOpera67Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android80Toggle historyFirefox for Android – Full supportFirefox for Android113Toggle historyOpera Android – Full supportOpera Android57Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet13.0Toggle historyWebView Android – Full supportWebView Android80Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historyDeno – Full supportDeno1.19Toggle historyNode.js – Full supportNode.js17.0.0Toggle historywritableChrome – Full supportChrome80Toggle historyEdge – Full supportEdge80Toggle historyFirefox – Full supportFirefox113Toggle historyOpera – Full supportOpera67Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android80Toggle historyFirefox for Android – Full supportFirefox for Android113Toggle historyOpera Android – Full supportOpera Android57Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet13.0Toggle historyWebView Android – Full supportWebView Android80Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historyDeno – Full supportDeno1.19Toggle historyNode.js – Full supportNode.js17.0.0Toggle history