Convert a file into a Base64 data URL, or decode a Base64 string back into a downloadable file.
Last updated: June 2026 | By Patchworkr Team
Choose a file to encode
Any file type works. The output is a Base64 data URL.
Base64 turns binary data into plain text so it can travel through systems that expect text. It is commonly used for inline images, email attachments, API payloads, and copying small files into code or JSON.
This tool supports both directions. You can encode any uploaded file into a Base64 data URL, or paste Base64 text to recover a downloadable file with the MIME type you choose.
Upload a file, click Convert, and copy the generated Base64 data URL. Use this when you need inline assets or text-safe transport.
Paste a raw Base64 string or a full data URL, choose a file name and MIME type, then download the reconstructed file.
Base64 strings are larger than the original file, so they are not ideal for very large assets. If you are decoding data from outside this tool, make sure it is valid Base64 and pick the correct MIME type so the downloaded file opens correctly.
data:...;base64,, the tool will strip the prefix automatically.Related Tools
Convert between text and 8-bit binary groups.
Render SVG artwork into PNG images.
Convert between BMP and PNG image files.
Convert between Word documents and HTML.
Convert between CSV tables and JSON arrays.
Convert between .env files and JSON objects.