Base64 Encoder / Decoder
Encode text or files to Base64 and decode Base64 back to text or a downloadable file. Full UTF-8 support. Free and private.
About the Base64 Encoder / Decoder
Encode text and files to Base64 for emails, data URLs, APIs and config files, or decode a Base64 string back into readable text or the original file. Unicode text, including Sinhala, Tamil and emoji, is handled correctly.
How to use it
- Choose text or file mode.
- Paste text or select a file, then click Encode or Decode.
- Copy the result or download the decoded file.
What Base64 is for
Base64 turns any data into plain letters, digits, + and /, so it can travel through systems built for text: email attachments, JSON and XML payloads, HTTP headers and data URLs in HTML and CSS. Every 3 bytes become 4 characters, so encoded data is about 33% larger than the original.
Unicode, URL-safe and data URLs
Text is encoded as UTF-8 first, so Sinhala, Tamil, emoji and accented letters decode back exactly. URL-safe mode swaps + and / for - and _ and drops the = padding, the variant used in JSON Web Tokens and URLs. File mode produces a full data URL such as data:image/png;base64,… that you can paste straight into an img tag or CSS.
Not encryption
Anyone can decode Base64, so it gives no protection at all. Never use it to hide passwords or API keys. For secrets, use proper encryption and a password manager.
Frequently asked questions
Is Base64 encryption?
No. Base64 is an encoding that anyone can reverse. Never use it to protect passwords or secrets.
Why is the Base64 output bigger than my file?
Base64 represents every 3 bytes with 4 characters, so output is about 33% larger.
What is a data URL?
A string like data:image/png;base64,… that embeds a file directly in HTML or CSS. The file encoder can produce one for you.