Base64 Encoder

Runs locally in your browser
All tool data is processed locally in your browser. It is never uploaded to HahaKit servers.

Encode UTF-8 text as Base64 or Base64URL and copy the result.

Result

  

Loading the tool…

How to use Base64 Encoder

How do I use it?

  1. Encode UTF-8 text as Base64 or Base64URL and copy the result.
  2. The standard format for the selection of normal text transports, the URL or file name environment is available for the Base64URL.
  3. Check for line breaks when packing by mime.

How it works and example

Convert the input to UTF-8 bytes, then encode each group of 6 bits as one character. Standard Base64 uses = padding. Base64URL omits it by default.

“中文” → 5Lit5paH; 😀 → 8J+YgA==. The URL-safe form of the second result is 8J-YgA.

Input limits

Related tools

Search tools