Image to Base64
Convert images to Base64 data URIs for inline embedding.
Drop an image and get its Base64 data URI, ready to paste into HTML <img src>, CSS background-image, or a JSON field. Works for PNG, JPG, GIF, WebP, SVG, AVIF, and BMP — anything your browser can read.
Common use cases: inlining tiny icons to save a network request, embedding images in email templates, packing small assets into a single HTML file for a one-page prototype, and including images in JSON payloads sent to APIs that don't accept multipart uploads.
Upload Image
Base64
Upload an image to convert
Frequently asked questions
What's a "data URI" and when should I use one?
Does the file get uploaded anywhere?
Why is the Base64 string ~33% larger than the file?
Which formats are supported?
<img src>, CSS background-image, inline email, JSON payloads.Other Converters
View all tools →Roman Numeral Converter
Convert between numbers and Roman numerals
Temperature Converter
Convert between Celsius, Fahrenheit, and Kelvin
Base Converter
Convert numbers between different bases (binary, octal, hex, etc.)
Color Converter
Convert colors between HEX, RGB, HSL, and more formats
JSON to TypeScript
Convert JSON to TypeScript type definitions
JSON to Rust
Convert JSON to Rust struct definitions
CSS Unit Converter
Convert between CSS units (px, em, rem, %, pt)
Text Case Converter
Convert text between different cases (camelCase, snake_case, etc.)
Unix Time Converter
Convert between Unix timestamps and readable dates
Timezone Converter
Convert times between timezones worldwide for meetings and global coordination
JSON to CSV
Convert JSON arrays to CSV format for spreadsheets and data export
CSV to JSON
Convert CSV data to JSON format for APIs and applications