Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The simplest way to convert HTML to JPG on a Mac is to open the page in Chrome or Safari, save it as a PDF, then export the PDF page as a JPEG in Preview. For repeatable or batch screenshots, use Chrome’s headless command-line mode. If you need an automated capture of a webpage, ScreenshotNeo is another option: it accepts a URL and can return an image or PDF.

Convert HTML to JPG with a browser and Preview

This method works for a local HTML file or a webpage you can open in a browser. The browser renders the HTML first; Preview then rasterizes the resulting PDF page as a JPEG. It uses tools already available on a Mac and avoids command-line setup.

1. Open and check the page

  1. Open the HTML file in Safari or Chrome. For a local file, open it from Finder or use the browser’s Open File command. For a website, navigate to its URL.
  2. Wait for the page to finish rendering. Check that images, fonts, and other visible elements have loaded, and scroll through the page if you need to inspect content below the fold.
  3. Decide whether you need the whole page or just what fits on a printed page. A long page can be split across multiple pages when printed to PDF.

2. Save a PDF from Chrome

  1. In Chrome, choose File > Print, or press Command-P.
  2. In the print dialog, choose Save as PDF as the destination.
  3. Review the print preview. Choose the page range and other available print settings you need, then save the PDF somewhere easy to find, such as the Desktop.

Google’s Chrome Help documents Command-P and the Save as PDF destination on Mac. The PDF is an intermediate file: it is not yet a JPG.

3. Export the PDF page as JPEG in Preview

  1. Open the saved PDF in Preview. If another app opens it, Control-click the file in Finder, choose Open With, then select Preview.
  2. If the PDF contains several pages, show the thumbnail sidebar and select the page you want to convert. Exporting a selected page produces an image of that page, not a single continuous image of every page.
  3. Choose File > Export. In the format menu, select JPEG.
  4. Choose a filename and location, adjust the available quality setting if desired, and save.

Open the saved image to check it before sharing. Preview’s Export command supports JPEG, and Apple also documents extracting PDF pages as images. Menu wording and layout can differ slightly between versions, but the operation is to export the rendered PDF page in JPEG format.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Use Safari, or convert a local HTML file

Safari can display the HTML, but its documented Save As formats are Web Archive and Page Source—not JPG. Saving a page in either of those formats preserves a webpage or its source; it does not make a JPEG image. To get a JPG, use a browser’s print-to-PDF route and then export the PDF in Preview.

For a local HTML file, open that file in Safari or Chrome and follow the same browser-to-PDF-to-Preview steps. The browser captures the page as it renders on your Mac; it does not convert the source code itself into a picture. CSS, loaded fonts, JavaScript, and images can all affect the rendered result.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Choose the right method for the page

  • One page or occasional conversion: Use the PDF-to-Preview workflow. It is the most direct route when you do not need automation.
  • A specific page from a long document: Save a PDF, then select the needed page thumbnail in Preview before exporting.
  • A long webpage that must fit in one image: A printed PDF may split the content across pages. Use a controlled screenshot workflow instead, and check the resulting image for clipped or missing content.
  • Repeated or batch captures: Headless Chrome provides command-line controls for screenshot capture, viewport size, and a delay before capture.
  • A JPG specifically: Make JPEG the final export format in Preview. A browser screenshot may instead be a PNG, which Preview can export as JPEG.

Automate a screenshot with headless Chrome

Chrome’s headless command-line reference documents --screenshot, --window-size, and --timeout. These controls are useful when you need repeatable dimensions or want to capture more than one URL. The example below captures a webpage at a 1200-by-1600 viewport and waits 5,000 milliseconds before the capture:

chrome --headless --screenshot --window-size=1200,1600 --timeout=5000 https://example.com/

Run the command in Terminal with Chrome’s command-line executable available as chrome. The screenshot is written to the current working directory. If the file is PNG, open it in Preview and choose File > Export, then select JPEG. Replace the example URL with the page you need, and change the viewport dimensions or timeout to suit the page.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

A fixed delay can help a page finish loading, but it is not a guarantee that every dynamic element is ready. Pages that load content after interaction, rely on animations, or fetch images lazily may need additional handling. Inspect the capture rather than assuming that a successful command means the image is complete.

