Back to tools
Base64 File Converter
Convert files to Base64 data URLs or decode Base64 back to files. Perfect for embedding images, fonts, and other files directly in HTML, CSS, or JavaScript.
Drop a file here or click to upload
Maximum file size: 10 MB
About Base64 File Conversion
This tool converts files to Base64-encoded data URLs and can decode Base64 back to files. Data URLs allow you to embed file data directly in HTML, CSS, or JavaScript without requiring separate HTTP requests.
Features:
- • File to Base64: Convert any file to Base64 data URL or pure Base64 string
- • Base64 to File: Decode Base64 data back to downloadable files
- • Auto-detect: Automatically detects file type from data URL
- • Image Preview: Preview images before downloading
- • Custom Names: Set custom file names and extensions for decoded files
Note: Large files will create very long Base64 strings which may impact performance. Consider using this for small files only (icons, thumbnails, etc.).