R

Base64 Encode / Decode

Encode or decode text and files to Base64.

About Base64 Encode / Decode

What is Base64 Encode / Decode?

The Base64 Encoder and Decoder is a free tool to convert text or files to Base64 format and decode Base64 strings back to their original format. Base64 is a binary-to-text encoding scheme used in emails, HTML data URIs, API authentication headers (like Basic Auth), and JSON payloads.

How to Use

  1. 1Select "Encode" or "Decode" mode at the top.
  2. 2Type or paste your text into the input field.
  3. 3The encoded or decoded output appears instantly below.
  4. 4Use the File tab to encode binary files (images, PDFs) directly to a Base64 data string.

Frequently Asked Questions

What is Base64 encoding used for?

Base64 is used to encode binary data as text, making it safe for transport over systems that only support text, such as emails or JSON payloads.

Can I encode images to Base64?

Yes, you can upload an image and convert it to a Base64 data URI for use directly in your CSS or HTML.

100% Private — Your Data Never Leaves Your Browser

Uses the browser's native btoa() and atob() functions for ASCII text, and FileReader API for binary file encoding. Everything runs offline in your browser.