Base64 Encoder/Decoder

Encode or decode Base64 strings, files, and images instantly in your browser

All processing happens in your browser. Your data never leaves your device and is not sent to any server.
0 Bytes
0 Bytes

Examples

Text Encoding:

"Hello, World!" → SGVsbG8sIFdvcmxkIQ==

URL-Safe Encoding:

"a+b/c=" → "YStiL2M9" (standard) → "YStiL2M9" (url-safe: YStiL2M9)

Image/File Encoding:

Upload any file (images, PDFs, etc.) to encode to Base64

Image Decoding:

Paste image Base64 to decode and preview the image

About Base64 Encoding

Base64 is a binary-to-text encoding scheme that represents binary data in ASCII string format. It's commonly used for encoding data that needs to be transmitted over text-based protocols.

Supported features:

  • Standard Base64: Uses A-Z, a-z, 0-9, +, / with = padding (RFC 4648)
  • URL-Safe Base64: Replaces + with -, / with _, removes padding for URLs
  • File Encoding: Upload any file type to convert to Base64
  • Image Preview: Automatically detects and previews decoded images
  • Download: Download decoded files with proper MIME types
  • Size Calculation: Real-time size display for input and output

Use cases: Email attachments, embedding images in HTML/CSS, data URLs, JWT tokens, API authentication, storing binary data in JSON/XML, transmitting data over HTTP headers, file uploads in APIs.