MigrationPro application can migrate categories to Shopify. To do that, make sure to enable Categories from entities.
To come to subcategories, Shopify does not support hierarchy in categories. MigrationPro migrates subcategories as a normal category without a hierarchy. However, subcategory functionality can still be achieved by configuring menus within the Shopify Admin Dashboard. Here's how:
Click Online Store→Navigation in Shopify Admin Dashboard.
If you haven’t created it yet, click Add Menu or choose your main menu.
Click Add menu item. Then choose a name for it and choose the collection you want to make subcategory and click Add.
Then simply drag and drop the subcategory to the parent category you want to attach