Image to Base64
Convert an image to a Base64 data URI, <img> tag or CSS.
Runs in your browserFree, no sign-upOpens JPG, PNG, WebP, GIF, SVG
Loading tool…
How to use it
- Choose or drop an image.
- Pick the output format.
- Copy the result.
About this tool
Embed small icons and images directly in HTML, CSS, JSON or emails. Get a raw Base64 string, a data URI, a ready <img> tag, a CSS background rule or Markdown.
Your input is processed on your device. Nothing is sent to a server or stored.
Questions
When should I inline an image?
For small icons under about 10 KB. Larger images are better as normal files so browsers can cache them.
Images
All imagesMore tools like this
ImagesImage CompressorMake JPG, PNG and WebP images smaller in your browser.Opens filesOpen →ImagesImage ResizerResize images to an exact width or a preset.Opens filesOpen →ImagesImage ConverterConvert images between PNG, JPEG and WebP.Opens filesOpen →ImagesBanner & Social Card MakerDesign banners, social posts and link preview images in seconds.Opens filesOpen →ImagesImage CropperCrop images freely or to 1:1, 4:3, 16:9 and other ratios.Opens filesOpen →ImagesRotate & Flip ImageRotate by 90°, straighten by any angle and mirror images.Opens filesOpen →ImagesPhoto Filters & AdjustmentsBrightness, contrast, saturation, blur and one-click filters.Opens filesOpen →ImagesAdd Watermark to ImageAdd a text or logo watermark, in a corner or repeated.Opens filesOpen →