Encode text or files to Base64 and decode Base64 back to text or files.
This tool runs entirely in your browser. The file you choose is never uploaded to a server. Free, with no account required.
Input
Text or file
Output
Base64 or decoded data
Category
Developer Tools
Status
Available now
Price
Free — no subscription, no account
How to use Base64 Encoder & Decoder
Choose a mode: text to Base64, Base64 to text, file to Base64, or read a data URL.
Paste your input, or drop a file in file mode.
Read the byte counts and the overhead figure.
Copy or download the result.
Frequently asked questions
Does it handle accented characters and emoji?
Yes. Text is converted to UTF-8 bytes with TextEncoder before encoding, and decoded with a strict UTF-8 decoder, so nothing is mangled.
Why does Base64 decoding sometimes fail?
The tool refuses rather than guessing. Invalid characters, a length that is not a multiple of four, padding in the middle, or bytes that are not valid UTF-8 each produce a specific message.
Is Base64 encryption?
No. It is a reversible encoding that anyone can undo. Never use it to hide a password or a key.
Why is the output about a third larger?
Base64 represents three bytes as four characters, so the encoded form is about 33% longer than the original.
Related tools
API Request Tester — Send an HTTP request from your browser and inspect the status, headers and response body.
Binary Text Converter — Convert text to binary and binary back to text using real UTF-8 encoding.
Color Converter — Convert colours between HEX, RGB, HSL and other common colour formats.
Cron Expression Helper — Translate a cron expression into plain English and preview its next run times.
CSS Animation Generator — Configure a CSS animation, preview it and copy the keyframes plus declaration.
CSS Formatter — Format, beautify and minify CSS stylesheets.