---
layout: page
title: FAQ
permalink: /faq/
nav_order: 50
description: Frequently asked questions about the HTML/CSS to Image API - file formats, pricing, rate limits, and more.
---
# Frequently Asked Questions
{: .no_toc }
{: .fs-9 }
Not finding your answer here? Please email us: support@htmlcsstoimage.com. We enjoy helping people debug their HTML.
{: .fs-4 .fw-300 }
## Getting Started
### What file formats are supported?
PNG (default), JPG, WebP, and PDF. Simply change the file extension on your image URL: `.png`, `.jpg`, `.webp`, or `.pdf`. If no extension is specified, you'll get a PNG.
### What are the maximum image dimensions?
There's no strict maximum size. The [`viewport_width`](/parameters/viewport/#viewport-width-and-height) limit is 6000 pixels. For height, there's no set limit—`full_screen` screenshots can reach ~10,000 pixels tall.
Keep in mind images render at 2x by default, so the actual output resolution is double the viewport size. Smaller images will render faster and perform better.
### How fast is the API?
Simple images render in as little as 300ms. Most images complete in 1-3 seconds. Complex pages with many external resources or JavaScript may take longer. Use `ms_delay` to control timing, or `max_wait_ms` to set a maximum wait time.
### Why is my image twice as large as expected?
By default we render images at `@2X` resolution for high-DPI screens like iPhones and Retina displays. This ensures your images look crisp on modern devices.
To get `@1X` resolution, set `device_scale: 1` when creating your image. [Learn more about device_scale](/parameters/device_scale/).
## Technical
### Can I use external CSS stylesheets?
Yes, embed the `` tag in your HTML and it will be loaded before rendering. Multiple CSS files are supported. Large files may slow down initial render time. See this [CodePen for an example](https://codepen.io/mscccc/pen/eLRLQq).
### Can I use external JavaScript?
Yes, external JavaScript works. Embed the `