Developer Tool

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 strings back to plain text. 100% client-side — no data is sent to any server.

⚡ Quick Reference

Base64 uses A-Z, a-z, 0-9, +, /
Uses = for padding
Increases size by ~33%
Safe for text transmission

🔒 All processing happens in your browser. No data is sent to any server.

How to use this Base64 Encoder/Decoder

Using the Base64 encoder/decoder is simple with our free online tool. Select the mode you want (Encode or Decode). Enter your text in the input field and click the action button.

For encoding, enter plain text and click Encode to get the Base64 version. For decoding, paste a Base64 string and click Decode to get the original text. You can also swap the result back to the input for further processing.

What this Base64 encoder/decoder does

  • Encode text to Base64Convert plain text to Base64 format.
  • Decode Base64 to textConvert Base64 strings back to plain text.
  • Swap functionalityMove the output back to input for quick conversions.
  • Copy to clipboardCopy the result with one click.
  • Example dataLoad example data for quick testing.
  • 100% client-sideAll processing happens in your browser. No data is sent to servers.

Common use cases

  • Encode binary data for transmission over text-based protocols like email
  • Embed images or files in HTML, CSS, or JavaScript
  • Store binary data in JSON or XML documents
  • Encode credentials for basic authentication headers
  • Encode data for URL parameters and query strings
  • Decode Base64 strings from API responses and logs

💡 Pro Tips

  • Base64 increases size by ~33% — consider this for large files
  • Use for small binary data — images, icons, and small files
  • API authentication — encode credentials for Basic Auth headers
  • Email attachments — Base64 is standard for email transmission

Frequently Asked Questions