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
- Enter text or a Base64 string.
- Click Encode or Decode.
- 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.