# How to export bert tokenizer to onnx?

**URL:** <https://discuss.huggingface.co/t/how-to-export-bert-tokenizer-to-onnx/93979>\
**Category:** 🤗Transformers\
**Created:** [June 25, 2024, 11:20am UTC](https://discuss.huggingface.co/t/how-to-export-bert-tokenizer-to-onnx/93979 "2024-06-25T11:20:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AegonTargaryen2001](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@AegonTargaryen2001](https://discuss.huggingface.co/u/AegonTargaryen2001)\
**Post date:** [June 25, 2024, 11:20am UTC](https://discuss.huggingface.co/t/how-to-export-bert-tokenizer-to-onnx/93979/1 "2024-06-25T11:20:15Z")

</div>

I was able to export the BERT model to ONNX but is there a way to tokenizer as well ? or what is the best way to get the tokens
