Base64 Encode / Decode
Encode text to Base64 or decode Base64 back to text. Fast, free, runs entirely in your browser.
Input
Output
Base64 encoding converts binary data (or text) into a safe ASCII string. It's used everywhere: APIs, data URLs, email attachments, config files, and more. Instead of hunting for a command-line tool or an online service that uploads your data, use this free tool — it runs entirely in your browser.
What it does: Paste text to encode it to Base64, or paste a Base64 string to decode it back to text. Switch between Encode and Decode with one click. The result updates as you type. Copy the output into your project. All processing runs in your browser; nothing is sent to the server.
Quick start
- Paste your text or Base64 string into the input area.
- Choose mode: Encode (text → Base64) or Decode (Base64 → text).
- Copy the result. The output updates automatically as you type.
When to use Base64
- APIs: Many APIs expect Base64-encoded strings for binary payloads or credentials.
- Data URLs: Embed images or small files in HTML/CSS as
data:image/png;base64,.... - Config files: Store small binary blobs (keys, certs) as Base64 in JSON or YAML.
- Email: MIME attachments are Base64-encoded.
- URLs: Base64 can encode short binary data in query params (with URL-safe variants).
Unicode support
The tool uses UTF-8 encoding. When you encode text with Unicode characters (emoji, non-Latin scripts, etc.), they are first converted to UTF-8 bytes, then to Base64. Decoding reverses this correctly.
Privacy & security
Encoding and decoding run entirely in your browser. Your text is never uploaded or logged. Safe for sensitive data — but always review the output before using it in production.
Final thoughts
Whether you need to encode a string for an API, decode a Base64 config value, or quickly test a data URL, this tool lets you do it in seconds. Paste, choose Encode or Decode, and copy. No server round-trip, no account — just a quick, client-side conversion.
- Paste your text or Base64 string into the input area.
- Choose Encode (text → Base64) or Decode (Base64 → text).
- Copy the result. All processing runs in your browser; nothing is sent to the server.
FAQ
Related tools
This tool is provided for personal and educational use only. We do not host or store any user content or media files on our servers. All processing happens locally in your browser. We are not affiliated with or endorsed by any social network, platform, or company mentioned. Use this service at your own discretion and in compliance with the respective platform’s terms of service.