gdal-convert(1)

gdal-convert1

Convert a dataset added in version 3.11. acts as a shortcut for gdal raster convert or gdal vector convert depending on the nature of the specified dataset.

Usage

Usage: gdal convert [OPTIONS] <INPUT> <OUTPUT>
Convert a dataset (shortcut for 'gdal raster convert' or 'gdal vector convert').
Positional arguments:
  -i, --input <INPUT>                                  Input raster, vector or multidimensional raster dataset [required]
  -o, --output <OUTPUT>                                Output raster, vector or multidimensional raster dataset (created by algorithm) [required]
Common Options:
  -h, --help                                           Display help message and exit
  --json-usage                                         Display usage as JSON document and exit
  --config <KEY>=<VALUE>                               Configuration option [may be repeated]
  -q, --quiet                                          Quiet mode (no progress bar or warning message) [not available in pipelines]
Options:
  -f, --of, --format, --output-format <OUTPUT-FORMAT>  Output format
For all options, run 'gdal raster convert --help' or 'gdal vector convert --help'

Return status code

The program returns status code 0 in case of success, and non-zero in case of error (non-blocking errors emitted as warnings are considered as a successful execution).

Examples

Example 1: Converting file utm.tif to GeoPackage raster

$ gdal convert utm.tif utm.gpkg

Author

Even Rouault <[email protected]>

From gdal 3.13.3-6 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.