← All Tools Dev

Base64 Encode & Decode

Convert between plain text and Base64 encoding instantly. Supports UTF-8, Unicode, and all text formats.

How to Use the Base64 Encoder / Decoder

Paste plain text into the left box and click “Encode” to turn it into a Base64 string, or paste a Base64 string and click “Decode” to get the original text back. The right panel updates instantly, and the “Copy Result” button saves you a step.

Common uses: embedding small images as data URIs in HTML or CSS, passing binary-safe text through JSON APIs, and storing tokens or short payloads in configuration files. For large files, prefer Base64 only when the size overhead is acceptable — it grows data by about 33%.

Security note: Base64 is encoding, not encryption - anyone can decode it instantly. Never use it to protect passwords, API keys or personal data. For sensitive values, always use real encryption like AES instead.

A practical workflow: encode a small config snippet, paste it into a deployment pipeline variable, and decode it on the target machine to avoid escaping headaches. When debugging, decode first to confirm the payload is valid text before inspecting the encoding.

About This Base64 Tool

A free online Base64 encoder and decoder that converts between plain text and Base64 encoded format instantly. Base64 is a binary-to-text encoding scheme that represents binary data using 64 ASCII characters (A-Z, a-z, 0-9, +, /). It's commonly used for embedding images in HTML/CSS, encoding email attachments (MIME), storing data in JSON/XML, and basic authentication headers.

Features

How to Use

  1. Choose Encode (text → Base64) or Decode (Base64 → text)
  2. Type or paste your content into the input area
  3. Click Convert to see the result
  4. Copy, swap, or clear as needed

Frequently Asked Questions

What is Base64 used for?

Base64 is used for embedding images as data URIs, encoding email attachments (MIME), storing binary data in JSON/XML, and HTTP basic authentication.

Can I decode any Base64 string?

As long as it's valid Base64 encoding. Invalid input will show a clear error message.

Does it support Chinese characters and emoji?

Yes. The UTF-8 encoding ensures full support for Chinese, Japanese, emoji, and all Unicode characters.

Is my data sent to a server?

No. All encoding and decoding happens entirely in your browser. Nothing is sent anywhere.