Checking support...
Feature Not SupportedThis browser does not support the TextEncoder Web API feature. Try testing in a modern browser (such as Chrome, Edge, Safari, or Firefox).
Advertisement
Interactive Input Workspace
Ready for input
Web API Execution Output
Result output will be displayed here after processing...
Native JavaScript Code Example (Zero Libraries)
const encoder = new TextEncoder();
const bytes = encoder.encode('Hello World');About the TextEncoder Web API
TextEncoder takes a stream of code points as input and emits a stream of UTF-8 bytes.
Specification:W3C & WHATWG Web API Standard
Sponsored Content