katlab tools/base64

Base64 · Encode / Decode

Convert text or files to and from Base64 — UTF-8 safe, all in your browser.

Everything is processed locally. Nothing is uploaded to a server.
Text
Result

    

How to encode or decode Base64 (free)

  1. Pick Encode or Decode.
  2. Type or paste text — or choose a file to Base64-encode it.
  3. Copy the result. Nothing is uploaded at any point.

What is Base64?

Base64 represents binary data using only 64 printable ASCII characters (A–Z, a–z, 0–9, + and /). It's used to embed images or files inside text formats like JSON, HTML, CSS data URIs, and email attachments, where raw bytes would be corrupted. Encoding grows the data by roughly one third.

UTF-8 and Unicode

The browser's built-in btoa() only handles Latin-1 and throws on characters like é, 中 or 😀. This tool encodes text as UTF-8 first, so any Unicode text round-trips correctly through encode and decode.

Base64 is not encryption

Base64 is fully reversible and provides no security — anyone can decode it. Use it for transport and embedding, never to hide secrets. If you need protection, encrypt the data first.

Is my data private?

Yes. Encoding and decoding run entirely in your browser tab. Files you select are read locally and never leave your device. Open the network tab to verify — the tool even works offline once loaded.