You are trying the new MyGeodata Cloud. Send feedback Back to the previous version

Raster · Image & imagery

VRT — GDAL Virtual Raster (VRT)

XML-based virtual raster of the GDAL library that composes bands and mosaics from other raster files without copying data.

Type
Raster · Image & imagery
Extension
.vrt
Converter
Read & write
Coordinate system
Any (georeferenced)
Bands
1–N virtual bands.

What is a VRT file?

The GDAL Virtual Raster (VRT) is an XML format defined by the GDAL project for describing a raster dataset assembled from one or more existing raster sources. It is commonly used to build seamless mosaics of many tiles, combine separate files into multi-band stacks, subset or rescale data, apply on-the-fly reprojection and compute derived values through pixel functions, all without duplicating the underlying pixels.

A VRT file stores the raster size, geotransform, coordinate reference system in an SRS element, and a list of bands. Each band references source files by relative or absolute path, together with source and destination windows, scaling, NoData values and data type. Because it holds no pixel data itself, a VRT is only usable while the referenced files remain accessible at the recorded locations. Any GDAL data type can be exposed, and compression depends on the source rasters. Performance can degrade with very large numbers of sources or complex warping.

VRT files are small XML documents usually exchanged by GIS analysts and data providers who manage large raster collections, such as tiled imagery or elevation data. The file contains no pixels, only references to other rasters, so sending it alone is not enough. Keep the VRT and its source files together, and check whether paths are relative or absolute before moving or sharing them.

Typical uses

  • Mosaic many image or elevation tiles into one seamless dataset.
  • Stack separate single-band files into a multi-band image.
  • Subset, rescale or reproject a raster without writing a new copy.
  • Expose a large collection of rasters to QGIS or MapServer as one layer.
Files: References external source rasters (relative or absolute paths); useless without them.

Sample VRT files — free download

Small, real datasets of the island of Saint Helena (OpenStreetMap, Copernicus DEM, Sentinel-2). Download them, open them in your software, or convert them in one click.

Preview of the sample data: Saint Helena Sentinel-2 multispectral bands st-helena-false-colour-vrt.zip

False-colour composite (VRT)

GDAL virtual raster (VRT) that turns the 6-band Sentinel-2 GeoTIFF (included) into an 8-bit false-colour composite (B08 NIR, B04 red, B03 green).

  • 3 bands · Byte
  • 906 × 762 px
  • 20 m
  • EPSG:32730
  • 2.9 MB

Inside: README.txt, st-helena-false-colour.vrt, st-helena-sentinel2-bands.tif

Contains modified Copernicus Sentinel data 2024

Frequently asked questions

The VRT usually cannot find its source rasters. Check that the referenced files exist at the recorded paths, and that relative paths still point to the right folders after you moved or renamed anything.

Ready to convert your data?

Drop the files and the Converter does the rest — no install, no account needed for your first conversions.