File to Base64
Convert files to Base64 encoded strings.
Maximum file size: 10MB for optimal performance
File Name:
Size:
Type:
Converting...
Converting file to Base64...
Output length: characters
Usage Examples:
- HTML Image:
<img src="data:image/png;base64,..."> - CSS Background:
background-image: url(data:image/png;base64,...); - Email Attachments: Embed files in email bodies
- API Requests: Send files as Base64 strings in JSON
Features
- Convert any file to Base64 encoded string
- Support for images, documents, and other file types
- Generate both plain Base64 and Data URL formats
- Handle files up to 10MB
- Client-side conversion for privacy
- Download Base64 output as text file
- Display file information and output statistics
How to Use
- Click Choose File and select a file from your computer
- Wait for the file to be converted to Base64
- Copy the Base64 output or Data URL
- Use in HTML, CSS, APIs, or download as a text file
- For images, use the Data URL directly in src attributes