Resize Image
Change image width and height in your browser
Resize Image — what it does
Change an image's width and height in the browser, with an option to keep the aspect ratio locked so one dimension follows the other automatically. Resizing is the most effective size reduction available: a photo at half the width and height carries a quarter of the pixels.
Worked example
Three resizes. Choosing a file fills the width and height boxes with the image's own pixel size (1600 and 1200 for the photo) before you change either of them.
| Input | Settings | Output |
|---|---|---|
| photo-1600x1200.png | Width 800, keep ratio on (height fills in as 600) | photo-1600x1200-800x600.png — 800 × 600, 15 KB |
| banner-1200x300.png | Height 100, keep ratio on (width fills in as 400) | banner-1200x300-400x100.png — 400 × 100 |
| logo-400x400.png | Width 300, height 120, keep ratio off | logo-400x400-300x120.png — 300 × 120, visibly stretched |
The output name carries the new size, and the format follows the input: a PNG stays PNG, a JPEG is re-encoded as JPEG at quality 0.92.
When this tool helps
- Cutting a camera-sized photo down to the dimensions a web page actually displays.
- Meeting a fixed pixel requirement for an avatar, banner or upload form.
- Preparing a smaller version of an image for email or a document.
How to use it
- Choose the image.
- Enter the target width or height.
- Keep aspect ratio locked unless you need exact dimensions.
- Process and download the resized image.
Accuracy, limits, and good practice
- Unlocking the aspect ratio lets you type both dimensions, and any pair that does not match the original ratio will stretch the picture.
- Downscaling is clean; upscaling interpolates and softens, so start from the largest original you have.
- Serve images at roughly the size they display, allowing for double-resolution screens — anything beyond that is bandwidth spent on pixels nobody sees.
Frequently asked questions
What size should a web image be?
Match the display width, or twice it for high-density screens. A full-width hero rarely needs more than about 2000 pixels.
Does resizing reduce the file size?
Substantially. Removing pixels removes data, usually far more effectively than adjusting compression quality alone.
Can I resize many images at once?
Yes, the batch image resizer applies one setting to a whole selection and returns a ZIP.
Why did the other box change by itself when I typed a number?
With the keep-ratio box ticked, the box you did not touch is recalculated from the original proportions and rounded to whole pixels: 1600 × 1200 at width 700 gives 525. Untick it to type both values freely.
Can I enter a size larger than the original?
Yes, there is no upper limit. The image is redrawn on a canvas of the requested size, so enlarging interpolates pixels and looks soft; the file size grows with the pixel count.
Related tools on this site
- Image to ASCII Art — Convert an image into copyable text-based ASCII artwork
- Image EXIF Viewer — Inspect image dimensions and available camera metadata
- Rounded Image & Border — Add rounded corners, background, and a custom border
Further reading: Getting images ready for the web, email and social media
Everything above runs inside this page. Resize Image needs no account, no upload, and no server round trip — close the tab and nothing is left behind.
調整圖片尺寸能做什麼
在瀏覽器中修改圖片的寬與高,可鎖定長寬比讓另一邊自動跟隨。縮放是最有效的減重手段:寬高各減半的照片,像素只剩四分之一。
實際範例
三次調整尺寸。選好檔案後,寬高欄位會先填入圖片本身的像素尺寸(照片是 1600 與 1200),再由你改其中一個。
| 輸入 | 設定 | 輸出 |
|---|---|---|
| photo-1600x1200.png | 寬 800,鎖定比例開啟(高自動填 600) | photo-1600x1200-800x600.png — 800 × 600,15 KB |
| banner-1200x300.png | 高 100,鎖定比例開啟(寬自動填 400) | banner-1200x300-400x100.png — 400 × 100 |
| logo-400x400.png | 寬 300、高 120,鎖定比例關閉 | logo-400x400-300x120.png — 300 × 120,明顯被拉伸 |
輸出檔名帶有新尺寸,格式跟隨輸入:PNG 仍是 PNG,JPEG 會以 0.92 品質重新編碼成 JPEG。
什麼時候用得上
- 把原始尺寸的相機照片,縮到網頁實際顯示的大小。
- 符合頭像、橫幅或上傳表單的固定像素要求。
- 為郵件或文件準備較小的圖片版本。
使用步驟
- 選擇圖片。
- 輸入目標寬度或高度。
- 除非需要精確尺寸,否則請保持鎖定長寬比。
- 執行處理並下載縮放後的圖片。
精確度、限制與實務建議
- 解除長寬比鎖定後兩邊都能填,但只要與原始比例不符就會把畫面拉變形。
- 縮小很乾淨;放大是內插、會變糊,所以請從手上最大的原檔開始。
- 圖片以接近顯示尺寸提供即可(高密度螢幕算兩倍),超過的部分都是花在沒人看得到的像素上的頻寬。
常見問題
網頁圖片該多大?
與顯示寬度相同,高密度螢幕則取兩倍。整頁寬的主視覺很少需要超過約 2000 像素。
縮放會讓檔案變小嗎?
會大幅變小。減少像素等於減少資料,通常比單純調整壓縮品質有效得多。
可以一次縮放很多張嗎?
可以,批量圖片縮放工具會用同一組設定處理整批並回傳 ZIP。
為何我只改一個數字,另一個欄位也跟著變?
勾選鎖定比例時,沒動的那個欄位會依原始比例重新計算並四捨五入到整數像素:1600 × 1200 的圖把寬設成 700,高就會變成 525。取消勾選即可自由輸入兩個值。
可以輸入比原圖更大的尺寸嗎?
可以,沒有上限。圖片會重新繪製到指定大小的畫布上,放大時以內插補點,看起來會較柔;檔案大小隨像素數增加。
本站相關工具
- 圖片轉 ASCII 字元畫 — 將圖片轉換為可複製的文字字元畫
- 圖片 EXIF 檢視器 — 查看圖片尺寸與可用的相機中繼資料
- 圖片圓角與邊框 — 加入圓角、背景與自訂邊框
延伸閱讀: 為網頁、電子郵件與社群媒體準備圖片
以上步驟全部在這個頁面內完成,調整圖片尺寸 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。