Base64 encode / decode

Encode UTF-8 text (including German/French umlauts and accents) to Base64 or decode it back.

Direct answer

UTF-8 safe Base64 encoder and decoder using TextEncoder/TextDecoder so Swiss characters (ä, ö, ü, é, à) never corrupt.

How it's calculated

  1. Enter text or a Base64 string.
  2. Click Encode or Decode.
  3. Copy the output.

Frequently asked questions

Why do standard btoa() calls fail on umlauts (ä, ö, ü)?
Browser btoa() only accepts Latin1 bytes. This tool encodes strings to UTF-8 bytes via TextEncoder first so all Unicode characters round-trip cleanly.