Toolbox

Online Base64 Encoder / Decoder

Base64编码Base64解码URL-Safe编码转换

Encode and decode Base64 with full UTF-8 safety for Chinese and emoji. Decoding accepts URL-Safe variants (-_) and missing padding, with clear errors for invalid input. Fully local processing.

加载中…

How to Use

  • Paste the raw text into the input box
  • Choose encode or decode direction
  • Output appears instantly — copy in one click
  • All encoding/decoding runs locally; sensitive content never leaves your device

Related Tools

FAQ

What is Base64?

Base64 represents binary data using 64 printable characters (A-Z, a-z, 0-9, +, /), commonly used to carry binary content in text protocols such as email attachments and Data URLs.

Can it encode Chinese and emoji?

Yes. Text is converted to UTF-8 bytes before Base64 encoding, so multi-byte characters like Chinese and emoji round-trip correctly.

Is the URL-Safe variant supported?

Yes. Decoding automatically treats - and _ as + and /, and tolerates missing = padding; inputs with invalid characters or wrong length raise a clear error.