Encode and decode Base64

Paste text, encode or decode, copy & share. Made with ♥︎.

Input

Output

Converted text will appear here

Base64 Encoder and Decoder

Our Base64 Encoder/Decoder is a free online tool that allows you to quickly convert text and files to and from Base64 encoding. This secure, browser-based utility processes all data locally, ensuring complete privacy for your sensitive information.

What is Base64 Encoding?

Base64 is an encoding scheme that converts binary data into ASCII text format. It's commonly used to encode data when you need to transmit binary information over text-only mediums. Base64 represents binary data using 64 printable ASCII characters: A-Z, a-z, 0-9, +, and /.

Key Features

  • Text Encoding/Decoding - Convert plain text to Base64 and vice versa with a single click.
  • File Support - Encode images, PDFs, and other file types to Base64 strings.
  • URL-Safe Option - Use URL-safe Base64 encoding that replaces + and / with - and _.
  • Privacy Focused - All encoding/decoding happens locally in your browser.
  • No File Size Limits - Process files of any size your browser can handle.

Common Uses for Base64

  • Email Attachments - MIME encoding for non-text attachments in emails.
  • Web Development - Embed images directly in HTML/CSS using data URIs.
  • API Communication - Safely transmit binary data in JSON payloads.
  • Data Storage - Store binary data in text-only storage systems.
  • Cryptography - Represent cryptographic keys and certificates in text format.

When to Use Base64 Encoding

Base64 encoding is ideal when you need to transfer binary data over systems that only support text content. It's frequently used in:

  • Embedding images in CSS or directly in HTML
  • Sending binary data in JSON API responses
  • Storing binary data in databases not optimized for binary storage
  • Transmitting data in environments where certain characters might be interpreted as control characters