📂File → Base64 Converter
Encode any file (images, PDFs, videos) as Base64 data URLs, and decode data URLs back to files. Useful for inline attachments, embedding small files in code, and turning files into text for debugging.
How to use
- 1Upload a file.
- 2A Base64 data URL is generated automatically.
- 3Copy or download it.
FAQ
Are large files supported?+
Under 10MB is recommended. Base64 increases size by about 33%, and large files may fail due to memory pressure.
Where is this useful?+
(1) Inline images in HTML/CSS, (2) inline content instead of email attachments, (3) embedding files in JSON, (4) API testing in tools like Postman.
Images only?+
PDFs, MP3s, videos, documents — any file works. MIME type is auto-detected for the data URL.
Can I convert a data URL back to a file?+
Yes — paste a Base64 data URL to decode it back to the original file.
Is there an image-specific tool?+
Yes — [Image ↔ Base64] offers preview and other image-friendly features.
Is Base64 secure?+
It's encoding, not encryption — anyone can decode it. Sensitive files need separate encryption and access control.