Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Export a Dataset Version

Export data from Roboflow for training.

About

Exporting produces a downloadable snapshot of a dataset version in the annotation format you choose - YOLO, COCO, Pascal VOC, CreateML, and many others (see the full list in the formats directory). You can export from the Roboflow web app, the Python SDK, the REST API, or the CLI. Because dataset versions are built for training, exported images are compressed and class names are sanitized; see Export Behavior for details and for how to retrieve original-quality images.

Web App

You can export data from Roboflow at any time from the web interface.

To export data, first generate a dataset version in the Roboflow dashboard. You can do so on the "Versions" page associated with your project.

After you have generated a dataset, click "Export" next to your dataset version:

You can download your data in a wide variety of formats. You can see a full list of supported export formats in the "Export" tab of our formats directory.

After selecting an export format, you can choose to either download the data as a .zip file, or as a curl link to download from the command line.

Exporting to a .zip folder on your device.
The window that appears for "show download code" after selecting "Continue."

HTTP API

/:workspace/:project/:version/:format is the route you should use to get the download link for an exported dataset in a specific format. You can use this in the Jupyter notebooks from our model library or your own custom training scripts.

When the export is ready, the following endpoint returns an export value that contains a link key with a URL from which you can download a dataset. Until then, it starts the export and returns 202 with its progress, so repeat the request:

Here is an example payload returned by the endpoint:

Export Format Options

Here are the settings options available for dataset export:

Object Detection
Single-Label Classification
Multi-Label Classification
Instance Segmentation
Semantic Segmentation
Keypoint Detection

clip

folder

multiclass

coco-segmentation

coco-segmentation

coco

coco

clip

folder

clip

png-mask-semantic

yolov5pytorch

createml

clip

coco

darknet

createml

multiclass

darknet

tensorflow

multiclass

tfrecord

tensorflow

voc

tfrecord

yolokeras

voc

yolov5pytorch

yolokeras

yolov7pytorch

yolov4pytorch

mt-yolov6

yolov4scaled

retinanet

yolov5-obb

benchmarker

yolov5pytorch

yolov7pytorch

mt-yolov6

retinanet

benchmarker

Python SDK

You can both generate versions and export datasets with the Python package.

To create a ZIP file of a dataset for export from the Python SDK, begin by retrieving a specific version from a project:

Then download the dataset directly:

The download method handles export creation automatically if needed, extracts the ZIP file to your specified location, and returns an object describing the dataset.

For generating a version before export, see Create a Dataset Version.

Download Original-Quality Images

Exported images are compressed for training (see Export Behavior). To download the original, full-resolution images for an entire dataset, use search_export. It builds the ZIP from your source files, so the images keep their original bytes and their original file extension.

This method requires roboflow version 1.2.14 or later.

This command puts your images and annotations in ./original-images/. To get them as a ZIP instead, pass extract_zip=False.

Replace "*" with any search query to export a subset (ex: tag:review split:train).

Export does not support semantic search queries. Use a filter such as class:, tag:, split:, or filename: instead of free text.

CLI

You can export data through the Roboflow CLI using the following command:

Find more information about this CLI command in our docs.

To download original-quality source images instead of a compressed version, use search-export:

MCP Server

Connect your AI agent to the MCP Server and it can export a version with these tools:

Tool
Description

versions_export

Check or trigger a dataset export for a version.

versions_get

Get version info including splits and its trainings.

Export Behavior

Dataset versions are designed to be used as training data for computer vision models. Therefore, we make some optimizations to improve the training experience and performance of the models.

Image Compression

To prevent training slowdowns, we compress images at a level that maintains a balance between training speed and resolution needed for sufficient model performance.

If you're looking to download the original quality image, you can do so by clicking on a image on your dataset and selecting "Download Image".

You can also access your images programmatically via the Image Details API. The image.urls.original property states the link to the original quality image.

To download every original-quality image in a dataset programmatically, see Download Original-Quality Images in the Python SDK section.

Accepted Characters

To prevent issues from arising during training, we sanitize class names both at upload/import and export. At export, we perform the following:

  • Class names are converted to ASCII

    • Where possible, characters are anglicized (ex: ü to u)

    • Otherwise, they are replaced with a dash (-)

Last updated

Was this helpful?