Loadingβ¦
Loadingβ¦
Encode an image as Base64 or a data URI, with ready-made CSS, HTML, and Markdown, or decode Base64 back into an image you can preview and download.
Also covers: Image to Base64 Β· Base64 to image Β· Data URI generator
Drop an image to encode
or paste from the clipboard Β· JPG, PNG, WebP, AVIF, HEIC, GIF, BMP, TIFF
Data URIs are about a third larger than the file. They're best for small icons and images under a few KB.
Image β Base64 reads the original file exactly and encodes it. Base64 β Image decodes pasted Base64 or a data URI and detects the format from the data itself.
Copy the data URI, the bare Base64, or a CSS, HTML, or Markdown snippet; or preview and download the decoded image.
For very small images, like icons under a few kilobytes, it saves a network request. Base64 is about 33% larger than the file and can't be cached separately, so link larger images normally.
No. The original file's bytes are encoded exactly, so decoding gives back the identical file.
No. Images are processed entirely in your browser on your own device. Nothing is uploaded to a server or stored.
SVG
Preview SVG code live and safely, check its size and viewBox, fix common errors, and export it as PNG, a data URI, a CSS background, or an <img> tag.
QR codes
Create QR codes for links, Wi-Fi logins, email, phone, and SMS. Set error correction and colors, then download a crisp SVG or PNG. Static codes, no tracking, no sign-up.
Formats
Convert images between JPG, PNG, WebP, and AVIF, including from HEIC, TIFF, BMP, and GIF. Batch convert with quality control, all in your browser.
iPhone
Convert iPhone HEIC photos to JPG, PNG, or WebP right in your browser, in batches, without uploading them anywhere.
Icons
Make a complete favicon set from an image or a letter: favicon.ico, PNG icons, the Apple touch icon, Android icons, a web manifest, and the HTML to add them.
Optimize
Compress JPG, PNG, WebP, and AVIF images by quality or to a target size like 100 KB or 1 MB, with optional resizing. Batch, private, in your browser.