Disavow File Generator is a simple online tool to extract Root domains from URLs as it is one of the methods to remove spammy b other domain name and download it with a click.
You can upload your disavow text file to the Google Disavow tool available in Google Search Console.