ImagesRuns in your browser

Image Data URI Workbench

Get an exact base64 representation of the source file and a separate tiny PNG placeholder without uploading the image.

  • Up to 1 MiB
  • Placeholder up to 24 px
  • Local processing
Online tool

Try the tool

Add your data, choose the settings, and get the result.

Source image

The full Data URI contains every source byte and increases text size. The placeholder is a separate PNG up to 24 px, not BlurHash.

Result

Choose a file and create the two outputs.

Your data stays here

Text and selected files are processed in the current browser and are not sent to a server to produce the result.

Reviewed: 2026-07-17
01

How to use it

  1. 1

    Choose one JPEG, PNG, WebP, or AVIF file.

  2. 2

    Create the exact source Data URI and a tiny PNG placeholder.

  3. 3

    Copy the required Data URI or the ready-to-use CSS declaration.

02

What the tool can do

  • Format detection from the byte signature rather than the declared MIME type.
  • Exact base64 encoding of every source-file byte.
  • An aspect-preserving PNG placeholder with no side larger than 24 px.
03

Common use cases

  • Embedding a small local image in CSS or HTML.
  • Preparing a separate tiny placeholder for manual integration.
  • Checking the effective MIME type from file content.
04

How it works inside

The source Data URI is built directly from the read bytes and displayed only as text.

The placeholder is decoded and encoded through the current browser's Canvas API.

05

Questions and answers

Is the file uploaded?

No. Reading, decoding, and encoding happen locally in the browser.

Is this an image optimizer?

No. The exact Data URI preserves every source byte, while the PNG placeholder is generated separately.