# VRT — GDAL Virtual Raster (VRT)

> 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. Specs, software and free sample files; convert VRT to 50 formats online.

- Page: https://beta.mygeodata.cloud/formats/vrt



## 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.

### Technical details

| | |
|---|---|
| Full name | GDAL Virtual Raster (VRT) |
| Data type | Raster · Image & imagery |
| File extension | .vrt |
| Files | Single file + optional sidecars |
| Media type | text/xml |
| Bands | 1–N virtual bands. |
| Pixel types | Any GDAL data type (per source) |
| Compression | None (XML wrapper; sources may be compressed) |
| Coordinate system | Any (georeferenced) |
| Converter support | Read & write |
| Typical software | GDAL/OGR, QGIS, GRASS GIS, MapServer, Rasterio |
| Specification | https://gdal.org/en/stable/drivers/raster/vrt.html |

### Specifications & references

- https://gdal.org/en/stable/drivers/raster/vrt.html

### Sample VRT files — free download

- [False-colour composite (VRT)](https://beta.mygeodata.cloud/static/landing/samples/v1/vrt/st-helena-false-colour-vrt.zip) — 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). (2.9 MB, EPSG:32730)

### Convert VRT to other formats

- [VRT to TIF](https://beta.mygeodata.cloud/converter/vrt-to-tif)
- [VRT to HFA](https://beta.mygeodata.cloud/converter/vrt-to-hfa)
- [VRT to JPG](https://beta.mygeodata.cloud/converter/vrt-to-jpg)
- [VRT to KMZ raster](https://beta.mygeodata.cloud/converter/vrt-to-kmz-raster)
- [VRT to BIL](https://beta.mygeodata.cloud/converter/vrt-to-bil)
- [VRT to XYZ](https://beta.mygeodata.cloud/converter/vrt-to-xyz)
- [VRT to DEM](https://beta.mygeodata.cloud/converter/vrt-to-dem)
- [VRT to JP2](https://beta.mygeodata.cloud/converter/vrt-to-jp2)
- [VRT to MBTiles raster](https://beta.mygeodata.cloud/converter/vrt-to-mbtiles-raster)
- [VRT to GeoPDF raster](https://beta.mygeodata.cloud/converter/vrt-to-geopdf-raster)
- [VRT to GRD](https://beta.mygeodata.cloud/converter/vrt-to-grd)
- [VRT to PNG](https://beta.mygeodata.cloud/converter/vrt-to-png)
- [VRT to GPKG raster](https://beta.mygeodata.cloud/converter/vrt-to-gpkg-raster)
- [VRT to netCDF raster](https://beta.mygeodata.cloud/converter/vrt-to-netcdf-raster)
- [VRT to RST](https://beta.mygeodata.cloud/converter/vrt-to-rst)
- [VRT to ENVI](https://beta.mygeodata.cloud/converter/vrt-to-envi)
- [VRT to BMP](https://beta.mygeodata.cloud/converter/vrt-to-bmp)
- [VRT to AAIGrid](https://beta.mygeodata.cloud/converter/vrt-to-aaigrid)

## Frequently asked questions

### Why does my VRT file open as an empty or broken layer?

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.

### Can I edit a VRT file in a text editor?

Yes, because a VRT is plain XML. You can change source paths, NoData values or band order by hand, but keep the XML structure valid and make sure the raster size and geotransform match the sources.

### How is a VRT different from a GeoTIFF?

A GeoTIFF stores the actual pixel values, while a VRT only describes how to read them from other files. A VRT is quick to create and uses little disk space, but it depends on its sources. Converting it to GeoTIFF produces a self-contained file.

### 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.

### How do I open a VRT file?

VRT files can be opened in GDAL/OGR, QGIS, GRASS GIS, MapServer and Rasterio. Without any software you can preview and convert them online in MyGeodata Cloud.

### What can I convert VRT to?

Popular conversions are TIF, HFA, JPG, KMZ raster, BIL and XYZ. In total the Converter writes VRT data to 50 formats.

### How do I create a VRT file?

Convert existing data to VRT — for example from HFA, JPG, TIF, BIL and DEM. Upload the file, choose VRT as output and download the result.

