AI Toolkit

Base64 Encoder & Decoder

Free

Encode text to Base64, decode Base64 to text, or convert files to Base64 strings. Everything runs in your browser — your data never leaves your device.

Converter
Paste text or Base64, or upload a file. Auto-detects encode vs. decode direction.

0 characters

Client-Side Processing
Your data never leaves your browser. No uploads, no servers, no tracking.
Full UTF-8 Support
Handles emoji, accented characters, CJK text, and any Unicode correctly.
No Signup Required
Use it as many times as you want. No accounts, no limits, no nonsense.

What is Base64 Encoding?

Base64 is a binary-to-text encoding scheme that represents binary data using a set of 64 ASCII characters (A-Z, a-z, 0-9, +, /). It is commonly used to embed images in HTML or CSS, transmit binary data over text-based protocols like email (MIME) and JSON, and store binary content in databases or configuration files.

How This Tool Works

Text mode: Paste any text and the tool automatically detects whether it looks like Base64 (and decodes it) or plain text (and encodes it). You can also use the manual Encode and Decode buttons to override auto-detection. UTF-8 text is fully supported using the TextEncoder/TextDecoder APIs, so emoji, accented characters, and non-Latin scripts all work correctly.

File mode: Upload any file (images, PDFs, documents) and get its Base64 representation. Toggle the data URI prefix on or off. Data URIs are useful for embedding images directly in HTML or CSS without separate file requests.

Common Use Cases

  • Embed small images in HTML/CSS using data:image/png;base64,... URIs
  • Encode binary attachments for JSON APIs or email (MIME)
  • Decode Base64 strings from API responses or JWT tokens
  • Store binary data as text in environment variables or configs
  • Debug encoded values during development

Privacy

All encoding and decoding happens entirely in your browser using native JavaScript APIs. Your text and files are never sent to any server. There is no tracking, no cookies, and no signup required.