Encoding
Base64 File Converter
Convert local files to Base64 data URLs and decode Base64 back into downloadable files in your browser.
Choose a file or paste Base64. Files are processed locally in your browser.
How to use this tool
Drop a local file to encode it into a Base64 data URL.
Paste a Base64 data URL to decode it back into a downloadable file.
Use this for small test files, fixtures, API examples, and debugging file payloads.
When file Base64 is useful
Base64 file strings are common in JSON APIs, test fixtures, email attachments, and data URLs.
They are convenient when a binary file has to travel through a text-only channel.
The tradeoff is size: Base64 usually increases the payload by about one third.
Security and size limits
Base64 is not encryption. It does not protect file contents from anyone who can read the encoded string.
Large files can be slow and memory-heavy in browser tools because the encoded output is plain text.
Do not paste private documents, keys, database dumps, or customer data unless you understand the local handling and exposure risk.
Examples
Text file data URL
Inputhello lumioOutput
data:text/plain;base64,aGVsbG8gbHVtaW8=
API fixture usage
Small Base64 files can be useful in automated tests where adding a separate binary fixture would make the example harder to share.
FAQ
Does Base64 make a file secure?
No. Base64 is reversible encoding and should not be used as a security control.
Why is the encoded file bigger?
Base64 represents binary bytes using text characters, which usually adds about 33 percent overhead.
Can I decode a plain Base64 string without a data URL prefix?
Where supported by the tool, you can paste the payload. A data URL prefix is still useful because it preserves the file type.
Is the file uploaded?
No. The file is read and converted locally in your browser.