Web platform 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.

Learn more

Specifications

Browser support (view on caniuse.com)

  • Chrome 38 Released on 2014-10-07
  • Chrome Android 38 Released on 2014-10-08
  • Edge 79 Released on 2020-01-15
  • Firefox 19 Released on 2013-02-19
  • Firefox for Android 19 Released on 2013-02-19
  • Safari 10.1 Released on 2017-03-27
  • Safari on iOS 10.3 Released on 2017-03-27