To turn a webpage into a PDF with CloudConvert API v2, submit a job containing a capture-website task with the page URL and output_format set to pdf, then export the result. For an HTML file you already have, use CloudConvert’s HTML-file input route or build the matching import and conversion tasks; confirm the exact payload for that route in the current operation reference. Authenticate with a Bearer API key, and use asynchronous completion handling for jobs that may queue or run long.
Choose the right input workflow
CloudConvert’s HTML-to-PDF API accepts a website URL or an HTML file. The workflow differs depending on where your content lives:
- Public or authenticated webpage: use the dedicated
capture-websiteoperation. This captures a URL directly. - HTML already assembled by your application: use the HTML-file input path described on CloudConvert’s HTML-to-PDF API page, or construct the appropriate import and conversion tasks. Check the live operation reference or Job Builder for the exact payload expected by your chosen input method.
CloudConvert describes its HTML-to-PDF rendering as Chrome-based and lists page size, margins, zoom, headers, and footers among its options. Those are vendor-described capabilities, not an independent guarantee that every site or document will render identically. Test representative content before relying on the output.
Set up API authentication
- Create an API key in your CloudConvert account and restrict it to the scopes your integration needs.
- Send the key in the HTTP
Authorizationheader asBearer API_KEY. Keep the key on your server; do not expose it in browser-side code. - For job creation, the key needs the
task.writescope. To retrieve task status, it needstask.read. Confirm scopes against the current Getting Started documentation and Tasks reference.
Capture a webpage URL as a PDF
The following cURL request follows CloudConvert’s documented synchronous website-capture example. It submits a job to the synchronous host and asks for a redirect to the generated result. The example uses screen media; choose a different rendering mode or page options only after checking the current supported fields and values.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →#1 Best Overall
- 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.
curl -X POST "https://sync.api.cloudconvert.com/v2/jobs"
-H "Authorization: Bearer API_KEY"
-H "Content-Type: application/json"
-d '{
"tasks": {
"capture-my-website": {
"operation": "capture-website",
"url": "https://example.com",
"output_format": "pdf",
"css_media_type": "screen"
},
"export-my-file": {
"operation": "export/url",
"input": "capture-my-website"
}
},
"redirect": true
}'
CloudConvert’s product page gives this job shape for an on-the-fly result. For longer work, use the standard asynchronous jobs endpoint and retrieve the result after completion rather than depending on a single open HTTP connection. See Capture Website and Jobs for current operation and job details.
What the job does
capture-websiterenders the supplied URL and creates a PDF.css_media_typeis set toscreenin CloudConvert’s example. The page’s print styles may produce a different layout, so select the media type that matches your intended document.export/urlmakes the resulting file available through a URL-based retrieval route.redirect: trueis part of the synchronous example. It is not a substitute for asynchronous completion handling in jobs that can queue or exceed client timeouts.
Use an asynchronous job for production workflows
CloudConvert jobs are asynchronous by default. A normal job-creation response can report processing; the application should wait for completion through a webhook or status retrieval/polling, then consume the completed export task’s result. CloudConvert notes that jobs can queue and network clients can time out, so avoid holding a connection open while a long job runs.
Rank #2
- 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.
- Submit the job to the standard asynchronous jobs endpoint with the required tasks.
- Record the returned job or task identifier in your application.
- Wait for a completion webhook or check job/task status using the API.
- When the export task is complete, retrieve its result using the URL or storage route you configured.
Use task.write to create jobs and task.read to read status. Consult the live Jobs and Tasks references for exact request and response fields.
Choose an export destination
The export/url task is suitable when your application can retrieve the output from a temporary downloadable URL. If the file should land directly in object storage, use the corresponding provider-specific export operation. CloudConvert’s Quickstart Guide recommends provider-specific import and export tasks for storage such as S3, Azure, Google Cloud, or OpenStack.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteRank #3
- 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.
For a generic conversion job, the documented pattern is an import task, a convert task with output_format set to pdf, and an export task. The exact import operation depends on where the HTML file is stored and which input operation supports it. See Convert Files and the current HTML-to-PDF operation reference before constructing the payload.
Decide between URL capture and an HTML file
| Situation | Workflow | What to verify |
|---|---|---|
| The content is available at a webpage URL | capture-website with the URL and PDF output |
Access to protected resources, page readiness, media type, and page layout |
| Your application already has an HTML file | HTML-file input route or suitable import and conversion tasks | The exact input operation and payload supported by the current API |
Check rendering before shipping
CloudConvert says its HTML-to-PDF API uses the latest Chrome browser and supports rendering options including page size, margins, zoom, headers, and footers. Treat this as a product description, not proof that every site will render as expected. Test pages that depend on scripts, custom fonts, protected resources, long content, or print styles. Compare the output with the intended result and adjust only the relevant capture and page settings.
Rank #4
- 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
For a webpage, decide deliberately between screen and print CSS. CloudConvert’s example sets css_media_type to screen; a page with dedicated print styles may need a different choice. Confirm current option names and accepted values in the capture operation documentation.
Troubleshoot common problems
- Unauthorized or forbidden response: verify the Bearer token, that the key is active, and that it has
task.writefor job creation ortask.readfor status requests. - The request times out: the job may be queued or take longer than the client connection allows. Submit asynchronously and use a webhook or status retrieval instead of waiting on one request.
- The job is still processing: job creation is not the same as completion. Keep the returned identifier and continue checking status or wait for a webhook before fetching the export.
- No downloadable output is available: confirm the export task is connected to the capture or conversion task and has completed. Use
export/urlfor URL retrieval or configure the appropriate storage export. - The PDF layout differs from the page: check screen versus print media, page size, margins, zoom, and whether scripts, fonts, or protected resources load. Reproduce the issue with representative content and consult the current operation options.
- HTML-file input is rejected: URL capture and HTML-file conversion are different input routes. Confirm the exact file-import or dedicated HTML-file payload in the current documentation rather than assuming the website-capture URL schema accepts a local file.
Cost and reliability considerations
CloudConvert’s HTML-to-PDF API page displayed a starting price of $0.008 per file when accessed on October 3, 2026. This is a volatile starting price, not a workload quote; confirm current plan conditions and total cost on the product page. The available documentation does not establish independent speed or rendering-accuracy benchmarks.
Best Value
- 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.
For reliability, treat rendering as an external job: handle pending work, completion, and failures explicitly; set client timeouts appropriate to job submission rather than PDF generation; and test the pages and assets your application actually depends on.
Or skip the browser setup
If the goal is a clean screenshot rather than a PDF, ScreenshotNeo is a website screenshot API and MCP server: make one GET request to return PNG, JPEG, WebP, or PDF. For example, the cURL request below captures a webpage as WebP:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp
See the ScreenshotNeo API documentation for options. Cookie banners, newsletter popups, and chat widgets are removed before the shot; bot checks, blank pages, and failed loads are never billed. Its MCP server lets AI agents take screenshots, and the free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000.
Sign up for ScreenshotNeo’s free plan.
Frequently Asked Questions
Can CloudConvert convert a webpage URL directly to PDF?
Yes. Its API v2 has a dedicated capture-website operation that accepts a URL and can produce PDF output.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Fix the driver behind crashes, sound loss and screen glitches3Clear out junk files and repair common Windows errorsDoes CloudConvert’s HTML-to-PDF API use Chrome?
CloudConvert describes the API as Chrome-based. That is the vendor’s product claim, not an independent rendering test.
Can I send an HTML file instead of a URL?
CloudConvert’s HTML-to-PDF API supports an HTML-file input category, but the exact request payload depends on the selected input route; consult the current operation reference.
Quick Recap
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.

