You need to purchase a third party service to convert data with class to QB Online. I would recommend accessing your historical data in QB Desktop and start using the class feature to register new transactions in your QBO account.
Don't hesitate to keep in touch if you need anything else about exporting from QuickBooks Desktop. As always, the Community is always here to attend to your concerns.
You have clicked a link to a site outside of the QuickBooks or ProFile Communities. By clicking "Continue", you will leave the community and be taken to that site instead.