Base64 Encoder

Encode Unicode text as standard Base64 using UTF-8, with byte counts, current-input copying, examples and format limits.

← Developer Tools

Encode Unicode text as Base64 using UTF-8 bytes in your browser.

DeveloperEncodingBrowser processing

How it works

The input is converted to UTF-8 bytes, then those bytes are encoded as standard Base64.

Not encryption

Base64 is an encoding format and does not protect confidential data.

How to encode text

  1. Paste text, including accented letters or emoji.
  2. Select Encode Base64 to convert the UTF-8 bytes.
  3. Select Copy to encode and copy the current input.

For example, Hello becomes SGVsbG8=. Line breaks and spaces in the source text are data and affect the output. Empty text produces an empty Base64 string.

Format and limits

This is standard Base64 with the plus and slash characters and equals-sign padding when needed, not Base64url. It accepts up to 200,000 JavaScript string units; some characters, including emoji, occupy two units. UTF-8 byte counts can be larger than the visible character count.

Use the Base64 Decoder to check the result. This text tool does not upload files or generate image data URLs. Base64 generally expands the byte representation; it is not compression. The format is defined in RFC 4648.

Related tools