You can use SharePoint Migration Tool (SPMT) to migrate contents from SharePoint on-premises to Microsoft 365.
The SharePoint Migration Tool (SPMT) is a free and easy to use migration solution to help you migrate content from on-premises SharePoint sites to Microsoft 365.
You can refer to this documentation and the following below steps to use SharePoint Migration Tool (SPMT).
Hope this helps. Best Wishes.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.