Unicode-safe conversion
TextEncoder and TextDecoder preserve Chinese, emoji, accents, and other UTF-8 text.
Encode or decode UTF-8 text without losing emoji or non-Latin characters.
UTF-8 by default
TextEncoder and TextDecoder preserve Chinese, emoji, accents, and other UTF-8 text.
Malformed Base64 is reported directly instead of silently producing corrupted output.
Encoding and decoding happen entirely on your device.