Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 back to text. Works with UTF-8. Everything processed locally.

💡 About this tool

The Base64 Encoder / Decoder lets you encode any text to Base64 format or decode Base64 back to plain text — instantly in your browser. Base64 is a binary-to-text encoding scheme that represents data using 64 ASCII characters (A-Z, a-z, 0-9, +, /). It's widely used for embedding images in HTML/CSS as data URIs, encoding credentials for HTTP Basic Authentication, attaching files in email (MIME), and transferring binary data through JSON APIs.

This tool supports UTF-8 text, handling international characters correctly by first encoding to UTF-8 bytes before Base64 conversion. The encode/decode operations happen entirely in your browser using JavaScript — no data leaves your device.

📋 How to use

  1. Enter your text in the Input field. You can paste any text — plain strings, JSON, HTML, or previously encoded Base64.
  2. Click Encode or Decode. Click "Encode" to convert your text to Base64, or "Decode" to convert Base64 back to readable text.
  3. Copy or swap. Use "Copy Result" to copy the output to your clipboard. Use "Swap" to move the output back to the input field for verification or round-trip encoding.

Frequently asked questions

What is Base64 encoding used for?

Base64 converts binary data (or text) into ASCII characters safe for text-based protocols. Common uses: embedding images in HTML/CSS as data URIs, encoding credentials for HTTP Basic Auth, attaching files in email (MIME), and transferring data through JSON APIs.

Is Base64 encoding the same as encryption?

No. Base64 is an encoding scheme, not encryption. It provides no security — anyone can decode a Base64 string back to its original form. Do not use Base64 to hide sensitive data. Use proper encryption (like AES) for security.

Why does Base64 increase data size?

Base64 increases data size by ~33% because every 3 bytes (24 bits) of input become 4 Base64 characters (6 bits each). This overhead is the trade-off for making binary data compatible with text protocols.

Is my data stored or shared?

No. All encoding/decoding happens locally in your browser via JavaScript. Your text is never stored, logged, or transmitted to any server.

🔍 Related tools