Base64 Encode / Decode

Convert text and files to Base64 and back. Supports UTF-8 and URL-safe encoding.

Input (Text)
Size: 0 B Chars: 0
Output (Base64)
Size: 0 B Chars: 0 Ratio:

What is Base64?

Base64 is a binary-to-text encoding that converts binary data into a string of ASCII characters. It's commonly used to embed images in HTML/CSS, send binary data in JSON or XML, encode email attachments, and store binary content in text-based formats. Each Base64 character represents 6 bits of data, making the encoded output about 33% larger than the original.

How to Use

  1. Choose Encode or Decode mode using the tabs above
  2. Type, paste, or upload a file in the input panel
  3. Click the Encode/Decode button (or just type — it converts in real-time)
  4. Copy the result or download it as a file
  5. Enable URL-safe mode to use - and _ instead of + and /