Raster Resolution & File Size Calculator

Enter your bounding box extent and pixel size to calculate raster dimensions in pixels and estimated file sizes for GeoTIFF, PNG, JPEG, and Cloud-Optimized GeoTIFF. No surprises when your output is 50 GB.

Width × Height in Pixels GeoTIFF, PNG & COG Sizes Drone & Satellite Presets Free — No Account
Share this tool

Extent (Bounding Box)

Use the same unit for all four extent values and the pixel size (metres, feet, or decimal degrees).

Raster Settings

Quick Load:

Calculating...

Enter your bounding box extent and pixel size above, then click Calculate to see raster dimensions and file size estimates.

Or try a preset: Drone 5cm, Sentinel-2 10m, Landsat 30m, DEM 1m.

How the Calculation Works

The raster resolution calculation is three steps: measure the extent, divide by pixel size, then apply compression ratios to estimate output file sizes.

STEP 1 STEP 2 STEP 3 Bounding Box Extent MinX, MinY → MaxX, MaxY Extent Width = MaxX − MinX Extent Height = MaxY − MinY + pixel size in same unit ÷ px Pixel Dimension Formula W = ceil(extentX ÷ pixelSize) H = ceil(extentY ÷ pixelSize) Raw = W × H × Bands × (bits÷8) ceil() rounds up partial pixels formats File Size Output W × H px dimensions GeoTIFF (LZW) → ~50% COG → ~67% (+ overviews) JPEG → ~8% (lossy) 7 formats compared

All values are estimates. Actual file sizes depend on data entropy and software-specific compression settings.

What Is Raster Resolution in GIS?

Raster resolution describes how many pixels cover a given area of ground — the smaller the pixel, the higher the detail. In remote sensing and GIS, resolution is expressed as the Ground Sampling Distance (GSD): the real-world length represented by one pixel on the ground. A drone survey at 5 cm GSD captures far more detail than a Sentinel-2 scene at 10 m GSD, but the resulting file is vastly larger.

Knowing the expected file size before you start processing is critical. A 50 cm pixel drone survey over a 10 km × 10 km area produces a 3-band 8-bit raster with 400 million pixels — roughly 1.1 GB uncompressed and 550 MB in a LZW-compressed GeoTIFF. Planning for this upfront prevents disk-full errors mid-pipeline and helps you choose between processing on a local workstation or a cloud machine with attached storage.

How to Calculate Raster Image Dimensions from an Extent

The formula is straightforward: divide the extent in each direction by the pixel size. If your study area runs from 400000 to 410000 metres (Easting) and from 5700000 to 5710000 metres (Northing) in a UTM projection, and your target pixel size is 10 m, the output raster will be 1,000 columns wide and 1,000 rows tall — one million pixels per band.

This tool uses math.Ceil to round up rather than truncating partial pixels. This matches the behaviour of GDAL, QGIS, and most raster processing tools when you specify an exact pixel size against a target extent. A 1,001.5 pixel result becomes 1,002 pixels, not 1,001 — the extra half-pixel is filled with the nodata value at the edge.

The most common mistake is a unit mismatch: entering extent values in metres and a pixel size in decimal degrees (or vice versa). If your result shows millions of pixels in one dimension, your extent and pixel size use different units. The calculator flags this with a warning when either dimension exceeds 200,000 pixels.

GeoTIFF, PNG, and COG: Which Format Should You Use?

GeoTIFF with LZW compression is the standard for most GIS workflows. It embeds the coordinate reference system (CRS), nodata value, and spatial extent into the file header, so any GIS tool can read the projection automatically. LZW compression is lossless and typically reduces file size by 40–60% on continuous raster data.

Cloud-Optimized GeoTIFF (COG) adds an internal overview pyramid and tiles the data so web applications can stream only the portion of the raster they need. The overhead is roughly one-third of the compressed base size — so a 600 MB LZW GeoTIFF becomes about 800 MB as a COG. If your raster will be served via a tiled map API or stored in cloud object storage (AWS S3, Google Cloud Storage), COG is the right choice.

PNG is a good choice for classified or thematic rasters — land cover maps, binary masks, or labelled outputs — where lossless compression works especially well on data with many repeated values. PNG does not embed CRS metadata, so it must be accompanied by a world file (.pgw) or re-projected in GIS software.

JPEG should never be used for analysis-ready remote sensing data. Its lossy compression introduces artefacts that corrupt spectral values, making band ratios like NDVI unreliable. JPEG is only appropriate for visual-only RGB basemaps where a small degradation in pixel values is acceptable.

How Pixel Size (GSD) Affects File Size

File size scales with the square of the linear resolution improvement. Halving the pixel size from 10 m to 5 m quadruples the number of pixels — and quadruples the raw file size. Going from Sentinel-2 (10 m) to Pléiades (0.5 m) over the same extent multiplies pixel count by 400, turning a 290 MB file into a 116 GB file. This is why high-resolution satellite imagery is always delivered as small tiles rather than continent-wide mosaics.

