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