--- url: "https://web.dev/blog/transformstream" titulek: "TransformStream is now supported cross-browser | Blog | web.dev" h1: "TransformStream is now supported cross-browser Stay organized with collections Save and categorize content based on your preferences." popis: "Now that transform streams are supported in Chrome, Safari, and Firefox, they're finally ready for prime time!" jazyk: "en" kanonicka: "https://web.dev/blog/transformstream" drobecky: ["Blog", "TransformStream is now supported cross-browser"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-13 22:27:53" znaku: 2164 slov: 241 kodovani: "iso-8859-2" sha256: "63ec00f00e8dc1a98db144db6d1d2bab8b8adb2c5853d0d6d340c3980012577a" --- TransformStream is now supported cross-browser Stay organized with collections Save and categorize content based on your preferences. Now that transform streams are supported in Chrome, Safari, and Firefox, they're finally ready for prime time! Browser Support 67 79 102 14.1 [Source](https://developer.mozilla.org/docs/Web/API/TransformStream) The [Streams API](/articles/streams) lets you break down a resource that you want to receive, send, or transform into small chunks, and then process these chunks bit by bit. Recently, Firefox 102 [started to support `TransformStream`](https://developer.mozilla.org/docs/Mozilla/Firefox/Releases/102#apis), which means [`TransformStream`](https://developer.mozilla.org/docs/Web/API/TransformStream) is now finally usable across browsers. Transform streams allow you to pipe from a [`ReadableStream`](https://developer.mozilla.org/docs/Web/API/ReadableStream) to a [`WritableStream`](https://developer.mozilla.org/docs/Web/API/WritableStream), executing a transformation on the chunks, or consume the transformed result directly, as shown in the following example. `class UpperCaseTransformStream { constructor() { return new TransformStream({ transform(chunk, controller) { controller.enqueue(chunk.toUpperCase()); }, }); } } button.addEventListener('click', async () => { const response = await fetch('/script.js'); const readableStream = response.body .pipeThrough(new TextDecoderStream()) .pipeThrough(new UpperCaseTransformStream()); const reader = readableStream.getReader(); pre.textContent = ''; while (true) { const { done, value } = await reader.read(); if (done) { break; } pre.textContent += value; } });` Demo Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see the [Google Developers Site Policies](https://developers.google.com/site-policies). Java is a registered trademark of Oracle and/or its affiliates. Last updated 2022-07-01 UTC.