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.
100% private
This tool runs entirely in your browser. Your input never leaves your device — no uploads, no tracking, no accounts.
Related tools
Hash Generator
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text or files, with hex and Base64 output. Uses Web Crypto — 100% private.
Developer
JSON Formatter
Format, validate, minify, and sort JSON — fully in your browser.
Developer
URL Encoder / Decoder
Encode URLs or components for safe transmission, or decode percent-encoded URLs back to plain text. UTF-8 safe.
Developer
UUID Generator
Generate RFC 4122 v4 UUIDs in bulk, with optional hyphens, uppercase, and prefix options. Uses crypto.randomUUID — 100% private.
Developer
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.
How to use
- Enter your input in the tool above.
- Adjust any options (indent, format, etc.) to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.
Frequently asked questions
- 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.