HTML: Markup language
CSS: Styling language
JavaScript: Scripting language
Web APIs: Programming interfaces
All web technology
Learn web development
Discover our tools
Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
Note: This feature is available in Web Workers.
The TextEncoder() constructor returns a newly created TextEncoder object.
TextEncoder()
TextEncoder
new TextEncoder()
None.
Enable JavaScript to view this browser compatibility table.