I need a tool that will tell me the dimensions of my image urls I have hundreds#
The best way to quickly get the dimensions of hundreds of image URLs is to use an online tool or a quick script that processes images in bulk. For direct URL-based checking and exporting width/height info, consider these options:
Bulk Online Tools#
- Use an online tool like imagy.app Image Size Finder which lets you drag and drop unlimited images and shows each image’s width and height in a table, processing everything locally in your browser for privacy. This method allows batch analysis and exporting results.1
- Boost Tool’s Batch Aspect Ratio Checker allows you to drag and drop multiple images at once, see their dimensions and aspect ratios immediately in a list, and export the results to CSV for further use.2
- For images on your own device, sites like Bulk Image Resize or BIRME also support processing many images easily, but generally require you to upload the files.34
For Image URLs in a List#
- If your images are only accessible via URLs (not local files), you can use a lightweight script (for example, in Python using libraries like
requestsandPillow, or a simple JavaScript batch), to download each image, extract its size, and save the info to a CSV. This is ideal for automation and handling very large batches of URLs efficiently.5 - A basic approach in JavaScript is to programmatically create an Image object for each URL, listen for the
onloadevent, then read the.widthand.heightproperties, and write results to a CSV or table.5
Example Code Flow (Python)#
- Read URLs from a text file or CSV.
- Download each image temporarily.
- Use Pillow (
PIL.Image) to extract size. - Write results (URL, width, height) to CSV.
This workflow matches best practice for privacy, scalability, and return format. For your use-case with hundreds of URLs, a script-based approach is the most robust, but the aforementioned online tools are useful for smaller jobs or drag-and-drop workflows.125
I already have them downloaded I need the dimensions#
If the images are already downloaded, use a batch-processing script or a bulk analysis tool to extract dimensions efficiently.
Python Script (Recommended)#
Run a Python script using the Pillow library to scan a folder and output the dimensions for every image to a CSV:
- Place all images in one folder.
- Use this code:
import os
from PIL import Image
import csv
folder = "/path/to/your/images"
output_csv = "image_dimensions.csv"
with open(output_csv, 'w', newline='') as csvfile:
writer = csv.writer(csvfile)
writer.writerow(["Filename", "Width", "Height"])
for filename in os.listdir(folder):
if filename.lower().endswith(('.png', '.jpg', '.jpeg', '.gif', '.bmp')):
filepath = os.path.join(folder, filename)
with Image.open(filepath) as img:
writer.writerow([filename, img.width, img.height])This creates a CSV listing every image’s filename, width, and height.
Bulk Online Tools#
Several online services let you upload images and view/export their dimensions in bulk, such as:
- imagy.app Image Size Finder (drag-and-drop, shows dimensions in table, exportable)18
- Boost Tool’s Aspect Ratio Batch Checker19
For automation, the Python script above is fastest, but web tools are useful for smaller sets or if you prefer drag-and-drop workflows.1819
my images are hosted online already#
If your images are hosted online, the most efficient method is to use a script that fetches each image via its URL and extracts the dimensions automatically.
Python Script for Image URLs#
Here’s a ready-to-use script. Create a text file with one image URL per line, and run the following Python code:
import requests
from PIL import Image
from io import BytesIO
import csv
input_file = "image_urls.txt" # One URL per line
output_csv = "image_dimensions.csv"
with open(input_file, 'r') as f:
urls = [line.strip() for line in f.readlines() if line.strip()]
with open(output_csv, 'w', newline='') as csvfile:
writer = csv.writer(csvfile)
writer.writerow(["URL", "Width", "Height"])
for url in urls:
try:
response = requests.get(url, timeout=10)
img = Image.open(BytesIO(response.content))
writer.writerow([url, img.width, img.height])
except Exception as e:
writer.writerow([url, "Error", str(e)])This will:
- Download each image via its URL.
- Detect the width and height using Pillow.
- Save results for each URL to a CSV.
Alternatives#
- Online tools that accept image URLs and display dimensions in batch are rare; most require uploading the files directly. Therefore, the script offers the best automation for large URL lists.20
- For small batches, you could use browser extensions or paste URLs into sites like imagy.app’s Image Size Finder, but these work best for local files, not bulk URLs.21
For hundreds of images with online URLs, using the above script will give you a complete, automated solution.
-
https://stackoverflow.com/questions/55153062/find-the-dimensions-of-an-image-from-bulk-urls ↩︎ ↩︎ ↩︎
-
https://learn.microsoft.com/en-us/windows/powertoys/image-resizer ↩︎
-
https://community.wappler.io/t/get-width-and-height-of-src-image/2620 ↩︎
-
https://posterprintshop.com/image-quality-size-check-tool/ ↩︎
-
https://phancybox.com.au/how-to-find-dimensions-image-website/ ↩︎
-
https://stackoverflow.com/questions/55153062/find-the-dimensions-of-an-image-from-bulk-urls ↩︎