Base64 Text Encoder / Decoder

Encode plain text to Base64 or decode Base64 back to text. Supports UTF-8 characters. Upload a file or enter text directly. Runs entirely in your browser.

Drop files here or click to browse

Select File

Accepted formats: TXT, PLAINMax file size: 5 MB
Your files are processed entirely in your browser. Nothing is uploaded to any server.

About This Tool

The Base64 Text Encoder and Decoder converts plain text to Base64 encoding and back. It uses the TextEncoder and TextDecoder APIs for full UTF-8 support, handling international characters, emoji, and special symbols correctly. Upload a text file or enter text directly in the settings. All processing happens in your browser with no server communication.

How to Use

  1. 1Select "Encode" to convert text to Base64, or "Decode" to convert Base64 back to text.
  2. 2Enter your text in the input field, or upload a .txt file.
  3. 3Click "Process" to perform the conversion.
  4. 4Download the result or copy it from the preview.

When to Use

  • When encoding text data for inclusion in URLs, emails, or API payloads.
  • When decoding Base64 strings received from APIs or configuration files.
  • When embedding text content in data URIs or JSON payloads.
  • When working with authentication tokens or encoded configuration values.

Tips & Tricks

  • Base64 encoding increases the size by about 33% compared to the original text.
  • The tool handles UTF-8 characters correctly, including emoji and accented characters.
  • When decoding, make sure the input is valid Base64 with no extra whitespace or line breaks.
  • For encoding binary files (images, PDFs), use the Image to Base64 tool instead.

Frequently Asked Questions

Base64 is a binary-to-text encoding that represents data using 64 ASCII characters (A-Z, a-z, 0-9, +, /). It is commonly used to embed binary data in text-based formats like JSON, XML, or URLs.

Yes. The tool uses TextEncoder/TextDecoder for UTF-8 support, so it correctly handles characters from any language, as well as emoji and special symbols.

No. All encoding and decoding happens entirely in your browser using built-in JavaScript APIs. Your data never leaves your device.

Related Tools