Here's an OpenAI page that allows you to enter text and see how it gets tokenized:
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Here's an OpenAI page that allows you to enter text and see how it gets tokenized: