Base64 file converter
Turn any file into a Base64 data URI, or decode Base64 back into a file.
Loading tool…
About the base64 file converter
Turns any file into a Base64 data URI you can paste straight into CSS, an img tag or a JSON payload, and decodes a data URI back into a downloadable file. Images preview inline so you can confirm you encoded the right thing.
Frequently asked questions
Is my file uploaded anywhere?
No. The file is read with the browser's FileReader API, converted in memory, and released when you leave the page. Watch your network panel while you use it — there are no requests.
Should I inline images as data URIs?
Only small ones, roughly under 4 KB. Base64 inflates size by a third and the bytes cannot be cached separately from the document, so large inlined images make every page load slower.