ToolSpark

Base64 Encoder / Decoder

Encode text or files to Base64, or decode Base64 strings. Supports standard and URL-safe variants, binary files, line wrapping, and hex view.

Share:𝕏fin↗
ABCQUJD==
Variant:
Line Wrap:
📁
Drop any file here or click to browse
Text files, images, PDFs, binaries... anything goes
0 bytes
0 bytes
â„šī¸ About Base64 Encoding

Base64 is a binary-to-text encoding scheme that represents binary data using 64 ASCII characters (A-Z, a-z, 0-9, +, /). Every 3 bytes of input become 4 characters of output (~33% size increase).

Common uses:

  • Embedding images in HTML/CSS (data URLs)
  • Email attachments (MIME encoding, 76-char lines)
  • Transmitting binary data in JSON/XML APIs
  • PEM certificates and keys (64-char lines)
  • JWT tokens (URL-safe variant, no padding)

Variants: Standard (RFC 4648 Section 4) uses +/=. URL-safe (Section 5) uses -_ without padding.

Ctrl+Enter ProcessCtrl+Shift+C Copy

Frequently Asked Questions

📖 Related Articles

Related Tools