Home › Guides

🌐 How to Extract Pictures from an HTML File (and What Base64 Images Are)

By the MZScan team · Updated 23 November 2026 · 4 min read

You may have received an HTML file, such as a saved web page, an email template or a report exported from software, that shows pictures when opened but has no separate image files next to it. In many cases the pictures are stored inside the HTML itself. This guide explains how that works and how to save those pictures one by one.

Save the pictures hidden inside an HTML file

Open the HTML Picture Saver →

How pictures can live inside an HTML file

A web page normally points to pictures stored elsewhere, for example images/logo.png. To make a page that works as a single file, some tools instead write the picture straight into the HTML as a long piece of text called a data URI. The most common kind is Base64, a way of writing binary picture data using ordinary letters and numbers. The browser reads that text and draws the picture exactly as if it had been a separate file.

Three kinds of pictures the tool can find

Linked pictures are different

If the HTML only contains a link to a picture, such as a web address or a file in a folder, then the picture is not inside the file. The tool lists those links separately so that you know where each picture really lives. To save a linked picture, open its address in a browser or look in the folder that came with the HTML file.

How to save the pictures

  1. Open the HTML Picture Saver and choose one or more HTML files from your device.
  2. Wait a moment while the pictures are found. They appear as small previews.
  3. Click a picture to see it larger and save it, usually as a PNG.
  4. Check the Linked images list for pictures that are only referenced and not embedded.

Common situations where this helps

If no pictures are found

The page may use only linked pictures, or the pictures may be generated by scripts when the page loads, which a file reader cannot see. In that case, open the page in your browser and use the browser's own save-image option, or take a screenshot of the area you need.

Use pictures responsibly

Being able to extract a picture does not give you the right to use it. Photos, logos and artwork belong to their creators. Save and reuse only pictures that you made, that you have permission to use, or that are clearly offered for reuse.

Privacy

The HTML file is read inside your browser. It is not uploaded, which is helpful for reports and templates that contain private information.

Quick summary

HTML files can carry pictures inside themselves as Base64 text, inline SVG or CSS backgrounds. The HTML Picture Saver finds them and lets you download them, while pictures that are only linked must be saved from their original location.

Frequently asked questions

Can I save pictures from a website address with this tool?
No. First save the page as an HTML file on your device, then choose that file. Pictures that are only linked from another place are listed so you can save them from there.

Why does it say no pictures were found?
The page probably uses linked pictures or pictures created by scripts, not pictures stored inside the file. Check the linked images list or use your browser's save-image option.

Is it free to use?
Yes. The tool is free, needs no account and works in your browser.

Related guides

⚖️ PDF vs JPG vs PNG: Which Format Should You Use?A plain-language comparison of PDF, JPG and PNG: quality, file size, transparency, multi-page documents and which one to choose for forms, photos and printing.📉 How to Reduce Image Size Without Losing QualityLearn what really makes an image file large, and how to shrink it with the right format, size target and order of steps while keeping it sharp.🔒 Are Online PDF Tools Safe? How to Protect Your DocumentsMany online PDF tools upload your files to a server. Learn how to tell upload-based tools from browser-based ones, and a simple checklist for keeping sensitive documents safe.