Base64 Encode / Decode
Chinese text and emoji won't be garbled — everything is handled as UTF-8 internally. Content is processed only in your browser.
Notes
Many online tools use btoa() It works on strings directly, so Chinese characters throw an error or turn into mojibake. Here it first uses TextEncoder Converts to UTF-8 bytes before encoding and reverses it when decoding.