← All text tools

Base64 encoder / decoder

Encode or decode Base64 text and files, including data: URLs.

  • Free
  • No sign-up
  • Works on any device

About Base64 encoder / decoder

Encode text or files to Base64 and decode Base64 back to text. Base64 turns binary data into plain letters and numbers so it can travel in emails, URLs, JSON and HTML. Remember that Base64 is an encoding, not encryption: anyone can decode it.

How to use Base64 encoder / decoder

  1. Paste text, or add a file, to encode it to Base64.
  2. Switch to decode mode to turn Base64 text, or a data: URL, back into the original.
  3. Copy the output or save the decoded file.

Why use this tool?

Also known as

Frequently asked questions

Is Base64 encryption?

No. It only changes how data is written and is easy to reverse, so never use it to hide passwords or secrets.

Why does Base64 make data bigger?

Every three bytes become four characters, so the encoded text is about 33% larger than the original.

How do I turn an image into Base64?

Add the image file in encode mode. The result can be used as a data URL inside CSS or an img tag, though large images make the text very long.

Why does my Base64 text fail to decode?

Line breaks, missing padding equals signs or URL-safe characters can break decoding. Remove stray whitespace and make sure the string is complete.

Is Base64 encoder / decoder free?

Yes. Base64 encoder / decoder on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put Base64 encoder / decoder on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools