# How to convert HuggingFace tokenizers into ONNX format?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-convert-huggingface-tokenizers-into-onnx-format%2F27272%3E%5C
**Category:** 🤗Tokenizers\
**Created:** [December 5, 2022, 3:14pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-convert-huggingface-tokenizers-into-onnx-format%2F27272 "2022-12-05T15:14:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yerma](https://avatars.discourse-cdn.com/v4/letter/y/c77e96/32.png) [@yerma](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fyerma)%5C
**Post date:** [December 5, 2022, 3:14pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-convert-huggingface-tokenizers-into-onnx-format%2F27272%2F1 "2022-12-05T15:14:10Z")

</div>

I have faced with a problem, I am trying to convert BertClassification model into ONNX format but, I also have to carry out about preprocessing step , which means my Tokenizer also must be converted to ONNX , is it even possible ?

---

<div class="post-metadata">

**Author:** ![lianghsun](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lianghsun/32/57774_2.png) [@lianghsun](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Flianghsun)%5C
**Post date:** [December 5, 2022, 9:42pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-convert-huggingface-tokenizers-into-onnx-format%2F27272%2F2 "2022-12-05T21:42:06Z")

</div>

According to [Export to ONNX](https://huggingface.co/docs/transformers/serialization) , I think it only allow you transform the model to ONNX format not tokenizer.
