Start a project

Tool 129 of 425 · Encoding

Image to Base64 Converter

Encodes an image as a data URI with ready snippets, or decodes a pasted data URI.

Image to Base64 Converter

Your input

Result

PropertyValue
Data URI

    01

    What it does

    Encodes an image as a data URI with ready snippets, or decodes a pasted data URI.

    • PNG, JPEG, WebP, SVG, GIF
    • HTML img, CSS and JSON snippets
    • Size overhead shown
    • Decode data URIs

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    Data URI and snippets, with a Copy and a Download button on every result.

    • Base64
    • Data URI
    • Images

    Why it matters

    Tiny icons and email images sometimes need to be inlined. Base64 adds about 33%, so it only pays off for small files.

    Images never leave your browser.

    How to use it

    1. Open a file or paste the input the tool asks for.
    2. Press Convert. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. Copy or download what you need. Nothing leaves this page.

    FAQ

    When should I inline images?

    Only very small ones (under ~2 KB). Bigger files are better cached separately.

    Why is SVG different?

    SVG can be URL-encoded instead of base64, which is often smaller.

    Is my input uploaded?

    No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.

    Can I rely on the result?

    It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk