---
id: "text-encoding"
kind: "web-feature"
canonical: "https://timetostable.com/feature/text-encoding"
baseline: "high"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# Text encoding and decoding (`text-encoding`)

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

- **Group**: other
- **Baseline**: Widely Available
- **Newly Available Date**: 2020-01-15
- **Widely Available Date**: 2022-07-15
- **Specification**: https://encoding.spec.whatwg.org/
- **Constituent BCD keys**: 25

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Firefox | 19 | 2013-02-19 |
| Firefox for Android | 19 | 2013-02-19 |
| Chrome | 38 | 2014-10-07 |
| Chrome Android | 38 | 2014-10-08 |
| Safari | 10.1 | 2017-03-27 |
| Safari on iOS | 10.3 | 2017-03-27 |
| Edge | 79 | 2020-01-15 |

