How to Encode and decode Base64
Encode and decode Base64 text and files entirely in the browser. Generate data URIs, handle UTF-8, drag-and-drop files. No data leaves your browser.
Quick start
Base64 Encoder — Encode and decode Base64 text and files entirely in the browser.
Get started in under two minutes:
- Select the Encode, Decode, or File tab
- Paste your text or upload your file
- View the result instantly
- Copy the output
Step-by-step instructions
Follow these steps to get the best results from Base64 Encoder:
Select the Encode, Decode, or File tab
At the top of the tool, click the tab for what you want to do: Encode converts plain text to Base64, Decode converts a Base64 string back to readable text, File encodes an entire file.
Paste your text or upload your file
In Encode mode, type or paste your text into the "Paste text to encode" textarea. In Decode mode, paste your Base64 string into the "Paste Base64 string to decode" textarea. In File mode, drag and drop a file onto the upload zone or click to browse.
View the result instantly
The encoded or decoded output appears in the result field below as you type. No button press is required — the tool updates in real time as you modify your input.
Copy the output
Click the Copy button beneath the output field to copy the result to your clipboard. You can then paste it directly into your code, API request, or wherever you need it.
Frequently asked questions
Are my data uploaded to a server?
No. Base64 Encoder processes everything locally in your browser using JavaScript. Your data never leave your device, making it safe for confidential or sensitive content.
Is Base64 Encoder free to use?
Yes — Base64 Encoder is completely free with no account or signup required. All core features are available immediately.
Does Base64 Encoder work on mobile devices?
Yes — Base64 Encoder works on smartphones and tablets through any modern mobile browser. The interface adapts to smaller screens automatically.