# Response Format

> Choose your output file type — PNG, JPEG, WebP, AVIF, PDF, MP4, WebM, or GIF

- **URL**: https://orshot.com/docs/definitions/response-format

---

The `responseFormat` (or `response.format` in the Studio API) sets the file type of your rendered output.

## Image Formats

| Format | Best For                             |
| :----- | :----------------------------------- |
| `png`  | Graphics with transparency (default) |
| `webp` | Smaller file size, modern browsers   |
| `jpg`  | Photos, smaller file size            |
| `jpeg` | Same as `jpg`                        |
| `avif` | Best compression, modern browsers    |

## Document Formats

| Format | Best For                                |
| :----- | :-------------------------------------- |
| `pdf`  | Certificates, invoices, print materials |

## Video Formats

| Format | Best For                      |
| :----- | :---------------------------- |
| `mp4`  | Social media, general purpose |
| `webm` | Web-optimized video           |
| `gif`  | Short loops, thumbnails       |

## Example```javascript
const response = await orshot.renderFromTemplate({
  templateId: "your-template-id",
  responseType: "url",
  responseFormat: "webp", // [!code highlight]
  modifications: {
    title: "Hello World",
  },
});
```