全球免费使用

图片尺寸调整

在最大尺寸内缩放图片,保持宽高比且不放大。

你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。

输入

提示:按 Ctrl + Enter 运行

你的结果

结果将显示在这里。

下方的详细帮助目前仅提供英文版。

关于此工具

Most upload forms, websites and email programs work best with images no larger than they need to be. A 12-megapixel phone photo is about 4000 × 3000 pixels: far more than a blog post, a listing or a slide can show. This resizer fits an image inside the maximum width and height you set, keeps its aspect ratio so nothing is stretched, and never makes an image larger than the original.

You can save the result as PNG, JPG or WebP, with a quality setting for JPG and WebP. Smaller dimensions are usually the single biggest file-size saving, more than compression alone.

使用方法

  1. Choose an image.
  2. Enter the maximum width and maximum height in pixels.
  3. Choose PNG, JPG or WebP and, for JPG or WebP, a quality.
  4. Run it and download the resized image.

计算原理

Scale = min(1, max width ÷ width, max height ÷ height). New size = original × scale, rounded to whole pixels. The image is redrawn on a canvas at that size with the browser’s built-in canvas scaling and encoded in the chosen format.

scale = min(maxWidth / width, maxHeight / height, 1)

计算示例

A landlord’s listing site allows photos up to 1200 × 1200 px. A 2400 × 1600 photo of a living room is scaled by 0.5 to 1200 × 800: the width hits the limit first, so the height is reduced in proportion. Saved as JPG at 85%, it drops from several megabytes to a few hundred kilobytes.

示例输入和结果

2400 × 1600 → 1200 × 800

局限性

  • One image at a time.
  • Aspect ratio is always preserved; there is no stretch option.
  • EXIF metadata is not copied to the output.

最后更新:

常见问题

Will it enlarge small images?

No. Images already within the limits keep their size; enlarging adds blur, not detail.

How do I get an exact size such as 1080 × 1080?

Crop to the right shape first with the image cropper, then resize.

Which format should I choose?

JPG or WebP for photos, PNG for screenshots and graphics with sharp edges or transparency.

故障排除

The output is the same size as the input.

It was already smaller than the limits.

The file got bigger.

Saving a JPG as PNG increases size; choose JPG or WebP for photos.

The image is rotated.

Current browsers apply EXIF orientation automatically; update an older browser.

隐私 & 免费使用

我的输入会被保存吗?

你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。

这个工具免费吗?

是的。无需注册或付费。

在浏览器中处理

推荐下一步