What affects the result

Page length and layout

Print-to-PDF follows print layout behavior. A tall page can become multiple PDF pages, and page breaks may divide content in ways that differ from the on-screen layout. If you export one thumbnail, you get that page only. A headless screenshot instead captures the configured viewport; the example’s window size is 1200 by 1600 pixels, not a promise that every page will fit into those dimensions.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Loading, fonts, and dynamic content

Images, fonts, and content loaded by scripts may appear late or fail to load. Safari notes that some webpages may prevent saving items that appear on the page. A delayed capture can help with slow-loading content, but a fixed wait does not address every page’s behavior. Fonts and layout can also differ if the page’s dependencies are unavailable or the browser renders them differently.

Image quality and file type

A JPG is a raster image of the rendered page, so its text is no longer selectable as HTML text. JPEG compression can make small text or sharp edges look less crisp, particularly at low quality settings. If the appearance matters, inspect the exported image at its intended display size and adjust the quality setting or capture dimensions before sharing.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting HTML-to-JPG conversion

  • The saved file is a PDF, not a JPG: PDF is the intermediate output. Open it in Preview and use File > Export, choosing JPEG in the format menu.
  • The JPG contains only part of a long page: Check whether the PDF has multiple pages and export each required page, or use a controlled screenshot workflow if you need one image.
  • Images or text are missing: Return to the browser and wait for the page to render before printing or capturing. Some pages prevent saving certain items; check the page in the browser and inspect the output.
  • The capture is blank or incomplete: Confirm that the URL opens correctly in the browser, then try a longer headless Chrome timeout for slow content. A timeout cannot fix a page that requires an action or a resource that never loads.
  • The layout differs from the browser window: Print layout and screen layout are not always the same. Review the PDF preview before saving, or use headless screenshot dimensions when screen-sized output is more important than print pagination.
  • The JPG looks blurry: Export at a suitable quality and use a larger screenshot viewport when appropriate. Check the image at its actual use size; enlarging a small capture later cannot restore detail.

Or skip the browser setup

For a webpage available at a URL, ScreenshotNeo can return a screenshot or PDF from one GET request. Its clean-shot steps accept the cookie or consent banner like a visitor and remove more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and the response includes X-Page-Verdict and X-Billed headers. An MCP server provides take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients. The free plan includes 1,000 screenshots per month with no card, and paid plans start at $5 for 3,000 screenshots.

Here is the cURL call using a public webpage. See the ScreenshotNeo documentation for the API details and options. The output filename below is shot.webp; replace the example URL with the webpage you want to capture and supply your API key.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Equivalent Python:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

Equivalent Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

These examples capture a URL; a local file path on your Mac is not a public webpage URL. ScreenshotNeo also supports HTML/CSS-to-image capture, but use its documentation for the applicable request details rather than substituting an undocumented parameter. It can return PNG, JPEG, WebP, or PDF, and options include full-page capture with lazy images loaded, CSS-selector element capture, device or custom viewport sizes, retina scale, PDF page settings, custom CSS or JavaScript, selector waits, delay or network-idle waits, and caching with a chosen TTL. Other controls include headers, cookies, user agent, authorization, timezone, geolocation, transparent backgrounds, image resizing, and bulk capture of up to 100 URLs per call.

ScreenshotNeo’s monthly plans are:

Plan Price Monthly screenshots
Free $0 1,000
Starter $5 3,000
Growth $15 15,000
Pro $39 60,000
Scale $99 250,000
Business $249 1,000,000

Yearly billing gives two months free, and every feature is available on every plan. For this conversion task, the practical difference is that an API can automate captures and report whether a result was billed; for an occasional local conversion, the Mac’s browser and Preview may be all you need. Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month with no card.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

FAQ

Can a JPG keep the text selectable?

No. A JPG is an image of the rendered page, not the original HTML text. Keep the HTML or PDF if you need selectable text.

Can a JPG have a transparent background?

No. JPEG does not support transparency. Choose a format such as PNG when transparent pixels are required.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.