Free Browser Tool
Base64 Encoder / Decoder
Convert text, files, and images to and from Base64 instantly. Keep previews, preserve MIME types, and download decoded files without leaving your browser.
Text + file support
Image previews
URL-safe output
Text → Base64
Live conversion happens entirely in your browser.
Output
Copy, preview, or download the converted result.
Input size
0 bytes
Output size
0 chars
Encoding
ASCII
Prefix
Data URI on
Input type
Text
Output type
Base64
Mode
Text → Base64 (auto)
Why Use This Tool
This tool offers a fast, private, and browser-only way to encode and decode Base64. Because all work happens locally, your files and text never leave your device — ideal for troubleshooting, embedding small assets as Data URIs, or converting payloads during development.
Use it to quickly inspect encoded payloads, produce URL-safe tokens, embed assets in HTML/CSS, or share small files as Base64 text. No sign-in or server round-trip is required.
How to Use This Tool
Choose Text or File Mode
Use the Text ↔ Base64 tab for plain text or the File ↔ Base64 tab for uploads and decoded downloads.
Switch Direction
Toggle encode or decode. Turn on auto-detect to let the tool switch when it sees valid Base64 input.
Copy or Download
Copy the result to your clipboard or download the decoded output as a file.
Key Features
Instant Switching
Flip between encoding and decoding without leaving the page
File Support
Convert images, PDFs, text files, and other uploads directly in the browser
Image Preview
See decoded images and uploaded image files instantly
MIME Detection
Detect file types automatically and preserve them when downloading
URL-safe Output
Produce Base64 that is safe for URLs, tokens, and query strings
100% Browser-Based
No server upload, no account, and no waiting around for conversion
Common Use Cases
Embedding Assets
Turn small images or icons into inline data URIs for HTML, CSS, or email templates
Debugging API Payloads
Inspect Base64 strings, strip prefixes, and decode payloads locally
Transferring Files
Convert files into Base64 text for transport, storage, or quick browser-side workflows