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
About This Tool
How to Use
- 1Select "Encode" to convert text to Base64, or "Decode" to convert Base64 back to text.
- 2Enter your text in the input field, or upload a .txt file.
- 3Click "Process" to perform the conversion.
- 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
URL Encoder / Decoder
Encode or decode URLs and text using encodeURIComponent / decodeURIComponent. Perfect for preparing query parameters or decoding encoded URLs. Runs in your browser.
Image to Base64 Converter
Convert any image (JPG, PNG, WebP, GIF, SVG, BMP) to a base64 encoded string. Choose between a full data URI or raw base64 output. Everything runs in your browser — your files are never uploaded.
JSON Formatter & Validator
Format, validate, and minify JSON data online for free. Pretty-print with customizable indentation or compact into a single line. Upload a .json file or paste JSON directly. Runs entirely in your browser.