# Image format converter

> Convert HEIC, WebP, PNG, JPG, and AVIF in the browser. Nothing is uploaded.

Free image format converter for HEIC to JPG, WebP to PNG, PNG to JPG, and AVIF. Drop a batch, pick a target, and download the files or a ZIP. Decoding and encoding run on this device, so the pictures never leave the browser.

- Page: https://benchline.fabwaseem.com/t/image-convert
- Runs: in the browser. Input stays on the device.
- Price: free, no account
- Input: One or more images and a target format: JPEG, PNG, WebP, or AVIF.
- Output: Converted images, each with its new byte size, plus a ZIP for the batch.
- Keywords: heic to jpg, webp to png, png to jpg, avif converter, image format converter
- Updated: 2026-10-18
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Drop the images.** Add one photo or a batch. HEIC, JPEG, PNG, WebP, AVIF, and GIF are accepted when the browser can read them.
2. **Pick JPG, PNG, WebP, or AVIF.** One target applies to the whole batch. A link with ?to=jpeg opens the page already set to JPG.
3. **Save a file or the ZIP.** Each row shows the new size. Download one image or a ZIP of the finished files.

## Use it from an AI agent

MCP tool name: `convert_image`
MCP endpoint: https://benchline.fabwaseem.com/mcp (Streamable HTTP, no key)
HTTP: POST https://benchline.fabwaseem.com/api/v1/tools/image-convert with the input as the JSON body
This call fetches a public URL on the server. Private addresses are refused.

Convert an image to JPEG, PNG, WebP, or AVIF. Send base64 or a public URL. Private addresses are refused and the decoded file is capped at 10 MB. Returns the image as base64. HEIC is not decoded here.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "file": {
      "type": "object",
      "properties": {
        "url": {
          "description": "Public http or https URL. Private and local addresses are refused.",
          "type": "string"
        },
        "data": {
          "description": "Base64 bytes or a data URI. Decoded size is capped at 10 MB.",
          "type": "string"
        },
        "mimeType": {
          "description": "MIME type when you know it.",
          "type": "string"
        },
        "filename": {
          "description": "File name, including the extension when you have one.",
          "type": "string"
        }
      },
      "additionalProperties": false,
      "description": "The image. Provide url or data."
    },
    "target": {
      "default": "jpeg",
      "type": "string",
      "enum": [
        "jpeg",
        "png",
        "webp",
        "avif"
      ]
    }
  },
  "required": [
    "file",
    "target"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "convert_image",
    "arguments": {
      "file": {
        "url": "https://example.com/file"
      },
      "target": "jpeg"
    }
  }
}
```

Setup for Claude, Cursor, and VS Code: https://benchline.fabwaseem.com/mcp/guide

## Questions

### Are the images uploaded?

No. The file is decoded and re-encoded in this browser. Closing the tab drops it. The page does not send the bytes to a server.

### Why does HEIC fail in some browsers?

HEIC uses the decoder built into the operating system. Safari on Apple devices can read it. Many Windows and Linux browsers cannot. This tool does not bundle a HEIC decoder, because the usual library is LGPL. Export a JPEG from Photos if the page refuses the file.

### Which formats can I convert?

Output is JPEG, PNG, WebP, or AVIF, when this browser can encode that type. Input is JPEG, PNG, WebP, AVIF, GIF, and HEIC when the browser can decode them. A GIF keeps its first frame.

### Is EXIF or GPS kept?

No. Drawing the picture onto a canvas drops camera metadata, including location. That is useful before you publish a photo.

### Can I convert more than one file?

Yes. Drop a batch, pick one target format, then save each file or download a ZIP. Up to 40 images at a time.

## Related tools

- [Image compressor](https://benchline.fabwaseem.com/t/image-compress): Shrink JPEG, PNG, WebP, and AVIF in the browser, with the real before and after size.
- [Image resizer](https://benchline.fabwaseem.com/t/image-resize): Resize by pixels or percent, with the aspect ratio locked and a batch ZIP.
- [Color converter](https://benchline.fabwaseem.com/t/color-converter): Turn any color into HEX, RGB, HSL, OKLCH, and CMYK, and check the contrast ratio.
- [OG image generator](https://benchline.fabwaseem.com/t/og-image-generator): Pick a template, watch the card update, then download the PNG or copy the Next.js file.
