Base64 Encoder & Decoder
Encode text to Base64 or decode it back to text instantly — with URL-safe mode, file encoding, and full Unicode support. Nothing leaves your browser.
Convert
Results update live as you type.
Encoding happens locally in your browser with JavaScript. Your text and files are never uploaded anywhere.
Convert as much text as you like, instantly — no account, no email, no limits.
UTF-8 safe encoding, URL-safe mode, file support, and auto-detect — all free, always.
How to use
- 1Pick a mode
Choose Encode to turn text into Base64, Decode to turn Base64 back into text, or Auto-detect to let the tool decide.
- 2Enter your input
Type or paste text into the input box — or pick a file to encode it to Base64. The output updates live as you type.
- 3Copy or download the result
Use Copy output for the clipboard or Download output to save it as a .txt file. Use Swap to flip the result back into the input.
Features
The output updates on every keystroke — no buttons to press, no waiting.
Uses TextEncoder and TextDecoder, so emoji, accented characters, and non-Latin scripts encode correctly — unlike plain btoa().
Toggle the URL-safe alphabet to get output with – and _ instead of + and /, safe for URLs and filenames.
Pick any file — an image, a document, anything — and get its Base64 representation instantly, right in the page.
Paste anything and the tool figures out whether it is text to encode or Base64 to decode.
See input characters, UTF-8 byte size, and output length at a glance.
Frequently asked questions
What is Base64?
Why do I get an “invalid Base64” error?
What is URL-safe Base64?
Does it support Unicode and emoji?
Why is Base64 output longer than the input?
Is it safe to encode passwords or private files here?
Is this tool really free?
Related tools
Format, validate, and beautify JSON instantly in your browser.
Password GeneratorCreate strong, random passwords with custom length and symbols.
QR Code GeneratorTurn any URL or text into a scannable QR code for free.
Word CounterCount words, characters, and reading time with a readability score.
PDF ToolkitMerge, split, and compress PDF files right in your browser.
