Base64 Encode & Decode
Convert text or files to Base64 and back โ UTF-8 safe, with file support. Everything is computed locally; no data ever leaves your device.
How to use Base64 Encoder
- Choose the Text or File tab.
- Paste text (or drop a file) and click Encode โ or paste Base64 and click Decode.
- Copy the result; decoded files download automatically.
About this tool
Base64 turns binary data into ASCII text so it can travel through JSON, URLs and email. This tool handles Unicode correctly (emoji included) using UTF-8 encoding first โ something naive btoa() calls get wrong.
Frequently asked questions
Why do other Base64 tools break on emoji?
They call btoa() directly, which only understands Latin-1. This tool encodes to UTF-8 bytes first, so all Unicode works both ways.
Can I decode a file?
Paste a data URL (data:application/pdf;base64,โฆ.) in Decode mode and the original file downloads.
Is this URL-safe Base64?
The output uses standard +/ characters. Replace them with -_ for URL-safe variants; the decoder accepts both.
Go deeper: what is Base64, really?
Base64 turns binary data into plain text โ but padding, URL-safe alphabets and MIME wrapping trip people up. This guide explains how it works and when to use it.