Bit depth has a linear effect: switching from 8-bit to 16-bit doubles the raw file size. Float32 quadruples it. Elevation data (DEMs) almost always uses 32-bit float to preserve metre-level precision across the full range of terrestrial elevations. This is why a 1 m DEM over a 50 km × 50 km area requires about 10 GB before compression — and why LiDAR DEMs are typically processed as tiled outputs rather than one giant file.

Common Raster Sizes: Drone, Sentinel-2, and Landsat

Typical raster dimensions and raw file sizes for common GIS data sources. Compressed sizes assume LZW GeoTIFF.

Sensor / SourcePixel SizeTypical ExtentBands / BitRaw Size
Drone survey (5 cm)0.05 m1 km × 1 km3 / 8-bit~1.1 GB
Drone survey (10 cm)0.10 m1 km × 1 km3 / 8-bit~286 MB
Pléiades / WorldView (50 cm)0.50 m20 km × 20 km3 / 8-bit~2.3 GB
Sentinel-2 (10 m)10 m100 km × 100 km4 / 16-bit~763 MB
Landsat OLI (30 m)30 m185 km × 170 km6 / 16-bit~217 MB
SRTM DEM (30 m)30 m1° × 1° (~111 km)1 / 32-bit~48 MB
LiDAR DEM (1 m)1 m50 km × 50 km1 / 32-bit~9.8 GB

Frequently Asked Questions

How do I calculate the number of pixels in a GeoTIFF?

Divide the extent in each direction by the pixel size and multiply together: pixels = ((MaxX-MinX)/pixelSize) * ((MaxY-MinY)/pixelSize). If you already have the GeoTIFF, run gdalinfo yourfile.tif — it reports width, height, and pixel size directly in the output. The raster size in pixels is in the line "Size is W, H".

What pixel size should I use for a drone survey?

For most agricultural and infrastructure surveys, 5–10 cm GSD (0.05–0.10 m) is standard. At 100 m altitude a typical 20 MP consumer drone produces about 3–5 cm GSD. For corridor mapping (roads, pipelines), 10–15 cm is acceptable and significantly reduces file size. For urban 3D modelling requiring feature-level detail, 2–3 cm is common. Use this calculator with your target extent to verify the file size is manageable before flying the mission.

Why is my GeoTIFF file so large?

The most common reasons are: (1) the file is uncompressed — check with gdalinfo and look for "COMPRESSION=NONE"; re-export with LZW or Deflate to reduce size by 40–60%. (2) The raster includes many bands — a 12-band multispectral image is 12× larger than a single-band DEM at the same extent and pixel size. (3) The pixel size is finer than you need — resampling from 0.5 m to 1 m using gdalwarp -tr 1 1 reduces file size by 4×. (4) Float32 was used where UInt16 would suffice — check if your data actually requires float precision.

What is the difference between GeoTIFF LZW and Deflate compression?

Both are lossless compression algorithms. LZW (Lempel-Ziv-Welch) is faster to decompress and is the most widely supported — every GIS tool that opens GeoTIFF supports it. Deflate (zlib) achieves 5–15% better compression ratios on typical raster data at the cost of slightly slower decompression. For data served to desktop users, LZW is the pragmatic default. For archival or cloud storage where bandwidth cost matters more than decompression speed, Deflate is worth the tradeoff. GDAL creates Deflate GeoTIFFs with -co COMPRESS=DEFLATE.

What is a Cloud-Optimized GeoTIFF (COG) and why is it bigger than a regular GeoTIFF?

A COG stores the data in tiles rather than strip rows, and embeds a pyramid of downsampled overview levels (half, quarter, eighth resolution, etc.) that web map services use to serve low-zoom views quickly without reading the full file. These overviews add roughly one-third of the base file size. A 600 MB LZW GeoTIFF typically becomes ~800 MB as a COG. The extra size is worthwhile when the file will be accessed over HTTP range requests — STAC APIs, Titiler, and any S3-backed tile server can serve it efficiently without reading the entire file into memory.

How does bit depth affect raster file size?

Bit depth has a direct linear effect on raw file size: 16-bit is exactly 2× the raw size of 8-bit; 32-bit float is 4× the raw size of 8-bit. Compression softens this relationship — a 16-bit classified raster with only a few unique values may compress better than an 8-bit photographic image, producing a smaller final file despite the higher bit depth. Use 8-bit (0–255) for display-ready imagery, 16-bit unsigned for radiometrically calibrated satellite reflectance values, and 32-bit float for elevation, temperature, or any continuous physical measurement where full decimal precision matters.

How many bands does a Sentinel-2 image have?

Sentinel-2 has 13 spectral bands total, but they are delivered at three different resolutions: 4 bands at 10 m (Blue, Green, Red, NIR), 6 bands at 20 m (Red-Edge ×3, SWIR ×2, Narrow NIR), and 3 bands at 60 m (Coastal Aerosol, Water Vapour, Cirrus). For vegetation analysis workflows, the 4 bands at 10 m are most commonly used. To estimate the file size for a Sentinel-2 tile, use Bands=4, BitDepth=16, and a 100 km × 100 km extent at 10 m pixel size — this tool will give you a reliable estimate.