files/en-us/web/api/textencoderstream/index.md
{{APIRef("Encoding API")}}{{AvailableInWorkers}}
The TextEncoderStream interface of the {{domxref('Encoding API','','',' ')}} converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of {{domxref("TextEncoder")}}.
It implements the same shape as a {{domxref("TransformStream")}}, allowing it to be used in {{domxref("ReadableStream.pipeThrough()")}} and similar methods.
TextEncoderStream object."utf-8".Examples of streaming structured data and HTML
{{Specifications}}
{{Compat}}