Your genealogy service can save your tree as a GEDCOM file. Open the help page for the service you use. It opens in a new tab, so TreeLine stays open here.
Desktop programs (Family Tree Maker, RootsMagic, MacFamilyTree, Gramps): look for File → Export → GEDCOM.