← 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.

What Is Base64 and When to Use It

Base64 encodes binary data (images, files, encryption keys) into a safe ASCII string of 64 characters: A-Z, a-z, 0-9, + and /. Every 3 bytes of input become 4 text characters, so encoded output is about 33% larger than the original.

Where you see it every day: data URIs in HTML (inline images), JWT tokens, email attachments (MIME), and API payloads that must stay text-only. Our encoder/decoder works entirely in your browser - nothing is uploaded.

How to Encode or Decode

Security Warning

Base64 is not encryption - anyone can decode it instantly. Never use it to protect passwords, credit cards or private messages. It is meant for data transport compatibility, not confidentiality.

Base64 Encoding: When It Is and Is Not Secure

Base64 is encoding, not encryption: anyone can decode it without a key. Use it for safe transport of binary data in text contexts (emails, JSON, URLs), never for protecting secrets. If you need confidentiality, encrypt first, then encode. This distinction is why our encoder shows both encode and decode directions - you should always be able to inspect the round trip.

Related Tools

JSON FormatterJSON Diff ToolURL EncoderCSV to JSONJSON to CSVWord CounterCase Converter