Mode
Select Image
Drop image here or click to select
Output Options
Base64 Output
Select an image to generate base64 encoding
About Base64 Encoding
- Purpose: Embed images directly in HTML, CSS, or JSON
- Size increase: ~33% larger than binary (3 bytes → 4 characters)
- Data URI: data:image/png;base64,... format for direct use in src attributes
- Use cases: Small icons, CSS backgrounds, email templates, API payloads
- Avoid for: Large images (use URLs instead for better caching)