There is a QuickBooks Desktop conversion tool within QuickBooks Desktop.
From the Company menu, select Export Company File to QuickBooks Online, as indicated in the following screenshot:
After selecting Export Company File to QuickBooks Online, the next screen will allow you to log in to your QBO account that you set up in the Creating a QuickBooks Online account section. To complete the QuickBooks Desktop data conversion, log in to your QBO account.