Web features explorer

Text encoding and decoding

Widely available since 2022-07-15
Tags: api

The TextEncoder API transforms a stream of code points into a byte stream with UTF-8 encoding, and TextDecoder does the reverse.

Learning resources on MDN

Browser support (view on caniuse.com)

Specifications