Skip to main content

Base64 Encoder & Decoder

Free online Base64 encoder and decoder. Convert text and files to Base64 and back. Support for images and binary files.

Encode text and files to Base64 or decode Base64 strings back to their original form. Our tool handles both text and binary data including images.

All encoding and decoding happens locally in your browser. Your data is never uploaded to any server.

How to Use This Tool

  1. 1 t
  2. 2 o
  3. 3 o
  4. 4 l
  5. 5 s
  6. 6 .
  7. 7 b
  8. 8 a
  9. 9 s
  10. 10 e
  11. 11 6
  12. 12 4
  13. 13 .
  14. 14 h
  15. 15 o
  16. 16 w
  17. 17 T
  18. 18 o
  19. 19 U
  20. 20 s
  21. 21 e
  22. 22 .
  23. 23 s
  24. 24 t
  25. 25 e
  26. 26 p
  27. 27 s

Use Cases

Embed Images

Convert images to Base64 for embedding directly in HTML or CSS data URIs.

Email Attachments

Encode binary files for safe transmission in email bodies.

API Data

Encode binary data for transmission in JSON APIs that only support text.

Data URLs

Create data URLs for embedding small files directly in web pages.

Frequently Asked Questions

What is Base64 encoding?

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

Why does Base64 make data larger?

Base64 encoding increases data size by approximately 33% because it converts every 3 bytes of binary data into 4 ASCII characters. This overhead is the trade-off for text-safe encoding.

Is Base64 encryption?

No, Base64 is encoding, not encryption. It doesn't provide any security. Anyone can easily decode Base64 data. For security, use actual encryption methods.

Can I encode any file type?

Yes, Base64 can encode any binary data including images, documents, audio files, and more. However, large files will result in very long Base64 strings.

What's a data URL?

A data URL is a URI scheme that allows embedding data directly in web pages. It starts with 'data:' followed by the MIME type and Base64-encoded data, like 'data:image/png;base64,...'