How to Export a PDF as One HTML File with Embedded Images
Question details
The user wants to export a PDF to a single HTML file where all JPG and PNG images are embedded directly within the code, rather than saved in a separate image folder.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Converting a PDF document into a web page (HTML format) for easier sharing or embedding without relying on external file dependencies.
- Observed behavior
- Acrobat's standard HTML export creates a main HTML file and a separate folder containing all referenced images, instead of generating a single self-contained file.
Before proceeding, determine if you strictly need a single HTML file. Embedding images directly into HTML code (via Base64) increases the overall file size and can negatively impact the web page's loading time.
Use a Dedicated PDF-to-HTML Web Tool
Since Adobe Acrobat does not natively support exporting PDFs to a single HTML file with embedded images, using a specialized web publishing tool is the most efficient workaround.
Dedicated conversion tools are designed to handle complex formatting and can automatically encode images as Base64 data URIs, packaging everything into one neat HTML file.
Search online for a 'PDF to single HTML converter' that explicitly mentions support for Base64 image encoding or standalone HTML generation.
Navigate to the converter platform and upload your target PDF document.
In the conversion settings, choose 'Single HTML page' or check the box to 'Embed images within HTML' before starting the conversion.
Download the generated HTML file and open it in your preferred web browser to verify that all images display correctly without any external folders.

Manually Embed Images as Base64 Data URIs
You can use Acrobat's standard export feature and then manually convert the resulting images into Base64 strings to insert them into the HTML code.
Manage and Convert PDFs Easily with WPS Office
If you frequently encounter limitations with Adobe Acrobat's export functionalities, WPS Office provides a lightweight, highly compatible, and cost-effective alternative. It offers powerful PDF conversion tools, intuitive editing, and seamless document management for all your personal and professional needs.
- 1. Download the Software: Visit the official WPS Office website to download the free, lightweight installation package.
- 2. Open Your PDF: Launch WPS Office and drag and drop your PDF file directly into the workspace.
- 3. Access Conversion Tools: Navigate to the 'Tools' tab to access a wide array of PDF conversion and editing features tailored to simplify your workflow.

Frequently Asked Questions
Why does Acrobat save images in a separate folder during HTML export?
By default, Acrobat generates standard HTML which links to external image files rather than embedding them. This aligns with standard web development practices, keeping the core HTML code lightweight and allowing images to be cached and loaded asynchronously by web browsers.
How does embedding images into HTML affect page performance?
Embedding images directly into HTML using Base64 encoding significantly increases the text size of the HTML document. This can lead to slower page rendering times, especially on mobile networks, and prevents browsers from caching the images separately for faster reloads.
Is there a way to bundle the HTML and images without modifying code?
Yes. Instead of merging everything into a single HTML file, you can compress the HTML file and its associated image folder into a single ZIP archive for easy sharing. Alternatively, some tools allow exporting documents as an MHTML (.mht) file, which automatically packages the HTML code and all media into one distinct web archive file.




