Image to Base64 / Data URI and Base64 to Image Converter
Convert images to Base64, Data URI, <img>, CSS and Markdown snippets; paste Base64 to preview and download the image with the right extension. Free, in-browser.
Drag and drop an image here or click Choose image (≤10 MB — JPG, PNG, WebP, GIF, SVG, AVIF, ICO, BMP).
No image yet. Images are processed only in your browser.
Images and Base64 strings are converted in your browser — nothing is uploaded or stored.
Developer API
No API for this tool yet
This tool is web-only for now. Sign up to be notified when the API opens, or contact us if you need an early integration.
How to use
A free image-to-Base64 converter: choose an image to get the Base64 string, Data URI and ready-to-paste snippets for <img>, CSS background-image or Markdown — handy for embedding small icons in HTML, emails or JSON. The other way round: paste a Base64 string or Data URI to preview the image, see its real format (detected from the first bytes, not the declared type) and download it with the right extension. Everything runs in your browser; images are never uploaded.
- Image → Base64: click Choose image or drag and drop (≤10 MB). Click Try an example to use a sample image.
- Click Copy on the line you need: raw Base64, Data URI, <img> tag, CSS or Markdown; the tool shows original size vs string size (≈ +33%).
- Base64 → Image: switch to the Base64 → Image tab, paste the string (with or without the data: prefix; base64url and line breaks are fine) and click Decode (Ctrl+Enter).
- Preview the image, its format and dimensions; click Download to save it with the correct extension.
Frequently asked questions
- Only convert images you have the right to use.
Related tools
PDF to image — convert PDF pages to JPG or PNG online
Convert each PDF page into a sharp JPG, PNG or WebP image (72–300 DPI), pick the pages you need, download one by one or as a ZIP. The PDF never leaves your browser. Free.
23 runs
Android Screenshot Maker
Make Samsung One UI (S26 Ultra) screenshots: status bar, lock screen with 12 clock styles, notification panel, heads-up — on your own image, export PNG 1080×2340 / 2160×4680. Free.
5 runs
QR Code & Barcode Generator
Free QR code generator (link, text, Wi-Fi, vCard, email, SMS) and Code 128 / EAN-13 barcodes. Download PNG/SVG, custom colors, made in your browser.
5 runs



