Base64 Encode / Decode

Encode and decode Base64 text, or turn images into Base64 data URIs.

Encode text to Base64, decode Base64 to text, or convert an image into a ready-to-paste data URI.

🔒 Everything stays in your browser – nothing is sent or saved.

How to use the base64 encode / decode

  1. Paste text or choose an image.
  2. Click Encode or Decode.
  3. Copy the result.

What is Base64?

Base64 turns any data into plain letters and numbers so it can be safely placed in emails, JSON, HTML or CSS – for example embedding a small image directly in a web page.

Frequently asked questions

Is Base64 encryption?

No. Base64 is encoding, not encryption – anyone can decode it.

Does it support emojis and accents?

Yes. Text is encoded as UTF-8.

How do I embed an image in HTML with Base64?

Convert the image here and paste the data URI into an img src attribute.

Guides

Related free tools

See all 147 free tools →