Base64 Encode & Decode — Free Online Tool
Encode text or files to Base64 and decode Base64 strings — all in your browser.
How It Works
- 1Upload your file by dragging it into the drop zone or clicking to browse.
- 2Adjust the quality slider to balance file size and visual fidelity (optional).
- 3Click Download to save your converted file.
About Base64 Encode/Decode
Base64 is a binary-to-text encoding scheme used in data URIs, email attachments, and API payloads. This tool encodes plain text or files to Base64 and decodes Base64 strings back to text or downloadable files. Handles UTF-8 text and binary data correctly. Everything runs in your browser — no data is sent to any server.
Frequently Asked Questions
Is my data sent to a server?
No. Encoding and decoding happen entirely in your browser using the built-in btoa/atob functions and TextEncoder/TextDecoder APIs.
Can I encode files to Base64?
Yes. Switch to File mode when encoding to upload any file and get its Base64 representation.
Does it handle Unicode text?
Yes. The tool uses TextEncoder/TextDecoder to properly handle UTF-8 characters including emoji, CJK characters, and other non-ASCII text.
Related Tools
URL Encode/Decode
Encode and decode URLs and query parameters. Free, instant, browser-based.
JWT Decoder
Decode JWT tokens to inspect header, payload, and expiration. Free, browser-based.
HTML Entity Encode/Decode
Encode and decode HTML entities. Convert special characters to HTML-safe text.
Hash Generator
Generate SHA-1, SHA-256, SHA-512, and MD5 hashes from text or files. Free, browser-based.