How to Convert Image Formats with Claude

Convert image formats with Claude and ToolRouter. PNG to WebP, JPEG to AVIF, and more.

Tool
Image Ops icon
Image Ops

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.

Connect ToolRouter to Claude

1Go to Settings → Connectors → Add custom connector
2Enter the details below and click Add
Name
ToolRouter
URL
https://api.toolrouter.com/mcp
3Done — works on Claude chat, desktop, and mobile

Steps

Once connected (see setup above), use the Image Ops tool:

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

Example Prompt

Try this with Claude using the Image Ops tool
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