Image to Base64
Convert an image into a Base64 data URI for CSS, HTML or JSON embedding.
About the Image to Base64
A data URI lets you embed a small image directly in HTML or CSS and save an HTTP request. Drop a file here to get the raw Base64 string, a ready-made <img> tag and a CSS background-image rule.
Frequently asked questions
When should I not use Base64?
Base64 makes a file about 33% larger and cannot be cached separately, so keep it for icons and images under roughly 10 KB.
Related tools
All Developer โRegex Tester
Test a regular expression against sample text with live match highlighting.
URL Encoder / Decoder
Percent-encode or decode URLs and query string components.
JSON Formatter & Validator
Beautify, minify and validate JSON with clear error messages.
Markdown Preview
Write Markdown and see the rendered result and HTML side by side.
.htaccess Redirect Generator
Build redirect, HTTPS, www and caching rules for Apache.
SQL Formatter
Format a messy SQL query into readable, indented lines.