Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text. UTF-8 safe, free, and private, runs entirely in your browser.
Calculator by Toolsloft ↗Encode any text to Base64 or decode a Base64 string back to readable text, entirely in your browser. Handy for developers working with data URIs, API tokens, config files, or any place Base64 strings show up.
How this is calculated
Encoding converts the text to UTF-8 bytes and runs them through the browser's native btoa function; decoding reverses it with atob and decodes the resulting bytes as UTF-8, so emoji and accented characters round-trip correctly.
How to use
- Paste your text or Base64 string into the box.
- Choose Encode or Decode.
- Copy the result.
Examples
- Encode:
hello → aGVsbG8= - Decode:
Y2Fmw6k= → café
FAQ
- Is Base64 encryption?
- No. Base64 is encoding, not encryption. Anyone can decode it. Do not use it to protect secrets.
- Does it handle emoji and non-English text?
- Yes. Input is encoded as UTF-8 first, so accented characters, emoji, and other Unicode round-trip correctly.
- Why did decoding fail?
- The input is not valid Base64. Valid Base64 uses A–Z, a–z, 0–9, + and /, optionally padded with =.