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.

输入
结果
All processing is done locally in your browser, no upload

How to Use

  • Paste any valid JSON, supports nesting, arrays and escapes
  • Click Beautify to auto indent and format
  • Click Minify to remove whitespace into one line
  • All operations run locally for privacy

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.