Download a Dataset
Export your dataset of images and annotations for training locally.
Web App
To download or export a dataset from Roboflow, first navigate to the Dataset page in your project.

To the right of the image search bar, click Export.

A modal will appear giving you options for formats to download your data as. Roboflow supports over 50 different annotation formats.
You can also choose to either download your dataset directly as a zip file or be provided with a code snippet to download the data locally.

If you choose the code option, the code shows right away in "Jupyter" (Python) and "Terminal" (CLI) tabs. Run it to export and download the images that match your current search, in the format you picked.

FAQs
Python SDK
Once a project has a generated version, you can download its images and annotations in any of the supported export formats. Use Version.download() for the synchronous "fetch and unzip" flow, or Version.export() to ask Roboflow to (re)generate the export asynchronously without downloading.
Download a version
Parameters
model_format(str) - export format. Common values:yolov8,yolov11,voc,coco,darknet,tfrecord,createml,multiclass. The full list is project-type-dependent - pass an invalid value to get the full list back as an error.location(str, optional) - destination directory. Defaults to./<project-slug>-<version>.overwrite(bool, defaultFalse) - re-download even if the target directory already exists.
The returned Dataset object has a .location attribute pointing to the unzipped directory.
Trigger a fresh export without downloading
This kicks off a server-side regeneration of the export. The call returns once the generation is complete (or raises RuntimeError if it fails). After that, a subsequent download() will fetch the freshly generated artifact.
Public Universe datasets
You don't need to be a member of the workspace to download a public Universe project - your API key just needs Universe access:
CLI
If your project has a saved version, you can download the images and annotations for that version using the command line.
Command
Or use the shorthand alias:
Where:
<format>is one of the supported dataset formats (likevoc,yolov8,coco,darknet, etc). Runroboflow version download --helpfor the full list.<location>is the local path to download to (optional - defaults to current directory)The dataset URL uses resource shorthand:
workspace/project/version,project/version, or just specify-p projectand a version number.
Examples
Download a dataset version in VOC format:
Download using project shorthand (uses your default workspace):
Download publicly available datasets from Roboflow Universe:
JSON Output
For scripting and automation, use --json to get structured output:
MCP Server
Connect your AI agent to the MCP Server and it can fetch a dataset download with these tools:
versions_export
Check or trigger a dataset export for a version.
versions_get
Get version info including splits and its trainings.
Last updated
Was this helpful?