Navigation

HomeImage ToolsCode ToolsMath ToolsDate ToolsGeneratorsUtilities
Color ToolsText ToolsPDF Tools

UTF-8 to Base64

Encode any UTF-8 text as a Base64 string with full Unicode support.

Paste any UTF-8 text — emoji, accented letters, Chinese characters, whatever you have — and get a clean Base64 string out. Plain btoa() chokes the moment it hits a non-ASCII byte, so this encodes to UTF-8 first, then converts. And everything runs in your browser. Nothing gets uploaded.

How It Works

The text is first encoded to UTF-8 bytes using the TextEncoder API, then each byte is converted to a Latin-1 character, and finally btoa() produces the Base64 string. This ensures full Unicode support including emoji and multi-byte characters.

Related Tools