Base64 Encoder / Decoder

Encode and decode Base64 for text and files, with full Chinese and Unicode support.

Runs in your browser Developer Tools

UTF-8 byte encoding — Chinese and emoji work correctly

How to use

  1. Choose Text mode and enter text, or File mode and pick a file.
  2. Click Encode to produce Base64 (File mode also creates a Data URL), or paste Base64 and click Decode.
  3. Copy text results, or in File mode download the decoded original file.

Frequently asked questions

Why does btoa throw an error on Chinese text?
btoa only accepts Latin-1 characters. This tool encodes UTF-8 bytes via TextEncoder and restores them with TextDecoder, so Chinese and emoji round-trip correctly.
Is Base64 encryption?
No. Base64 is only a binary-to-text encoding that anyone can decode. Never use it to protect sensitive information.
Is there a file size limit?
We recommend files under 10 MB. Base64 grows data by about 33%, and very large files may slow the browser down.

Privacy & data handling

This tool runs entirely in your browser. Text you type and files you choose are never uploaded to a server or saved by ToolNest. Closing the page removes everything.