en

Image to Data URI

Convert an image to a Base64 data URI locally - paste it straight into HTML or CSS. No upload.

Your files

    Running locally on your device ...

    0%

    Your files never left your device

      Is my file uploaded?

      No. Everything runs in your browser - your file never leaves your device. How this is verifiable

      No upload100% local
      Your content stays with youno third-party access
      Servers in GermanyGDPR by design
      Independently auditedTLS A+ · HTTP headers A+

      A data URI encodes an image directly as text (Base64), so you can embed it inline in HTML (an img src) or CSS (a background) without a separate file or extra network request. This tool converts your image into a ready-to-paste data: URI.

      The output is a plain text file containing the full data:image/...;base64,... string. It is handy for tiny icons, email templates, single-file demos, or avoiding an extra request, though the Base64 text is about a third larger than the original bytes.

      Everything runs entirely locally in your browser (no upload, even offline) - your image never leaves your device. The image is encoded exactly as it is (same bytes, same format, no re-encoding); a very large image makes a very long string, so this suits small images best.

      Specifications

      Specifications
      Input formatsJPG, JPEG, PNG, WEBP
      Output formatTXT
      Batch processingYes
      ProcessingLocally in your browser (JavaScript)
      File uploadNone

      In 3 steps

      1. Drop or tap your image (PNG, JPEG or WebP).
      2. It is Base64-encoded into a data: URI in your browser.
      3. Download the text file with the data URI (ready to paste).

      Limitations: Encodes the image bytes exactly as Base64 into a data:<type>;base64,... string saved as a text file. Base64 is about 33% larger than the original, so it is best for small images. The original format and bytes are kept (no re-encoding).

      FAQ

      Is my image uploaded?

      No. The encoding happens entirely locally in the browser - even offline. Your image never leaves your device.

      Where do I use a data URI?

      Paste it as an img src or a CSS background to embed the image inline, without a separate file or request.

      Does it make the file bigger?

      Yes. Base64 text is about a third larger than the original bytes, so a data URI suits small images best.

      Is the image changed?

      No. The exact original bytes are encoded, so the format and quality are unchanged.

      Related tools