Security & Privacy · runs locally
Base64 File Encoder
Encode any file as a data URL, or decode Base64 back into a download.
Loading the Base64 file tool…
The tool runs locally in your browser.
Carry a file as text
Emails, JSON configs and single-file HTML pages sometimes need a file represented as text. This encoder converts any file into a Base64 data URL — and reverses the process to recover the file.
What you can do
- Encode a local file into a Base64 data URL
- See the resulting size alongside the original
- Paste Base64 to decode and download the file
- Copy the data URL into your markup
How to use it
- Drop a file in, or paste a Base64 payload.
- Copy the data URL, or download the decoded file.
- Keep payloads small — Base64 adds roughly a third in size.
Privacy
Encoding reads the file in memory. Nothing is uploaded, and the file is released when you clear it.
Frequently asked questions
How large can the file be?
Small assets — icons, fonts, short audio — work well. Huge files bloat the page.
What is a data URL?
A URL of the form data:mime;base64,... that carries the content inline.
Is Base64 encryption?
No — it is encoding. Anyone can decode it; use the AES tool if you need secrecy.