Image / Data URL Converter

Encode a supported image as a data URL or decode one into a local image file.

Encode a supported image as a data URL or decode one into a local image file.

    Options

    PNG/JPEG/static WebP up to 5 MiB. Decode accepts matching base64 data:image/png, jpeg or webp only; up to 7 MiB of pasted text. SVG and remote URLs are rejected. Base64 adds about one-third to the encoded payload size; it is not encryption. Decoded images also obey 16 million pixels and 8192 pixels per side. Decoded images also obey 16 million pixels and 8192 pixels per side.

    How to use

    Image / Data URL Converter

    Encode a supported image as a data URL or decode one into a local image file.

    Step by step

    1. Choose a supported input or load the example, then review the original.
    2. Encode a supported image as a data URL or decode one into a local image file. Start with the displayed settings, change only the options needed for your output and compare the result with your source.
    3. Run the task, review the actual result and copy or download a checked copy.

    Choosing the settings

    OptionWhat changes
    OptionsEncode a supported image as a data URL or decode one into a local image file. Start with the displayed settings, change only the options needed for your output and compare the result with your source.
    LimitsPNG/JPEG/static WebP up to 5 MiB. Decode accepts matching base64 data:image/png, jpeg or webp only; up to 7 MiB of pasted text. SVG and remote URLs are rejected. Base64 adds about one-third to the encoded payload size; it is not encryption. Decoded images also obey 16 million pixels and 8192 pixels per side. Decoded images also obey 16 million pixels and 8192 pixels per side.

    Example and expected result

    A 3-byte payload becomes 4 base64 characters; the data URL prefix adds further characters. Decoding a supported image restores its original encoded bytes.

    If it is not working

    • This MIME type is unsupported or does not match the file bytes. Use PNG, JPEG or WebP.

    Formats and limits

    PNG/JPEG/static WebP up to 5 MiB. Decode accepts matching base64 data:image/png, jpeg or webp only; up to 7 MiB of pasted text. SVG and remote URLs are rejected. Base64 adds about one-third to the encoded payload size; it is not encryption. Decoded images also obey 16 million pixels and 8192 pixels per side. Decoded images also obey 16 million pixels and 8192 pixels per side.

    FAQ

    What does this tool do?

    Encode a supported image as a data URL or decode one into a local image file.

    Which setting should I choose?

    Encode a supported image as a data URL or decode one into a local image file. Start with the displayed settings, change only the options needed for your output and compare the result with your source.

    What are the limits?

    PNG/JPEG/static WebP up to 5 MiB. Decode accepts matching base64 data:image/png, jpeg or webp only; up to 7 MiB of pasted text. SVG and remote URLs are rejected. Base64 adds about one-third to the encoded payload size; it is not encryption. Decoded images also obey 16 million pixels and 8192 pixels per side. Decoded images also obey 16 million pixels and 8192 pixels per side.

    Why did processing fail?

    This MIME type is unsupported or does not match the file bytes. Use PNG, JPEG or WebP.

    Is my input uploaded or saved?

    No. Processing runs on your device. Inputs and results stay in this page’s memory until you clear it or leave. They are not uploaded, logged or stored by ToolRobin. Copying places the result on your device’s clipboard.