---
title: ToolRouter — Agent Use Case Guide
description: Step-by-step guide for completing a task with a specific AI agent using ToolRouter.
url: https://toolrouter.com/tools/image-ops/use-cases/convert-image-formats/claude
---
# How to Convert Image Formats with Claude

Claude makes format conversion an interactive terminal discussion. Describe your use case -- "I need web-optimized versions of these PNG product shots" -- and Claude recommends the optimal format, explains the quality-size trade-offs, and processes the conversion. Ask follow-up questions about browser compatibility or compression levels to fine-tune the results.

## Setup

claude mcp add toolrouter -- npx -y toolrouter-mcp

## Steps

1. Connect ToolRouter: claude mcp add toolrouter -- npx -y toolrouter-mcp
2. Ask Claude: "Convert this PNG image to WebP format using image-ops"
3. Claude runs transform_image and returns the converted file
4. Ask Claude to convert additional images or try different output formats
5. Request a format comparison showing file size differences

## Example Prompt

```
Convert all our product images from PNG to WebP. Show me the file size savings for each one.
```

## Tips

- Ask Claude to recommend the best format for each image based on its content
- Request quality comparisons at different compression levels
- Claude can convert and resize in a single operation for efficiency
