Base64 Encode / Decode

Use this free online Base64 encoder and decoder to convert text to Base64 and back, right in your browser. Encoding is fully UTF-8 safe, so emojis, accented characters and any Unicode text survive the round trip. You can also turn any file into a Base64 data URI with the file-to-Base64 mode — perfect for embedding images or assets inline. Everything runs 100% client-side: your text and files are processed locally and never uploaded, keeping your data completely private.

🔒 100% private — files never leave your device

Loading…

How to use

  1. Choose Encode to convert text to Base64, or Decode to turn Base64 back into readable text.
  2. Type or paste your text into the input box — conversion happens live as you type.
  3. To convert a file, drop it into the file area to get a Base64 data URI instead.
  4. Copy the result with one click and paste it wherever you need it.

Frequently asked questions

Is my text or file uploaded to a server?

No. This Base64 converter runs 100% in your browser. Your text and files are processed locally with JavaScript and are never uploaded, so your data stays private.

Does it handle Unicode, emojis and accented characters?

Yes. Encoding is UTF-8 safe: it converts your text to raw UTF-8 bytes before Base64 encoding, so emojis, accents and any Unicode characters encode and decode correctly.

Can I convert a file to Base64?

Yes. Drop a file into the file area and the tool returns a Base64 data URI (data:...;base64,...) that you can embed directly in HTML, CSS or JSON. One file at a time.

What does "invalid Base64" mean when decoding?

It means the input isn't valid Base64 or the bytes aren't valid UTF-8 text. Check for typos, missing characters or extra symbols. Whitespace is ignored automatically.

Is there a size limit for files or text?

There's no fixed limit, but everything runs in your browser, so very large files depend on your device's memory. Base64 output is about 33% larger than the original bytes.

Does encoding or decoding change my data quality?

No. Base64 is lossless — it encodes the exact bytes and decodes them back unchanged, so text and files come out identical to the original.

About this tool

Encode and decode Base64 for UTF-8 text, or turn any file into a Base64 data URI. Runs entirely in your browser — nothing is uploaded and your data stays private.

Related tools