On the Mac, export the route as GPX with File › Export Route (see How do I export a route to my watch or another app?). On iPhone and iPad, choose Share…: it opens the system share sheet with the route as a GPX file (the track only). Save it to Files, so you have a file to pick in Komoot.
On komoot.com
On komoot.com, open your Profile, then Saved routes, and choose Import a GPS file. Pick the file.
Choose Import to Plan a Route, adjust the sport type, save, and give the route a name.
If parts of the route leave the ways Komoot knows, Komoot asks what to do. Stick to original route keeps a route you planned on real trails as it is. Match route to known ways replans those parts onto Komoot’s own network. Review Route lets you adjust by hand.
In the Komoot app
Open your Profile, then Saved routes.
Choose Import, then Import a file (GPX, FIT or TCX), and pick the file.
Choose Open File, then the sport type.
Adjust the route if you like, then choose Save and give it a name.
The same prompt, Stick to original route or Match route to known ways, appears before you adjust and save the route.
Limits on Komoot’s side
Komoot reads GPX, TCX and FIT. It does not accept KML or NMEA files.
One import creates one route.
Komoot limits the size of a GPX file but names no number. Split a very large file.
Importing a long route as a multi-day tour is a Premium feature.
Komoot also offers Import as Activity. For a route you want to plan, choose Import to Plan a Route.
From Komoot to TrailRunner Mini
On komoot.com, open your Profile, then Saved routes or Completed activities, and select the route or activity.
On iPhone or iPad, Komoot may offer to open the downloaded file with another app: choose TrailRunner Mini. Or save the file to Files and open it from there. Either way the route is imported.
According to Komoot, the export holds only the route’s geometry, without waypoints, and the region where the route starts must be unlocked in Komoot. Those are Komoot’s conditions, not TrailRunner Mini’s.
These steps and limits come from Komoot’s help article Export and import Routes and Activities. Komoot shows its menus in the language of your account, so the names above may read differently.