Base64 Encoder and Decoder — UTF-8 Text

Encode UTF-8 text as standard Base64 or decode valid Base64 text. Check byte sizes, copy results and see malformed input errors.

🔒 Local processing
⚡ Free to use
🌐 Runs in your browser
📦 See output options
⚡

Base64 Encoder and Decoder — UTF-8 Text

Tool workspace

Ready

Loading tool...

  1. Enter text on the left and press Encode, or paste Base64 on the right and press Decode.
  2. Review the result and byte/character counts.
  3. Copy the required panel; clipboard access depends on your browser.
  4. Clear resets both editors.

Convert text, not arbitrary files

This tool encodes text as UTF-8 bytes and then standard Base64. Decode reverses that process only when the bytes form valid UTF-8 text. It does not import images, download binary files or parse data-URL prefixes. Hello becomes SGVsbG8=; Arabic, Chinese and emoji use multiple UTF-8 bytes.

Accepted Base64

The standard alphabet uses A–Z, a–z, 0–9, plus and slash. Correct trailing padding is accepted, and omitted padding is supported where unambiguous. ASCII spaces, tabs and line breaks are ignored. Invalid padding, nonzero unused bits, Base64url minus/underscore characters and invalid UTF-8 are rejected. A failed operation clears its destination so an old result cannot look successful.

Size and Unicode limits

Encoding accepts up to 200000 JavaScript UTF-16 code units. Base64 input accepts up to 1000000 characters including whitespace. UTF-8 decoding preserves a leading BOM; the encoder replaces isolated surrogate code units. Counts show current UTF-8 text bytes and Base64 editor characters, so whitespace affects the displayed ratio. Clearing editors does not guarantee secure memory erasure.

Processing and privacy

Text conversion runs in the browser without a remote conversion API. Site assets and analytics may still use the network. Base64 is encoding, not encryption or password protection. For hexadecimal bytes use Text to Hex.

Frequently asked questions

Can it decode any Base64 file?

No; decoded bytes must be valid UTF-8 text.

Does it accept Base64url?

No; use the standard plus/slash alphabet.

Is omitted padding accepted?

Yes, when the remaining Base64 is unambiguous and canonical.

Is Base64 encrypted?

No. It can be decoded without a secret key.