🔄

Base64 Encoder/Decoder

Free Base64 encoder and decoder — convert text and files to Base64 and back. Free online Base64 converter tool.

Encode and decode Base64 strings and files. Convert text to Base64, Base64 to text, or files to Base64. Works 100% in your browser.

Input Text
Base64 Output
Result will appear here

About Base64 Encoder/Decoder

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used for transmitting data over channels that only support text content, embedding images in HTML/CSS, storing binary data in JSON, and many other applications. This free online tool lets you encode text or files to Base64, or decode Base64 back to its original form.

How to Use

  1. Select your conversion mode: Text to Base64, Base64 to Text, or File to Base64.
  2. Enter your text or upload a file (max 10MB).
  3. Click Convert to perform the encoding/decoding.
  4. Use Copy to copy the result or Download to save it.

Frequently Asked Questions

What is Base64 encoding used for?

Base64 is used to encode binary data as text for transmission over text-based protocols, embedding images in HTML/CSS using data URIs, storing binary data in JSON or XML, email attachments (MIME), and URL parameters that need to handle special characters.

Is my data kept private?

Yes, completely. All encoding and decoding happens locally in your browser using JavaScript. No data is ever transmitted to any server or stored anywhere.

What's the maximum file size?

The file upload is limited to 10MB per file to ensure smooth performance in your browser. For larger files, consider using command-line tools or desktop applications.

Can I decode Base64 back to a file?

When you decode Base64 text, the result will appear in the output area. If the decoded content represents a file (like an image), you can copy the output and use it in data URIs or save it with the appropriate file extension.

Why does my Base64 look different on different systems?

Base64 encoding is standardized (RFC 4648), so the encoded output should be consistent. However, line breaks and padding characters (=) might be handled differently by various systems. This tool produces standard Base64 without line breaks.