Base64 Encode

Text Input
Character Encoding
Base64 Output
Base64 EncodeBase64 Decode

About Base64 Encoding

  • What is Base64? Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format by translating it into a radix-64 representation.
  • Character Set: Uses 64 characters: A-Z, a-z, 0-9, +, / (with = for padding).
  • Size Increase: Base64 encoding increases the size of data by approximately 33% due to the encoding overhead.
  • Common Use Cases: Email attachments, embedding images in HTML/CSS, data URLs, API authentication tokens, and storing binary data in text-based formats.

Text to Base64 Encoding Example

Simple Text Example:

Text input:
Hello, World!
Base64 output:
SGVsbG8sIFdvcmxkIQ==

Unicode Text Example:

Text input:
你好世界 🌍
Base64 output:
5L2g5aW95LiW55WMIPCfjI0=

Core Features

  • Real-time Encoding: Instant Base64 encoding as you type or paste text.
  • Comprehensive Character Encoding Support: Support for 40+ character encodings including UTF-8, UTF-16, ASCII, ISO-8859 series, Windows codepages, and Asian encodings (Big5, GB18030, Shift JIS, EUC-JP/KR).
  • Legacy Encoding Compatibility: Support for legacy encodings like KOI8-R/U (Russian/Ukrainian), Macintosh, and various regional Windows codepages.
  • Copy & Download: Easy-to-use buttons for copying results and downloading as a file.
  • Full-Screen Mode: Expand input or output panels for better visibility when working with large data.
  • Sample Data: Load sample text to quickly test the encoding functionality.
  • Smart Validation: Automatic detection of encoding compatibility and helpful warnings for potential issues.

How to Use

  • Enter Text: Type or paste your text in the input area on the left.
  • Choose Encoding: Select the appropriate character encoding (UTF-8 is recommended for most cases).
  • Automatic Encoding: The tool automatically encodes your text to Base64 in real-time.
  • Copy Results: Use the copy button to copy the Base64 result to your clipboard.
  • Download Output: Save the encoded result as a text file for later use.