enterprise only
This conversion is only available on an Enterprise plan.
enterprise only
This conversion is only available on an Enterprise plan.

How To Convert Pascal VOC XML to Tensorflow TFRecord

If your labeling tool exported annotations in the


format, but you’re trying to use a

model that needs


annotations, we’ve got you covered. You can convert data between these formats for free in 3 clicks with Roboflow.

Step 1: Create a free Roboflow public workspace

Roboflow is the universal conversion tool for computer vision annotation formats. The Public plan is the best way for those exploring personal projects, class assignments, and other experiments to try Roboflow. To convert your dataset, start by creating a free workspace on the Public plan.

Step 2: Upload your data into Roboflow

Once your account has been created, click Create New Project.

Upload your data to Roboflow by dragging and dropping your
Pascal VOC XML
images and annotations into the upload space.

To learn how to manually label your images in VOC XML format, see our CVAT tutorial.

Step 3: Generate Dataset Version

Next, click "Generate New Version" to generate a new version of your dataset:

You can then apply any preprocessing or augmentation steps to your dataset:

Step 4: Export Dataset Version

After generating, you will be prompted to Export your dataset. You can choose to receive your dataset as a .zip file or a curl download link. Choose

Tensorflow TFRecord

when asked in what format you want to export your data. You will see a dropdown with various options like this:

Congratulations, you have successfully converted your dataset from

Pascal VOC XML

format to

Tensorflow TFRecord



Want to dive deeper into converting annotation formats with Roboflow? In the tutorial below, we explore how to convert your data in the Roboflow dashboard. We also discuss rejecting annotations
and train-test-validation splits.

Next Steps

Ready to use your new


dataset? Great!

If you're looking for more info, we have a more detailed blog post about creating Object Detection TFRecord files.

Here are some compatible models:

Frequently Asked Questions

Is it free to convert
Pascal VOC XML
Tensorflow TFRecord

Yes! It is free to convert

Pascal VOC XML

data into the

Tensorflow TFRecord

format on the Roboflow platform.

How long does it take to convert
Pascal VOC XML
data to
Tensorflow TFRecord

If you have between a few and a few thousand images, converting data between these formats will be quick. But, the time it takes to convert between data formats increases with the more images you have.

Convert Pascal VOC XML to other formats

View more conversions

Convert Tensorflow TFRecord to other formats

View more conversions
Founding Engineer @ Roboflow
MANAGING over 100 million images for companies of all sizes

Join over 100,000 developers managing visual data with Roboflow

VentureBeatTechCrunchInteresting EngineeringInternational Business TimesU.S. News & World ReportYahoo Finance