HandyTools

Base64 encoder

Encode and decode between text and Base64, handling UTF-8 so Chinese and emoji survive.

Input
Output

Files are processed in your browser

How it works

Convert text and Base64 both ways.

  1. 01

    Enter text or a Base64 string.

  2. 02

    Choose the encode or decode direction.

  3. 03

    Copy the result; invalid input on decode is flagged.

FAQ

Why do some tools garble Chinese when encoding?

The browser's native btoa only accepts Latin-1 characters, so feeding it Chinese throws an error or produces wrong output. This tool encodes text to UTF-8 bytes first, then Base64, and reverses that on decode — so Chinese and emoji round-trip correctly with no garbling.

Is Base64 encryption?

No. Base64 is only an encoding that represents data with 64 printable characters, and anyone can decode it back. Its purpose is to let data pass safely through text-only channels (URLs, email, Data URIs, JSON fields). It provides no secrecy, so never use it to "encrypt" sensitive information.

Does it support URL-safe Base64?

On decode, yes. Standard Base64 uses + and /, which have special meaning in URLs, so the URL-safe variant swaps them for - and _. The tool detects and accepts that variant on decode; encoding outputs standard Base64.

Is my text uploaded?

No. Encoding and decoding happen locally in your browser. Content is never sent to a server and clears when you refresh or leave.