# How can I export a model to an ONNX file?

**URL:** <https://discuss.roboflow.com/t/how-can-i-export-a-model-to-an-onnx-file/12475>\
**Category:** 🤝  Community Help\
**Created:** [September 11, 2026, 5:33am UTC](https://discuss.roboflow.com/t/how-can-i-export-a-model-to-an-onnx-file/12475 "2026-09-11T05:33:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Dunk](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/anthony_dunk/32/7186_2.png) [@Anthony\_Dunk](https://discuss.roboflow.com/u/Anthony_Dunk)\
**Post date:** [September 11, 2026, 5:33am UTC](https://discuss.roboflow.com/t/how-can-i-export-a-model-to-an-onnx-file/12475/1 "2026-09-11T05:33:01Z")

</div>

How can I export a model that I’ve trained in Roboflow as an ONNX file so I can run the model locally in C# code? I only seem to be able to export model weights in the PyTorch format (weights.pt).

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [October 2, 2026, 5:33am UTC](https://discuss.roboflow.com/t/how-can-i-export-a-model-to-an-onnx-file/12475/2 "2026-10-02T05:33:33Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
