Antpact Toolbox
中文
Home › Utilities & Developer › Base64 Encode/Decode

Base64 Encode/Decode

Convert text and Base64, UTF-8 safe.

Privacy: this tool runs entirely in your browser — files are never uploaded, and data is gone when you close the page.

How to use

  1. Paste text or Base64.
  2. Click encode or decode.
  3. Copy the result.

FAQ

Will Chinese text break?

No. The tool handles UTF-8 multibyte characters, so Chinese encodes and decodes cleanly; mojibake elsewhere is usually a mismatched encoding.

Is Base64 encryption?

No — it is encoding and trivially reversible by anyone. Do not use it for secrets; it only solves a format/transport problem.

Why did the size grow?

Base64 turns 3 bytes into 4 characters, inflating data by about 33%. Use it for small snippets or icons, not large files.

What is the relation between Data URL and Base64?

A Data URL embeds Base64 directly in the page (e.g. background-image:url(data:image/png;base64,...)), avoiding an extra request.

When do I need Base64?

To embed binaries (images/fonts) in JSON, CSS, HTML or URLs, or to avoid special characters breaking a format.

Decode fails with "invalid character"?

The content is not standard Base64 or has newlines/spaces; strip whitespace and retry, or check the data was not truncated.

About this Base64 Encode/Decode

Uses native Base64 with UTF-8 so Chinese text stays correct. Local only.