Encode text to Base64
Turn any text—including Chinese and emoji—into Base64 using UTF-8. Optional URL-safe mode replaces +/ with -_ for links and tokens. Everything runs in your browser.
Examples
| Input | Output | — |
|---|---|---|
| Hi | SGk= | ASCII / Latin |
| 你好 | 5L2g5aW9 | Chinese with UTF-8 |
FAQ
- How do I encode Chinese text to Base64?
- Paste the text, keep UTF-8 (default), and convert. Each character becomes the correct UTF-8 bytes before Base64 encoding.
- When should I use URL-safe Base64?
- When the result goes into a URL, filename, or token where + and / can break. Enable URL-safe to use - and _ instead.
- Is my text uploaded?
- No. Encoding runs locally in your browser and is not sent to our servers.