Base64 Encoder / Decoder
Encode text or files to Base64, or decode Base64 back to text — UTF-8 safe, with URL-safe variant and live byte counter. 100% private.
About Base64 Encoder / Decoder
Encode text or files to Base64, or decode Base64 back to text — UTF-8 safe, with URL-safe variant and live byte counter. 100% private. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.
FAQ
Why does this tool handle UTF-8 correctly when many don't?
JavaScript's built-in btoa() only accepts Latin1 characters. This tool uses TextEncoder/TextDecoder to convert UTF-8 bytes to Base64, so emoji, CJK, and other non-ASCII characters encode and decode correctly.
What is the URL-safe variant?
Standard Base64 uses '+' and '/' which break in URLs. The URL-safe variant (RFC 4648 §5) replaces them with '-' and '_', and optionally drops the trailing '=' padding. Useful for JWTs, data URLs, and query parameters.
Related tools
.bashrc / .zshrc Alias & Config Manager
Build shell aliases, functions, exports, and PATH edits in a visual editor, then export a clean, commented .aliases file sourced from both .bashrc and .zshrc — with shadowing detection against shell builtins and common CLI tools, function suggestions when args are needed, starter packs (git, docker, kubectl, navigation, safety, ls, dev, devops, data science), import of existing rc files, dedupe, history (localStorage), and shareable URL. 100% client-side.
Add / Subtract Date Calculator
Add or subtract years, months, weeks, days, hours, minutes and seconds from a starting date/time. Calendar-day or business-day mode with custom weekend + holiday list. Month-end policy toggle (clamp to last day vs overflow). Repeat/series mode (e.g. every 2 weeks x 10) with CSV export. Shareable URL. 100% client-side.
Add Line Numbers
Add sequential line numbers to text. Custom format, padding, start, step. Skip empty lines.