Image to Base64 Converter

Convert a PNG, JPG, GIF, SVG or WebP image to a Base64 data URI for CSS or HTML. Free, runs locally.

About this tool

Choose an image and get a data URI plus ready-to-paste CSS and HTML snippets. Base64 inflates size by about 33%, so use it only for small icons. The file is read in your browser and never uploaded.

Related: JSON Formatter & Validator · Base64 Encode & Decode · URL Encoder & Decoder · SHA-256 / SHA-1 Hash Generator · Unix Timestamp Converter