All encoding and decoding runs locally in your browser. Your data never leaves your device.
Encode or decode Base64 strings in milliseconds with zero server round-trips.
Generate URL-safe Base64 by replacing +, /, and = with URL-friendly characters.
Correctly encodes and decodes multi-byte Unicode characters including emoji and CJK text.
Copy the encoded or decoded result to your clipboard with a single click.
Works in any modern browser — no extensions, plugins, or accounts required.
Paste plain text in the left panel to encode, or paste a Base64 string in the right panel to decode.
Click "Encode" to convert text to Base64, "Decode" to convert Base64 back to text, or "URL-Safe Encode" for URL-compatible output.
Click the "Copy" button to copy the result to your clipboard, ready to paste into your code, email, or API request.
| Method | Character Set | Size Overhead | Best For |
|---|---|---|---|
| Base64 (Standard) | A-Z, a-z, 0-9, +, / | ~33% | Email attachments, data URIs, JWT |
| Base64 (URL-Safe) | A-Z, a-z, 0-9, -, _ | ~33% | URL parameters, filenames |
| URL Encoding | %XX hex pairs | Up to 300% | URL query strings |
| Hex Encoding | 0-9, A-F | 100% | Hash digests, color codes |
| ASCII85 | 33-117 ASCII range | ~25% | PDF internals, PostScript |
Encode and decode Base64 online free with FreeToolBox — instantly convert text strings, URLs, and data to Base64 encoding and back. Base64 is a fundamental encoding scheme in web development, widely used across APIs, email systems (MIME), authentication protocols (HTTP Basic Auth, JWT), and data embedding (HTML data URIs, CSS background images). Every web developer encounters Base64 regularly, whether debugging API responses, embedding small assets inline, or handling file uploads in JSON payloads.
This tool runs entirely in your browser using JavaScript's native btoa() and atob() functions — no data is ever sent to a server. It supports standard Base64 (RFC 4648) and URL-safe Base64 (replacing + with - and / with _, stripping = padding) for safe use in URLs and filenames. Full UTF-8 Unicode support means you can encode emoji, Chinese characters, Arabic text, and any other multi-byte content correctly. Simply paste your text, click a button, and copy the result. Completely free, no account required, no rate limits.