Thanks for bringing your question forward here in the Community. I'm happy to provide info about converting from QuickBooks Desktop to the Online version.
There are a few prerequisites to complete before starting the conversion. These include:
Updating QuickBooks
Backup your company file
Verify and rebuild your company data
And lastly, copy your company file to QuickBooks Online
I'm linking a few articles to walk you through the process: