Base64 Encoder/Decoder

Paste text or a Base64 string below to instantly encode or decode it, with full Unicode (UTF-8) support for accented characters, emoji and more.

Type or paste above, then choose Encode or Decode.

How to Use the Base64 Encoder/Decoder

  1. Type or paste your text into the input box.
  2. Click "Encode" to convert plain text into a Base64 string, or "Decode" to convert a Base64 string back into readable text.
  3. If you paste invalid Base64 and click "Decode", a clear error message is shown instead of a crash.
  4. Click "Copy" to copy the result to your clipboard.

Why Use This Tool?

Is my data uploaded anywhere?

No. Encoding and decoding both happen instantly and entirely in your browser using JavaScript's native btoa/atob functions. Nothing is sent to a server. This is worth noting because developers frequently paste API keys, auth tokens, or embedded file data through Base64 tools — none of it ever leaves your device here.

Does it support Unicode text and emoji?

Yes. Plain btoa/atob only handle Latin1 characters and will throw errors on emoji or accented letters. This tool wraps them with proper UTF-8 encoding/decoding so text like "café ☕" or emoji round-trips correctly through Base64.

What is Base64 actually used for?

Base64 encodes binary or text data into a safe ASCII string using 64 printable characters, commonly used to embed images in CSS/HTML as data URIs, include binary attachments in JSON/XML payloads, and encode credentials in HTTP Basic Authentication headers. It is not encryption — anyone can decode Base64 instantly, so never use it to protect sensitive data.

Who uses a Base64 encoder/decoder?

Developers debugging JWT payloads or API responses, anyone inspecting a data URI embedded in HTML/CSS, and QA engineers decoding test fixtures all rely on a fast, dependable Base64 tool during everyday development work.

Related Tools