How to use
Run a clean first pass
- Paste text or a Base64 string into the input.
- Click Encode to convert text to Base64, or Decode to restore text from Base64.
- Check the Byte Meter for encoding overhead, then click Copy to grab the result.
Encode and decode Base64 instantly — full UTF-8 support for CJK and emoji.
Input
Paste text or a Base64 string, then choose a direction.
Paste content then click Encode or Decode.
—
Output
Result appears instantly, ready to copy.
Base64 encodes every 3 bytes into 4 ASCII characters, making the output ~33% larger than the source. This lets arbitrary binary data travel safely through plain-text channels such as email, URLs, and JSON.
JavaScript's built-in btoa() only accepts Latin-1 characters (codepoint ≤ 255). For multi-byte characters — Chinese, Japanese, emoji — the text must first be converted to UTF-8 bytes via TextEncoder before Base64 encoding. This tool includes that bridge so all Unicode roundtrips correctly.
Common uses: storing API tokens in .env files, HTTP Basic Auth headers, data URIs for inline images, reading JWT payload segments, MIME email attachments. This tool implements RFC 4648 §4 standard Base64 (using + and /). URL-safe Base64 (- and _) is out of scope.
Quick guide
Compact below-tool notes that help first-run users and repeated visitors move faster without changing the main interface.
Chinese search: Base64 編碼器、Base64 解碼器、Base64 轉換、Base64 中文編碼、線上 Base64
How to use
Examples
FAQ