Base64 Encoder/Decoder - Online Base64 Tool

Free online Base64 encoder and decoder with file upload support, image preview, URL-safe mode, and batch processing. Encode and decode Base64 strings instantly with our lightweight tool.

Input 0 characters

Supports text files, images (PNG, JPG, GIF, etc.), and more

Output 0 characters

Batch Processing

Process multiple strings at once (one per line)

About Base64 Encoder/Decoder

A lightweight and powerful tool for encoding and decoding Base64 strings. Perfect for web development, email encoding, data URIs, and API work. Supports file uploads, image preview, and batch processing.

Features:

  • Encode text to Base64 format
  • Decode Base64 strings back to original text
  • File upload support for images, text files, and more
  • Instant image preview for decoded Base64 images
  • URL-safe Base64 encoding (RFC 4648)
  • Batch processing for multiple strings
  • Copy to clipboard functionality
  • Download encoded/decoded output
  • Save decoded files with original format
  • Character count display

What is Base64?

Base64 is an encoding scheme that converts binary data into ASCII text format. It's commonly used for:

  • Email attachments: Encoding binary files for email transmission
  • Data URIs: Embedding images directly in HTML/CSS
  • Web APIs: Transmitting binary data over text-based protocols
  • Authentication: Basic auth headers and API tokens
  • Storage: Storing binary data in text-based systems

URL-Safe Mode:

URL-safe Base64 encoding replaces + with - and / with _, and removes padding (=). This makes the encoded string safe for use in URLs, filenames, and HTTP headers.

Keyboard Shortcuts:

  • Ctrl/Cmd + Enter - Process (Encode/Decode)
  • Ctrl/Cmd + K - Clear all
  • Ctrl/Cmd + M - Toggle mode