# How to export bert tokenizer to onnx?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-export-bert-tokenizer-to-onnx%2F93979%3E%5C
**Category:** 🤗Transformers\
**Created:** [June 25, 2024, 11:20am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-export-bert-tokenizer-to-onnx%2F93979 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FAegonTargaryen2001)%5C
**Post date:** [June 25, 2024, 11:20am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-export-bert-tokenizer-to-onnx%2F93979%2F1 "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
