Base64 Encode & Decode — Free Online
Encode text or images to Base64 and decode Base64 back to text or a file. Runs offline in your browser, no upload.
How it works
Base64 turns binary data into plain text so it can travel through systems that only accept text — email bodies, JSON payloads, data URIs in CSS, and plenty of older APIs.
This tool handles both directions, and unlike most converters it also handles files: drop in an image and get a data URI you can paste straight into HTML. Encoding happens locally, so nothing is uploaded.
How to use it
- Choose Text or Image mode.
- Type or drop your content in the top box.
- Switch the direction to Encode or Decode.
- Copy the output, or download it for image mode.
Why this runs in your browser
Every tool on this site runs 100% in your browser. Your files are never uploaded to any server. That means no upload wait, no third party holding a copy of your data, and it keeps working even if your connection drops.
Frequently asked questions
Is Base64 a form of encryption?
No. Base64 is an encoding, not encryption. Anyone can decode it instantly. Never use it to hide secrets.
Why does the output look bigger?
Base64 expands data by roughly 33 percent, because it represents 3 bytes of binary as 4 text characters. That is expected.
Can I convert an image to a data URI?
Yes. Switch to Image mode, pick a file, and you will get a full data: URI ready to paste into an img src attribute or a CSS file.
Does it handle UTF-8 and emoji?
Yes. Text is encoded as UTF-8 before being converted, so emoji and non-Latin characters round-trip correctly.
Related tools
Request a feature or report a problem
Missing a tool you need, or something not working? Tell me what you were trying to do. Leave a way to contact you if you want a reply.