# Social Image Resizer

> Fit any photo to the exact dimensions for Instagram, YouTube, X, LinkedIn, and Facebook — cropped to the subject you pick.

Free social image resizer. Upload a photo, pick a platform preset such as Instagram post 1080×1080 or YouTube thumbnail 1280×720, click to set the crop focal point, and export an exact-size PNG or JPEG. Everything runs in the browser; the image is never uploaded.

- Page: https://benchline.fabwaseem.com/t/social-image-resizer
- Runs: in the browser. Input stays on the device.
- Price: free, no account
- Input: An image, a social platform preset, a crop focal point, and a PNG or JPEG output format.
- Output: One image at the preset's exact width and height, as PNG or JPEG.
- Keywords: social image resizer, instagram image size, youtube thumbnail size, resize image for instagram, facebook post image size, x header size
- Updated: 2026-10-18
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Drop a photo.** Add one image. It stays in this browser.
2. **Pick a platform preset.** Choose Instagram post, YouTube thumbnail, X header, and more. Click the preview to set the crop focal point on your subject.
3. **Export the exact size.** Download a PNG or JPEG at the platform's exact pixel dimensions.

## Use it from an AI agent

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

Crop and resize an image to an exact social media preset: instagram-post (1080x1080), instagram-portrait (1080x1350), instagram-story (1080x1920), youtube-thumbnail (1280x720), x-post (1200x675), x-header (1500x500), linkedin-post (1200x627), or facebook-post (1200x630). The cover crop keeps the center subject. Send base64 or a public URL. Private addresses are refused and the decoded file is capped at 10 MB. Returns the image as base64 PNG.

### 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."
    },
    "preset": {
      "type": "string",
      "enum": [
        "instagram-post",
        "instagram-portrait",
        "instagram-story",
        "youtube-thumbnail",
        "x-post",
        "x-header",
        "linkedin-post",
        "facebook-post"
      ],
      "description": "Social platform preset with exact pixel dimensions."
    }
  },
  "required": [
    "file",
    "preset"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "resize_social_image",
    "arguments": {
      "file": {
        "url": "https://example.com/file"
      },
      "preset": "instagram-post"
    }
  }
}
```

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

## Questions

### Is my photo uploaded anywhere?

No. The photo is decoded and resized in this browser. Everything runs locally in the browser, and nothing is uploaded.

### What sizes can I export?

Instagram post 1080×1080, portrait 1080×1350, and story 1080×1920; YouTube thumbnail 1280×720; X post 1200×675 and header 1500×500; LinkedIn post 1200×627; and Facebook post 1200×630.

### What does the focal point do?

It pins the subject of the crop. Click the face or object you want to keep, and the cover crop slides to keep it visible instead of cropping it away.

### PNG or JPEG?

PNG keeps full quality for graphics and text. JPEG is smaller for photos and lets you set the quality with a slider.

## Related tools

- [Image resizer](https://benchline.fabwaseem.com/t/image-resize): Resize by pixels or percent, with the aspect ratio locked and a batch ZIP.
- [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.
- [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.
